# sensor: # - platform: history_stats # name: "Doba chodu podlahového topení" # entity_id: sensor.hvac_activity # state: heating # type: time # start: "{{ 0 }}" # end: "{{ now() }}" # template: # - sensor: # - name: "Spotřeba podlahy" # unique_id: spotreba_podlaha_topeni # state: "{{ ((states('sensor.doba_chodu_podlahoveho_topeni') | float * 0.75) | round(2) )}}" # availability: "{{ states('sensor.doba_chodu_podlahoveho_topeni') | is_number }}" # unit_of_measurement: "kWh" # device_class: energy # state_class: total_increasing # - sensor: # - name: "HVAC Activity" # state: "{{ state_attr('climate.loznice', 'hvac_action') }}"