ja das habe ich gemacht .....
Code:
template:
- sensor:
- name: Solar_eingang_Wh
unique_id: Solar_eingang_wh
unit_of_measurement: "kWh"
device_class: Energy
state_class: total_increasing
state: >
{{ states('sensor.inverter_input_power') }}
- sensor:
- name: Solar_erwartet
unique_id: Solar_erwartet
unit_of_measurement: "kWh"
device_class: Energy
state_class: measurement
state: >
{{ (float(states('sensor.sensor.energy_current_hour'))) + (float(states('sensor.energy_current_hour_3'))) }}
- sensor:
- name: Solar_eingang_kWh
unique_id: Solar_eingang_kWh
unit_of_measurement: "kWh"
device_class: Energy
state_class: measurement
state: >
{{ (float(states('sensor.Solar_eingang_wh'))) /1000 }}