Home Assistant and Node Red novice
I have a Ikea Styrbar controller and Ikea light bulb that I have configured in mqtt and this is working great.
Using Events:Status and Service Node (Toggle) I can toggle the light on and off but I see people using the MQTT nodes and can also see a lot more control over devices. (
So - I have setup a MTQQ in Node Red -
MTQQ IN - Message - Function (msg.payload = {"state": "ON"}) - MTQQ OUT (using SET after the topic name) and this is working great.
What I would like to do is press the same button to now turn off the light and I just can't see it
Searching for this seams to bring up all manor of stuff that I can't quite work out yet.
Can anyone point me in a general direction please.
(On a different matter, coming from Smartthings, I can't get over how quick this is)
Thanks