Added a manual integration for temperature sensor (#1036)

This commit is contained in:
Daniël Kluivingh authored and GitHub committed 2021-07-27 05:32:07 -05:00
1 parent 72f3960c13
commit b2c09d1fae
1 file changed
+17 -1
+17 -1
View File
@@ -23,7 +23,7 @@ OMG will use the auto discovery functionality of home assistant to create gatewa
![](../img/OpenMQTTGateway_Home_Assistant_MQTT_discovery.png)
## Manual integration examples
From @123, @finity, @denniz03, @jrockstad, @anarchking
From @123, @finity, @denniz03, @jrockstad, @anarchking, @dkluivingh
### Door sensor
```yaml
@@ -179,3 +179,19 @@ sensor:
#timeout:
#away_timeout:
```
### Temperature sensor
```yaml
sensor:
- platform: mqtt
name: outdoor temp
state_topic: "home/OpenMQTTGateway/433toMQTT"
unit_of_measurement: '°C'
value_template: >
{% if value_json is defined and value_json.sensor == 125 %}
{{ value_json.tempc }}
{% else %}
{{ states('sensor.outdoor_temp') }}
{% endif %}
```