Open kunalkhosla opened 3 years ago
It's working for me so it's not oru.com. Hard to say what it could be without additional logging. I too get some errors occasionally, but overall the meter data is returned successfully. I ended up running the add-on from "local", so I can easily add helpful log statements and reload it with ease, in case of issues. Running locally means simply adding the add-on code under the /addons/local/
. Usually they get installed under /addons/core/
.
ok, so I cloned your repo and made the tests run locally. Turned out my UUID was incorrect. There are apparently two UUIDs in oru.com, and i picked up the wrong one. I'll send in a PR to your docs to correctly determine the right UUID.
On a separate note, does your integration show up data in the energy dashboard? I have about 10 data points so far, but my energy dashboard says it doesnt have any data to show
Grafana Chart
I didn't spend too much time on it, but I was able to configure the energy dashboard with the energy meter sensor that I have configured based on the oru usage sensor. Something like this:
utility_meter:
daily_energy:
source: sensor.oru_current_energy_usage
net_consumption: true
cycle: daily
So I added this sensor.daily_energy
as the "Grid consumption" sensor in the energy dashboard.
Probably not the most ideal way, but I guess will do for now.
ok, I think this is much better than what I proposed in #12 . I am going to try this with my setup, and if this works, I will close my PR
I cannot tell if this is a misconfiguration or something changed on oru.com