I would like to calculate the net energy consumption of the heat pump from the power (or consumption) of my HP and the feed-in of my PV system, i.e. only the consumption that the heat pump draws from the grid. Power consumption of the HP and feed-in power of the PV system are already in HA, as well as a signal when the HP is running.
Unfortunately, the corresponding parameters are not available in the automation or helper and I am not so familiar with the programming language python.
Who has something like this already realized or an idea how to do it. Thanks a lot.
Sensor None has device class ‘power’, state class ‘measurement’ unit ‘kW’ and suggested precision ‘None’ thus indicating it has a numeric value; however, it has the non-numeric value: ‘template: - sensor: - friendly_name: Sensor für WP Energie ohne PV unit_of_measurement: kW device_class: power state_class: measurement state: > 0 state: 0’ (<class ‘str’>)