Open PseudoResonance opened 1 year ago
Here's the output of python -m opower -vv --utility pse --start_date 2024-08-21T00:00:00-07:00 --aggregate_type bill
for reference. As you can see, the cost is only ever provided for past billing cycles, but not for the current one, or for forecasts. Also, because PSE uses tiered costs (For October 2024, 0.115433 for the first 600kWh, 0.134850 after), the estimates wouldn't be accurate, but they're probably still close enough.
Can you provide the same output with --aggregate_type hour
? Just include a single read from the response. I assume providedCost is always 0? How about readType?
providedCost is always 0 when not billing, but readType is ACTUAL.
As mentioned in home-assistant/core#99674, I noticed PSE seems to be unable to provide daily or hourly costs and all values will show 0, including the current bill/forecast. The costs are only provided in the bill view.
Assuming PSE never fixes this, should opower maybe request the data twice, first with the bill aggregate type to calculate the rates for each billing period, then request the desired data and use the previously calculated rates to estimate the provider's daily/hourly cost? Or should other utilities, such as HomeAssistant's integration be responsible for something like that?