S
Size: a a a
S
V
S
V
S
V
V
S
M
{{ ( (as_timestamp(now()) - as_timestamp(states.binary_sensor.dver_of_329.last_changed) )|int/3600) | round(2) }} и в тестировщике шаблонов все отлично работает http://192.168.ХХ.10:8123/developer-tools/template,sensor:
- platform: template
scan_interval: 70
sensors:
dver_of_329_last_use:
entity_id: binary_sensor.dver_of_329
friendly_name: "Дверь 329: последнее использование"
icon_template: mdi:clock-outline
value_template: '{{ ( (as_timestamp(now()) - as_timestamp(states.binary_sensor.dver_of_329.last_changed) )|int/3600) | round(2) }}'
Y
{{ ( (as_timestamp(now()) - as_timestamp(states.binary_sensor.dver_of_329.last_changed) )|int/3600) | round(2) }} и в тестировщике шаблонов все отлично работает http://192.168.ХХ.10:8123/developer-tools/template,sensor:
- platform: template
scan_interval: 70
sensors:
dver_of_329_last_use:
entity_id: binary_sensor.dver_of_329
friendly_name: "Дверь 329: последнее использование"
icon_template: mdi:clock-outline
value_template: '{{ ( (as_timestamp(now()) - as_timestamp(states.binary_sensor.dver_of_329.last_changed) )|int/3600) | round(2) }}'
Y
Y
M
Y
Y
Y
Y
M
- platform: time_date
display_options:
- 'time'
- 'date_time'
M
- platform: template
scan_interval: 70
sensors:
dver_of_329_last_use:
entity_id: sensor.time
friendly_name: "Дверь 329: последнее использование"
icon_template: mdi:clock-outline
value_template: '{{ ( (as_timestamp(now()) - as_timestamp(states.binary_sensor.dver_of_329.last_changed) )|int/3600) | round(2) }}'