Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 96121

Use door sensor to toggle the switch

$
0
0

@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 light

Something 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

Read full topic


Viewing all articles
Browse latest Browse all 96121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>