I am a total newbie with H.A. and Node red and need some help on using the status of several door and window sensors.
What I want to achieve is that if a sensor reports to be open, an action takes place (f.e. a light switches on) and when it closes the same light switches off.
Should be very easy but I can’t make it work.
If I put a debug on the sensor (2 different types) I get the following results:
No possibility to choose “State Closed”
Next picture is the settings of the switch plus the debug of the sensor.
No debug results at the output of the switch
Am I missing something?
try use Trigger = Device … device = gate-sensor
And it’s the actual reported “State” you use, in this case true/false
PS: true/false might be an Attribute thou, in this case … i don’t know that Device , you better check in Developer Tools /State, … Don’t post pics from NodeRed, when you don’t seems to have issues with NodeRed
Maybe you can change the payload in NR, i don’t know nothing about NR
Did you see a “State Open” ? , if so you might need an “condition” if -State Open = true/false
Thank you again for your help with this problem
With your suggestions I managed to make it work.
The trick was indeed in the true/false department, when I changed the “payload” of the sensor to “state open false” a switch with this values made it work.
FYI itis a very cheap Aubess Zigbee sensor of less than € 5.00 at Ali.
Reason I choose it is that it will be outside (gate you can guess) so if it stops working I can replace it cheap.
Thanks again for your help and sorry for posting pictures, I thought that this group is for problems with using Node Red not realizing it is for problems with Node Red itself.
But despite my mistake the problem is solved and that is what this forum is about!