Added contact sensor that can act as a presence device with timeout

This commit is contained in:
2023-01-05 04:29:27 +01:00
parent d0c92e8e18
commit 9a239a88ec
5 changed files with 147 additions and 2 deletions

View File

@@ -44,3 +44,9 @@ type = "AudioSetup"
topic = "zigbee2mqtt/living/remote"
mixer = "10.0.0.49"
speakers = "10.0.0.182"
[devices.hallway_frontdoor]
type = "ContactSensor"
topic = "zigbee2mqtt/hallway/frontdoor"
# @TODO This should be automatically constructed from the identifier and presence topic
presence = { topic = "automation_dev/presence/frontdoor", timeout = 10 }