Conditionally turn a Hue smart plug device on / off via service #835
-
This seem like it should be trivial, but I can't figure out how to do this! I have a service node, it is configured in the node config UI to control a hue light (which is actually a smart plug, Hue just exposes smart plugs as lights). I want to conditionally turn the "light" on / off depending on the value sent to the service. It seem that the Also neither Then... once the above is figured out, I cannot figure out how to send a payload to the node to get it to send the trigger. The docs talk about the I've tried just sending the data as a bool or string ( I hate to ask for hand-holding help, but could someone point me to how I send a conditional instruction to turn a light on / off. So far everything seems overly complex for such a simple use case. The docs for the service node are cryptic and don't include a trivial example of how to send a payload to control a device / entity... The examples in the node are missing any attribute to control the light (I also tried the Sorry if that came across as ranty, I love the addon - I'm currently trying to migrate my pretty complex light home automation system with over 50 lights, sensors and complex conditional logic, but I'm feeling frustrated that such a simple thing is tripping me up! 😢 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Does this example help? |
Beta Was this translation helpful? Give feedback.
-
Sorry for the delay in replying, but yes, thanks @zachowj! |
Beta Was this translation helpful? Give feedback.
Does this example help?
https://zachowj.github.io/node-red-contrib-home-assistant-websocket/guide/call-service.html#using-mustache-templates