I'm sure this should be easy but I just can't seem to get my head around this:-
[topic
switch
can be used to change device state. The message will be something like this: { topic: "switch", payload: { value: (1|0) } }
"]
and this:-
[{
topic: "switch",
payload: {
value: 1
}
}]
is what I am looking at but I just cant seem to get the inject node set up
everything I have tried when I debug from the node, the Value no longer appears to be there
this is what I start with
deviceId: "db1241be-ca6c-46d1-9606-9067fbc128ba"
deviceType: "switch"
name: "lounge colour2"
value: 0
this is what I end up with
deviceId: "db1241be-ca6c-46d1-9606-9067fbc128ba"
deviceType: "switch"
name: "lounge colour2"
(the value: no longer there)
I really hope this make sense to someone