Hi,
please can someone help me create new sensor which will do a summary of existing?
template:
- sensor:
- name: "Bbathroom consumption"
unique_id: bbathroom_consumption_heating
state: "{{ ((states('sensor.bbathroom_time') | float * 0.75) | round(2) )}}"
availability: "{{ states('sensor.bbathroom_time') | is_number }}"
unit_of_measurement: "kWh"
device_class: energy
state_class: total_increasing
- sensor:
- name: "Livingroom consumption"
unique_id: livingroom_consumption_heating
state: "{{ ((states('sensor.livingroom_time') | float * 4) | round(2) )}}"
availability: "{{ states('sensor.livingroom_time') | is_number }}"
unit_of_measurement: "kWh"
device_class: energy
state_class: total_increasing
- sensor:
- name: "Adams room consumption"
unique_id: adamsroom_consumption_heating
state: "{{ ((states('sensor.adams_room_time') | float * 0.95) | round(2) )}}"
availability: "{{ states('sensor.adams_room_time') | is_number }}"
unit_of_measurement: "kWh"
device_class: energy
state_class: total_increasing