mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
garadget update template sensor example (#19971)
This commit is contained in:
parent
18b84519ec
commit
0e530d3997
@ -81,18 +81,14 @@ cover:
|
|||||||
access_token: !secret garadget_access_token
|
access_token: !secret garadget_access_token
|
||||||
name: Garage door
|
name: Garage door
|
||||||
|
|
||||||
sensor:
|
template:
|
||||||
- platform: template
|
- sensor:
|
||||||
sensors:
|
- name: Garage door state
|
||||||
garage_door_status:
|
state: "{{ states('cover.garage_door') }}"
|
||||||
friendly_name: "State of the door"
|
- name: Garage door state since
|
||||||
value_template: "{{ states('cover.garage_door') }}"
|
state: "{{ state_attr('cover.garage_door', 'time_in_state') }}"
|
||||||
garage_door_time_in_state:
|
- name: Garage door WiFi signal strength
|
||||||
friendly_name: "Since"
|
state: "{{ state_attr('cover.garage_door', 'wifi_signal_strength') }}"
|
||||||
value_template: "{{ state_attr('cover.garage_door', 'time_in_state') }}"
|
|
||||||
garage_door_wifi_signal_strength:
|
|
||||||
friendly_name: "WiFi strength"
|
|
||||||
value_template: "{{ state_attr('cover.garage_door', 'wifi_signal_strength') }}"
|
|
||||||
unit_of_measurement: "dB"
|
unit_of_measurement: "dB"
|
||||||
|
|
||||||
group:
|
group:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user