home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.64k stars 30.79k forks source link

Only "typical monthly..." sensors are populated for PECO OPower #97870

Closed arthurEspooner closed 1 year ago

arthurEspooner commented 1 year ago

The problem

Everything looks good and the energy dashboard is populated, but it seems to not be pulling data. besides the "typical monthly..." values. I've had it installed since release, shouldn't it show current usages by now?

I don't see any errors in the logs with debug logging enabled.

[homeassistant.components.opower.coordinator] Finished fetching Opower data in 11.442 seconds (success: True)

What version of Home Assistant Core has the issue?

2023.8.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

OPower

Link to integration documentation on our website

https://www.home-assistant.io/integrations/opower/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 year ago

Hey there @tronikos, mind taking a look at this issue as it has been labeled with an integration (opower) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `opower` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign opower` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


opower documentation opower source (message by IssueLinks)

nmeachen commented 1 year ago

Mine has also not populated since the initial load of data at the time I added the OPower integration.

tronikos commented 1 year ago

Did you follow the documentation to add the statistics in the energy dashboard? Do you see any statistics in http://homeassistant.local:8123/developer-tools/statistics when you search opower there?

nmeachen commented 1 year ago

Did you follow the documentation to add the statistics in the energy dashboard? Do you see any statistics in http://homeassistant.local:8123/developer-tools/statistics when you search opower there?

I see statistics incremented around times matching the opower entries in the log, but the energy dashboard does not show anything since the initial load of data.

nmeachen commented 1 year ago

I will add further clarification. There are statistics graphs available for all the energy sensors from source recorder, but the consumption and cost for gas and electric with source opower do not display any information when clicked.

tronikos commented 1 year ago

Not seeing data when you click on the statistics in the developer tools is expected. If you click on the adjust a statistic button (all the way to the right, an arrow pointing up on a ramp) and pick a date a few days back, do you see data? Similarly in the energy dashboard you cannot see data for the past couple of days. You have to select a date a few days back.

arthurEspooner commented 1 year ago

image

this is what i see if i keep going back.

seems like typical monthly gets populated but no other data.

tronikos commented 1 year ago

Do you see data in "developer tools" "adjust a statistic" when you pick a date in the past?

arthurEspooner commented 1 year ago

image

yes

they seem to go back about a month for all of them

tronikos commented 1 year ago

Can you post a screenshot of your http://homeassistant.local:8123/config/energy?

arthurEspooner commented 1 year ago

image

they are all configured the same.

nmeachen commented 1 year ago

@arthurEspooner It does not seem like you followed the setup defined for the Integration at the bottom of the integration page, https://www.home-assistant.io/integrations/opower.

image

That said, mine is not updating either.

arthurEspooner commented 1 year ago

ah cool, thanks. i can report back if it starts working in a few hours, not sure if i should be seeing more data when i go back historically in statistics though.

tronikos commented 1 year ago

In http://homeassistant.local:8123/energy if you click on year (top right corner), do you see any data?

nmeachen commented 1 year ago

For me it looks like statistics data appears on the dashboard after the documented 48 hours, so I apparently do not have a problem.

mtweten commented 1 year ago

One thing I've noticed, and I don't know if this is the expected behavior, is that I can never see the consumption on the dashboard for the current day with the configured "Opower kcpl elec consumption" statistics source. I always see "There is no data to show. It can take up to 2 hours for new data to arrive after you configure your energy dashboard." when the current day is selected. However, going back to previous days, it all displays correctly.

tronikos commented 1 year ago

Yes that's expected. For me, at the end of a day I see yesterday's data populated. A couple of days delay is expected. Not sure how to make the delay more clear in the documentation to avoid confusion.