LG Aircon not showing power consumption under Energy

I have an LG Air Con. the LG APP has “Current Power Consumption” and shows kWh being used. I would like to have it tracked under the HA Energy, but it’s not showing.

Under Dev Tools for the AC unit entities is “air_con_energy current” and attributes are listed below

state_class: measurement
unit_of_measurement: W
device_class: power
friendly_name: Bedroom Air Conditioner
supported_features: 0| 

If I change it to this (copied from my fridge) will it that matter on being detected or not?

state_class: total_increasing
unit_of_measurement: kWh
device_class: energy
friendly_name: Refrigerator Energy

You will need to use a helper to get the power into energy.

I have an LG unit and have two helper to give what works well.

  1. Template helper for power. This is recommended as LG unit sitting idle reports about 80W of power. This can complicate the second helper setup in that the integral may report a large power spike on unit start up. I found this the best work around.

Template helper yaml

{% set state = states("climate.air_conditioner") %}
{% if state in ['heat','heat/cool', 'cool', 'dry', 'fan only'] %}
{{ states("sensor.air_conditioner_energy_current") | float(0.0) }}
{% else %}
0.0
{% endif %}
  1. Integral helper using trapedzoidial rule, integrating the Template helper above.