Updated the sensor examples. (#3237)

* Updated the sensor examples.

Corrected the sensor examples to include the updated attributes.

* Updated the attributes template

Changed the template to get the correct time_in_state and wifi_signal_strength
This commit is contained in:
mukundv 2017-08-25 18:38:30 +10:00 committed by Fabian Affolter
parent 1a4231a0d8
commit 77d60c7325

View File

@ -67,10 +67,10 @@ sensor:
value_template: {% raw %}'{{ states.cover.garage_door.state }}'{% endraw %}
garage_door_time_in_state:
friendly_name: 'Since'
value_template: {% raw %}'{{ states.cover.garage_door.attributes["time in state"] }}'{% endraw %}
value_template: {% raw %}'{{ states.cover.garage_door.attributes.time_in_state }}'{% endraw %}
garage_door_wifi_signal_strength:
friendly_name: 'WiFi strength'
value_template: {% raw %}'{{ states.cover.garage_door.attributes["wifi signal strength (dB)"] }}'{% endraw %}
value_template: {% raw %}'{{ states.cover.garage_door.attributes.wifi_signal_strength }}'{% endraw %}
unit_of_measurement: 'dB'
group: