Skip to content

Conversation

@cengel74
Copy link

This adds support to specify the doors to the room. As long as that door
is closed the light will be blocked from turning off. Closing the door
is also treated as a motion event and will cause the light to turn on.

You can also override the default delay to have the light turn off
quicker after the door is opened by specifying 'door_open_delay' otherwise
it will turn off after the normal delay

Additional config options:
door:
- binary_sensor.bathroom_door
door_open_delay: 5

This adds support to specify the doors to the room.  As long as that door
is closed the light will be blocked from turning off.  Closing the door
is also treated as a motion event and will cause the light to turn on.

You can also override the default delay to have the light turn off
quicker after the door is opened by specifying 'door_open_delay' otherwise
it will turn off after the normal delay

Additional config options:
  door:
    - binary_sensor.bathroom_door
  door_open_delay: 5
@evildad evildad linked an issue Apr 25, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement] Door sensor to turn on / off lights

2 participants