6/15/2016
Topic:
Security token age
Scott Goffman
|
Once I authenticate a user/password with AuthenticateUser_PlainText, I store the auth token and re-use it for future requests (for speed). How long is a token good for before it expires and needs to be renewed?
Thanks,
-Scott |
6/15/2016
Topic:
Security token age
Scott Goffman
|
Got it, thanks! |
8/17/2016
Topic:
Somfy ZRTSI Z-Wave to RTS
Scott Goffman
|
I don't see it listed in any of the usual spots as supported on unsupported; does CastleOS support the Somfy ZRTSI Z-Wave to RTS converter?
If not, what other Somfy RF control options are supported? (The listed "Z-Wave to Digital Motor Interface" won't work because the Somfy motors will be outside of the house.)
Thanks,
-Scott |
9/4/2016
Topic:
Somfy ZRTSI Z-Wave to RTS
Scott Goffman
|
I decided to go the "safe" route and picked up an Insteon Somfy RF Drape Control Kit, which is just an I/O Linc wired to a Somfy transmitter. Seems like a pretty bulletproof (if ugly) solution. |
9/13/2016
Topic:
Somfy ZRTSI Z-Wave to RTS
Scott Goffman
|
Well, no luck so far. CastleOS appears to be communicating with the I/Olinc:
Insteon Received: 02 62 3D CD AF 0F 11 FF 06 CMD Sent: 02 62 3D CD AF 0F 11 FF CMD Match (2nd): 02 62 3D CD AF 0F 11 FF Insteon Received: 02 50 3D CD AF 34 7B 57 AB 11 FF
But no action from the attached transmitter. I know the transmitter works because it closes the drapes when first plugged in.
This is my first time working with the I/O linc, so I will probably need to hook up a simple low-voltage test device to see if the Open/Close state is changing.
BTW, enabling "Dimmable" doesn't appear to make any difference; either way, it just shows up with an On/Off switch in CastleOS.
-Scott |
9/13/2016
Topic:
Somfy ZRTSI Z-Wave to RTS
Scott Goffman
|
I did manually link it with the Insteon controller (they weren't communicating in the first location I tried, had to move it).
According to the quick-start guide, the IO Linc needs to be in latching mode rather than momentary because latching "is the mode the I/O Linc must be in to correctly operation your Somfy drapes."
Configuration.xml attached.
Thanks!
-Scott |
9/13/2016
Topic:
Somfy ZRTSI Z-Wave to RTS
Scott Goffman
|
TIL: Linking is NOT bi-directional! I just linked CastleOS > Device, and that fixed it, so thanks for the tip!
The device name in the xml is Drapes/Office.
-Scott |
9/13/2016
Topic:
Somfy ZRTSI Z-Wave to RTS
Scott Goffman
|
Also, just a couple notes for anyone else who goes down this path: 1) Leave the green "COM" wire disconnected at first, until you've paired the Somfy controller to your motor(s). THEN connect it. 2) Only engine version i1 works; i2/i2CS won't connect. (This may be true of all I/O Lincs, even though they're supposed to be i2CS). 3) The Somfy RF transmitter is surprisingly strong; I was able to put it on a different floor, inside a bookcase, and reception is no problem. 4) You'll see forum complaints about this device chewing through batteries, and ways to "hack" a permanent power solution; ignore those, they now come out of the box with power provided from the I/O Linc to the Somfy controller, so no batteries needed.
-Scott |
9/13/2016
Topic:
Somfy ZRTSI Z-Wave to RTS
Scott Goffman
|
Great, thanks for the help Chris! |
9/15/2016
Topic:
Virtual devices stopped working
Scott Goffman
|
When virtual devices were first added to CastleOS I set up a couple of them and they worked great. But in the last couple of beta builds, they've stopped working.
I noticed that in configuration.xml, ampersands in the commands were being URLencoded to "&"; is it possible that string is being used directly without being URLdecoded?
e.g. onCommand="http://192.168.1.91:8082/ajax_sendevent.lhtml?event=OpenTheaterDrapes&device=18" no longer works. (While entering the URL "http://192.168.1.91:8082/ajax_sendevent.lhtml?event=OpenTheaterDrapes&device=18" directly in a browser does still work.)
Oh, and I'm currently on 1.3.3031 (2.0 Beta). Thanks,
-Scott edited by sgoffman on 9/15/2016 |
9/15/2016
Topic:
Virtual devices stopped working
Scott Goffman
|
Yeah, if I edit out the encoding in the xml directly, CastleOS adds it back in within a few seconds. The URL displayed in the "Edit Device" UI is decoded. |
9/15/2016
Topic:
Virtual devices stopped working
Scott Goffman
|
I did try that, but the strings get re-encoded after the service starts up again (or after I try using the device links, not sure which). |
9/16/2016
Topic:
Virtual devices stopped working
Scott Goffman
|
Okay, that's odd. I'll try some other browsers. |
9/16/2016
Topic:
Virtual devices stopped working
Scott Goffman
|
I've tried creating a virtual device under Chrome, IE, and Safari, and in each case any ampersand in the on/off URL would be stored in the config file as "&". Do you not see the same that behavior on your end?
It's also possible that this is a red herring, and has nothing to do with why the virtual devices stopped working. They broke when I edited them to change what group(s) they were in; I was assuming that the stored URL was modified at that point, but I don't have a config backup from before that change to compare against. |
9/16/2016
Topic:
Virtual devices stopped working
Scott Goffman
|
Correct, it was only after saved the devices in the Beta that they stopped working. |
9/16/2016
Topic:
Virtual devices stopped working
Scott Goffman
|
Or keep the security and add a WebUtility.HtmlDecode() on reading the URL back from the config... |
9/16/2016
Topic:
Virtual devices stopped working
Scott Goffman
|
Thanks Chris, that fixed it! And I would not have expected that behavior as default from the XML processor either...
-Scott |
9/16/2016
Topic:
Customizable On/Off labels
Scott Goffman
|
On devices and groups, it would be nice to be able to change the labels from "On"/"Off". Full customization might be overkill, since all I currently need is for some device/group controls to be labelled "Open"/"Closed" instead (drapes, door/window sensors).
-Scott |
9/16/2016
Topic:
Customizable On/Off labels
Scott Goffman
|
Good to know, thanks!
Some of my drapes are virtual devices, so the ability to select between On/Off and Open/Close per device would be idea. |
10/5/2016
Topic:
Invisible device
Scott Goffman
|
Hey Chris,
My most recently-added device has disappeared from CastleOS. I added it a few weeks ago and it's been working fine up until today; today, it no longer appears in the devices list, and doesn't get triggered as part of the scenes/events it's a member of.
It does still appear in config.xml (attached) as device "Exterior Shades"; but as you can see in EditDevice.jpg, it doesn't appear in the GUI devices list.
(I'm running 1.3.3046.)
-Scott
 |