Added a manual integration for temperature sensor (#1036)
This commit is contained in:
1 parent
72f3960c13
commit
b2c09d1fae
1 file changed
+17
-1
@@ -23,7 +23,7 @@ OMG will use the auto discovery functionality of home assistant to create gatewa
|
||||

|
||||
|
||||
## 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 %}
|
||||
```
|
||||
Reference in new issue
Block a user