-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not find active peak #2
Comments
droff: |
Unfortunately, it appears that that the OEB site no longer includes a page indicating the current peak. That didn't last long :/ The rates are still being pulled successfully, as it's part of their Open Data initiative. As for getting the current rate, we will need a new method to get that. I might take a shot at it during the weekend. |
@kwkid - the way I'm using this component is with the Home Assistant's Energy monitoring functionality, where you can assign this sensor with any energy monitoring attribute you add there. It works great and no need for any automation or tariff settings madness as before. |
Looks like Alectra posts the current peak and rate on their site: https://alectrautilities.com/time-use-pricing |
The problem with that is that they're updating the value of that element via JS on the client-side. The HTML will always have |
@jrfernandes |
@maxistviews - I thought about hard-coding it, the problem is that the on-peak and mid-peak periods switch during winter time. I didn't research if it's always the same time of the year or not, but it will definitely make things tricky, especially when odd events happen, like when in 2020 Ontario applied a 24-hour fixed rate. I do however have an idea on how to get the current peak leveraging the site of one of the hydro companies. We should have this working again this weekend. |
Great to hear it! Definitely looking forward to it :) I think as a safety measure fallback, I will hard code a sensor myself and then use it only if this integration fails again ;) The OEB website makes it pretty clear that summer and winter time periods have consistent peaks, so I'll use that for my sensor. Id be surprised if we'd get the 24 hour period again as that was just to do with the lockdown measures. But holidays that fall on weekends would need to be something to add to a hard coded sensor. |
I remember reading that when holidays that fall on weekends the following Monday will be off-peak. Should be confirmed. Though, I do like the idea of having a fallback in case integration can't reach the EOB or other website. I might include something for that as well. |
Hi, I'm not able to get any data for Toronto Hydro (residential). My sensor says "unavailable": |
This issue should now be solved and the sensor is working once again. @maxistviews - I took your advise and just added logic to figure out the current peak without scrapping the web. |
Life is good...Thx for resolving the issue. Much appreciated |
That's fantastic, thank you! :) |
I just installed this integration and it isn't able to retrieve the current peak information, suggesting maybe the webpage layout has changed. My utility was listed properly during the setup of the integration, but the sensor value is never populated.
Error log:
Thanks for building this, if it works it saves me a lot of time and effort doing it the hard way with utility meter and tariff components!
The text was updated successfully, but these errors were encountered: