@KCYeoh wrote:
Hi, i have a door sensor installed in my room as well as sonoff wall switch. My room door is always closed and i want to setup an automation to switch on the light when i enter the room and switch it off when i leave the room.
Basically i want like this,
Door sensor state : close ->open (enter the room)->close , turn on light
Door sensor state : close-> open (leave the room) ->close, turn off the lightSomething like sending a logic high/low to toggle the switch. However, i can’t figure it out how can i setup the automation in such way. Any advice?
Posts: 3
Participants: 2