Closed rct closed 1 year ago
Do you have the changes in https://github.com/home-assistant/core/pull/97823? I just fixed demo.py with https://github.com/tronikos/opower/commit/eef2a589e1cd57183099670a86847786c4d21857
Reopen if you can still reproduce.
Thanks! - https://github.com/home-assistant/core/pull/97823 and the fix to demo.py both fix the exceptions from the mismatch of aggregation and read resolution.
I still don't have any sensors, though now I'm only getting a single:
2023-08-13 12:33:56.334 DEBUG (MainThread) [custom_components.opower.coordinator] Updating sensor data with: []
And an FYI to anyone following along since I pulled in the opower integration with all changes that are currently merged (into homeassistant:dev) I picked up the change to DeviceInfo and am getting this error:
[homeassistant.setup] Unable to prepare setup for platform opower.sensor: Platform not found (cannot import name 'DeviceInfo' from 'homeassistant.helpers.device_registry' (/usr/src/homeassistant/homeassistant/helpers/device_registry.py)).
This is due to the change to sensor.py in https://github.com/home-assistant/core/pull/98149
Oh, and:
Reopen if you can still reproduce.
This doesn't need to be reopened, but since you closed it and not the author (me), only a repo collaborator can reopen.
Not having forecasts and sensors is most likely due to your multiple accounts associated with the same ConEd account. Since I don't have such an account, the only thing I can do is to accept any PR.
I though the reporter could reopen the issue they reported. Good to know that's not the case from now on.
As discussed in #30, with ConEd, I'm seeing the exception,
ValueError: Requested aggregate_type: hour not supported by account's read_resolution: BILLING
from bothdemo.py
and the current Home Assistant integration.I'm not sure if I'm following along correctly, but it seems If the account's
read_resolution
isbilling
, than possibly opower shouldn't try to use anaggregation_type
"smaller" thanbilling
?I believe this exception might also be causing the sensor forecast data not to be populated for the account that has quarter hour read resolution.
This is the exception from the home assistant log:
My ConEd user returns 3
utilityAccounts
:billing
readResolutionbilling
readResolutionHere's the (sanitized) results of the
ei/edge/apis/multi-account-v1/cws/cned/customers
query: