sampsyo / hass-smartthinq

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

Add power usage report to HA #44

Open dacrypt opened 4 years ago

dacrypt commented 4 years ago

What would be the way to implement the new wideq power usage report feature to this HA component?

sampsyo commented 4 years ago

I'm glad you're interested, but TBH I don't know! The right place to start is to read the HA documentation to figure out what other energy-reporting components do.

dacrypt commented 4 years ago
Screen Shot 2020-01-23 at 2 19 09 AM
keiranharris commented 4 years ago

@dacrypt - how did you get that going? was pleased to check into this repo today and see @sampsyo has added power consumption... so did a new git pull.... confirm that the updated wideq appears to be pulling power stats back...
keharris — keiran@vm-untrust _LOCALDATACONTAINERShasscustom_componentswideq — script ◂ sh — 180×40 2020-02-29 13-21-21

... but it doesnt seem to be showing up in HASS (history page for instance on my W / kWh graph, there is no LG aircon to be found). Should i be expecting to see W values in here? (dev tools -> states UI)

Home Assistant 2020-02-29 13-23-47

thanks in advance! Keiran.

sampsyo commented 4 years ago

Hi! No, we haven't added any support to the HA component. I'm not sure if anyone's working on it… @dacrypt, it looks like you might have a prototype working? Shall we merge any part of it back into this repo?

keiranharris commented 4 years ago

@dacrypt - touching this thread again to see if you would consider merging your works so we can suck in power data into HASS? Would love to see it. thanks guys!

dacrypt commented 4 years ago

@dacrypt - touching this thread again to see if you would consider merging your works so we can suck in power data into HASS? Would love to see it. thanks guys!

Try this: #48

I've been quite busy at work so I haven't had the time to share what I've done. I replaced my raspberry HA with a vps over vpn and installed a docker version under ubuntu and never managed to upload my version of hass-smartthinq and test it. I need to spend some time to learn how to install the code I have to my own ha.

Xitro01 commented 2 years ago

Any updates on this? Would be great to be able to integrate power usage with the Energy Dashboard of HA.