sampsyo / hass-smartthinq

Home Assistant component for LG SmartThinQ HVAC devices
MIT License
282 stars 98 forks source link

Add support for measuring power draw from ACs #52

Closed davr closed 4 years ago

davr commented 4 years ago

Returns the power usage in Watts from the AC to home assistant as a device attribute.

Add these lines to configuration.yaml to get a graph of your AC's power usage: (note that history graph is deprecated according to HA but they don't give any clear instructions on what you're supposed to use instead, so the graph might stop working at some point in the future)

sensor:
    - platform: template
      sensors:
          ac_power_sensor:
              friendly_name: AC Power Usage
              value_template:
"{{states.climate.air_conditioner.attributes.power}}"
              unit_of_measurement: W

history_graph:
    power:
        name: Power Graph
        entities:
            - sensor.ac_power_sensor
davr commented 4 years ago

made requested changes