Setting the presence mqtt topic is now optional, if not set it will generate an appropriate value automatically

This commit is contained in:
2023-01-06 04:42:42 +01:00
parent cbcbd05613
commit 27a63b1a79
4 changed files with 50 additions and 28 deletions

View File

@@ -52,5 +52,4 @@ 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 }
presence = { timeout = 10 }