Foddy / node-red-contrib-huemagic

Philips Hue node to control bridges, lights, groups, motion sensors, temperature sensors and Lux sensors using Node-RED.
https://flows.nodered.org/node/node-red-contrib-huemagic
Apache License 2.0
201 stars 67 forks source link

Touchlink does not work because of typo #430

Open httpdev opened 1 year ago

httpdev commented 1 year ago

In the "Hue Bridge" example flow, the "TouchLink" button doesn't work. The reason appears to be that the node sends {"touchLink":true} while it's supposed to be {"touchlink":true} The first command fails, as can be verified from the command line:

pi@raspberrypi:~ $ curl -X PUT -d '{"touchLink": true}' http://hue.xxx/api/XXX/config
[{"error":{"type":6,"address":"/config/touchLink","description":"parameter, touchLink, not available"}}]
pi@raspberrypi:~ $
pi@raspberrypi:~ $ curl -X PUT -d '{"touchlink": true}' http://hue.xxx/api/XXX/config
[{"success":{"/config/touchlink":true}}]

Unfortunately, the bridge node appears to ignore the error.

httpdev commented 1 year ago

Ok, wow, actually this appears to be correct. The bridge node expects touchLink, converts it to touchlink and adds some magic. That is confusing.