Advertisement
rvendrame

Tempo leggibile

Dec 6th, 2021
964
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.85 KB | None | 0 0
  1. sensor:
  2. #####################################################
  3. ##===================  Caldaia  ===================##
  4. #####################################################
  5. ##++++++++++++++++++++  Tempo  ++++++++++++++++++++##
  6.   - platform: history_stats
  7.     name: Tempo Caldaia oggi
  8.     entity_id: binary_sensor.stato_riscaldamento
  9.     state: "on"
  10.     type: time
  11.     start: "{{ now().replace(hour=0, minute=0, second=0) }}"
  12.     end: "{{ now() }}"
  13. #####################################################
  14. ##==============  Tempo leggibile  ================##
  15. #####################################################
  16.   - platform: template
  17.     sensors:
  18. ##++++++++++++++++++++  Caldaia  +++++++++++++++++++##
  19.       tempo_caldaia:
  20.         friendly_name: "Tempo Caldaia"
  21.         value_template: "{{ state_attr('sensor.tempo_caldaia_oggi','value') | default }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement