Hi, I want to create an alarm system in node red. I have a Xiaomi Door Sensor which is already implemented in iobroker.
The iobroker node sends a message to the Telegram node when the sensor is open, which is already working.
Now i want to add a switch, where I can toggle on and off the alarm system. So if the switch is off and sensor is open no message should be send to telegram, only when the switch is on.
Hi, i tried to adapt the flow based on the cookbook example. Thanks for the hint.
But I cannot get on there.
If I click on close or open on the incjet node, there only should be an output,
if Alarm ist set to ON (armed). If Alarm is set to OFF there should be no output. (disarmed)
I don't know how to implement the additional code.