Niick_W Posted January 29, 2020 Posted January 29, 2020 I have a HSM200 that I just set up. This is a Zwave RGB light with various sensors (Motion, lux, temp). Lux and Temp report OK, but I'm looking for some guidance on how to control the light. In Admin Console, I have a device ZW005_186 which is the COLOR_SWITCH control. It shows three values, R, G and B. For some reason there are three buttons, "fade up", "fade down" and "fade stop", for each of which I can pick a channel (red, green, blue). Clicking on these increases the red/green/blue channel up or down 1 value (and the light responds). So it works, but you can't really set a colour this way. There are three properties reported, GV2, GV3, and GV4 which correspond like this: ZW 005 Color Switch/GV4 0 #blue ZW 005 Color Switch/GV3 0 #green ZW 005 Color Switch/GV2 0 #red This is the output of `/rest/zwave/node/ZW005_186/def/get` <nodeDefs> <nodedef id="UZW00F4" nls="186"> <sts> <st id="GV2" editor="_107_0_R_0_255"/> <st id="GV3" editor="_107_0_R_0_255"/> <st id="GV4" editor="_107_0_R_0_255"/> </sts> <cmds> <sends/> <accepts> <cmd id="DON"> <p id="GV2" editor="_107_0_R_0_255" optional="T"/> <p id="GV3" editor="_107_0_R_0_255" optional="T"/> <p id="GV4" editor="_107_0_R_0_255" optional="T"/> </cmd> <cmd id="FDUP"> <p id="ID" editor="_25_0_S_001C_N_IX_CCI"/> <p id="STARTLEVEL" editor="_107_0_R_0_255" optional="T"/> </cmd> <cmd id="FDDOWN"> <p id="ID" editor="_25_0_S_001C_N_IX_CCI"/> <p id="STARTLEVEL" editor="_107_0_R_0_255" optional="T"/> </cmd> <cmd id="FDSTOP"> <p id="ID" editor="_25_0_S_001C_N_IX_CCI"/> </cmd> <cmd id="QUERY"/> </accepts> </cmds> <links> <ctl/> <rsp> <link linkdef="ASSOC_MC"/> <link linkdef="ASSOC_CMD"/> <link linkdef="ASSOC"/> </rsp> </links> </nodedef> </nodeDefs> and the output of `/rest/nodes/ZW005_186` <nodeInfo> <node flag="0" nodeDefId="UZW00F4"> <address>ZW005_186</address> <name>ZW 005 Color Switch</name> <family>4</family> <parent type="1">ZW005_1</parent> <type>4.7.1.0</type> <enabled>true</enabled> <deviceClass>0</deviceClass> <wattage>0</wattage> <dcPeriod>0</dcPeriod> <startDelay>0</startDelay> <endDelay>0</endDelay> <pnode>ZW005_1</pnode> <sgid>186</sgid> <devtype> <gen>4.7.1</gen> <mfg>30.4.1</mfg> <cat>186</cat> </devtype> <ELK_ID>P03</ELK_ID> </node> <properties> <property id="GV2" value="6" formatted="6" uom="107"/> <property id="GV3" value="0" formatted="0" uom="107"/> <property id="GV4" value="0" formatted="0" uom="107"/> </properties> </nodeInfo> I would like to set the RGB value using the REST interface, but so far I can't find any combination of commands that changes anything for this node. Can anyone shed some light on how to set GV2,3,4 via REST? Thanks. UPDATE: Had a brainwave after posting this, and finally figured it out. The REST command is `/rest/nodes/ZW005_186/cmd/DON?GV2=0&GV3=255&GV4=0` which sets r=0, g=255, b=0 (ie green) or any other rgb combinations. And it works! Hope this helps someone else out.
sn0cr4sh Posted July 27, 2020 Posted July 27, 2020 This is really cool. I'm thinking about picking up a couple of these. Did it work out of the box or did you have to set any config parameters to get the sensors working / reporting correctly?
Niick_W Posted July 27, 2020 Author Posted July 27, 2020 I don't believe I had to do anything. This is a bit of an oddball device though. You can only set 7 colours (ie you can't set any RGB combination, only 7 are allowed). The device has a light sensor, but also emits light - so the sensor picks up it's own light output - weird!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.