added room presence yaml to docs (#869)

* added room presence yaml to docs

Found how to set this up in the issues, so I figured I'd add it to the docs because it works great for me
This commit is contained in:
Stephen Littman authored and GitHub committed 2021-02-13 12:16:12 -06:00
1 parent 590fc6e342
commit 2693f291a8
1 file changed
+13 -1
+13 -1
View File
@@ -21,7 +21,7 @@ The gateway device will be available into Configuration->Devices section of Home
![](../img/OpenMQTTGateway_Home_Assistant_MQTT_discovery.png)
## Manual integration examples
From @123, @finity, @denniz03, @jrockstad
From @123, @finity, @denniz03, @jrockstad, @anarchking
### Door sensor
```yaml
@@ -163,3 +163,15 @@ sensor:
icon_template: >
{{ 'mdi:human' }}
```
### MQTT Room Presence
```yaml
sensor:
- platform: mqtt_room
device_id: XX:XX:XX:XX:XX:XX #Mac Address of device wanting to track
name: you_are_in # home assistant will show a sensor named (you are in) with its value being the name you gave the gateway
state_topic: "home/home_presence"
#timeout:
#away_timeout:
```