GrKoR / esphome_aux_ac_component

ESPHome component for AUX based air conditioners. Direct wifi control of HVAC by ESPHome and Home Assistant. HVAC status and command feedback are available.
Other
201 stars 49 forks source link

Power consumption calculation #125

Open drupry opened 2 months ago

drupry commented 2 months ago

Hi, this is not an issue but i don't know how to do it. I want to measure at least approximate power consumption but I don't have extra space in my circuit breaker box for some Shelly relay or something so I decided to calculate power consumption from Inverter power entity. My cooling power input is 1340W and heating power input is 950W. I have crated a sensor template which is calculating inverter power * 1340W but obviously it will work only in summer when the cooling is on. Is there any way how to automate this ? how the sensor template know when the AC is set for cooling and when for heating ? Because i want to include HEAT_COOL mode also. Or is this sooo much inaccurate that I should get out of it ?

This is how my sensor template looks like now


     sensors:
     power_ac_bedroom:
     friendly_name: "Electric power ac bedroom"
     unit_of_measurement: 'W'
     value_template: "{{ states('sensor.ac_bedroom_ac_inverter_power') | float / 100 * 1340 }}"   
GrKoR commented 2 months ago

Hi!

This kind of calculation is dramatically inaccurate. It depends on Mars weather and Moon phase 😀

You can try to place your shelly or another measuring device here: image

GrKoR commented 2 months ago

BTW, if you want to experiment with it anyway, then use 'action':

// Current action (idle, cooling, heating, fan, etc.), ClimateAction (enum) id(my_climate).action