So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By Zim
#79765 arrange the door switch so the door has to be opened a inch or so before it triggers. Then you will have a trigger in both directions. You could then use MQTT logic to determine its state by its last state. (guessing since I haven't used MQTT)
User avatar
By Luc Volders
#79769 so someone enters the room and the switch is triggered.
The same person still in the room shuts the door like our mommy's have learned us and the light goes off with that person still in the room.....

Some one enters the room and shuts the door, that is two times trigger and the lamp goes on.
Then someone else enters the room ?????
Lights go off .........

Use a pir and detect motion.
Will be an easier solution.

Luc