mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 13:26:54 +00:00
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:
parent
1a4231a0d8
commit
77d60c7325
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user