HomeSeer / node-red-contrib-homeseer

HomeSeer Nodes for Node-RED
GNU Affero General Public License v3.0
5 stars 4 forks source link

Controlling a ColorPicker type Device #18

Open KSumwalt opened 1 year ago

KSumwalt commented 1 year ago

Manually changing a device which has a ColorPicker for the Control Use in the HomeSeer Device's Status/Graphics settings sends the following output to Node-RED: {"ref":668,"name":"tester-Color","location":"tester","location2":"wled","value":14686975,"status":"14686975","last_change":"/Date(1668726505948-0500)/"} This Inject node wired to the same device return an Unexpected response from HomeSeer. The node is setting msg.payload.value to a number 14686975 and msg.topic to a string control : [{"id":"f749a35014e270ba","type":"inject","z":"ef1efc6f.b83b3","name":"","props":[{"p":"payload.value","v":"14686975","vt":"num"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"control","x":610,"y":2520,"wires":[["b733037403c58160","43a5e97d772a162d"]]}]

The HomeSeer device is set as shown below. image

My apologies if I have something in error. Copying the same inject node and HomeSeer device node and changing the inject to send a status of 0 or 1 and the device to be an On/Off device worked, so I believe I have everything correct outside the possible expected value for a ColorPicker item. I have tried both payload.value and payload.status with the same results as well as sending string and numeric values and also trying hex values.