-
-
Notifications
You must be signed in to change notification settings - Fork 704
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
Grid cost not loaded using PUN template #17174
Comments
Please show
|
grid: |
Missing requested log. |
Well, nice attitude to someone hinting you a possible bug and even the possible reason (the way you're pulling data from www.mercatoelettrico.org doesn't work anymore because they completely overhauled their website). However, the CLI command you suggested (
And I got this:
I didn't think the first two lines were essential, so excuse me. I hope this can be useful for other users possibly encountering this issue. I reverted to the method I was already using (importing the electricity cost via REST API from homeassistant and its nice PUN integration). |
I see. Missing log is a bug in the tariff. Will fix that and then we can double check. |
@motze92 do you want to take a look? I've added the logging but test is broken since server returns a different response. |
I've got no experience developing in go, so I can't help with code, but maybe I can help with some info. Take a look at these discussions from the Homeassistant PUN plugin repo. Starting from october 1 until december 31 there is a temporary workaround to access the old mercatoelettrico.org site: The new site uses a different API as explained here (look at the last post): |
It seems that only changing the endpoint from www.mercatoelettrico.org to storico.mercatoelettrico.org temporarily fixes the problem. If you want I can make some tests and then open a PR. At least we have a solution until december 31. |
Fixed for now thanks to @MobilettoSoft but will stop working end of year. /cc @motze92 |
Describe the bug
Using the PUN template causes the cost of grid electricity is not showed; the issue is not affected by using or not using charges, tax or formula .
(the site https://www.mercatoelettrico.org/it/ has been recently updated in its layout: I dont' know if this could be the root cause of this issue)
Steps to reproduce
Configuration details
Log details
What type of operating system are you running?
HomeAssistant Add-on
Nightly build
Version
0.131.5
The text was updated successfully, but these errors were encountered: