-
Notifications
You must be signed in to change notification settings - Fork 10
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
Stock sensor stopped updating #186
Comments
I decided to restart home assistant and that fixed the issue. Before I close the issue is there anything I could test and report in future just in case the issue pops up again? |
One thing to check is if the api is down, you can do that by visiting this url in your browser: https://www.avanza.se/_api/market-guide/stock/{orderbook_id} Change "{orderbook_id}" to the id you have for your stock. I dont think that was the issue here, did any other cloud-based sensors of yours fail too? Thanks for reporting :) |
No other web sensor failed in the whole HA. I'll check if it will ever happen again. Of course I can say that restarting HA fixed it immediately... Though I never like "restarting" as a solution, but since everything else was up, that was the last thing to try. Closing the issue and thanks for the feedback. |
It did happen again and API was correctly responding from the browser. If you suggest anything I could check or debug I would be happy to help. Restarting made an immediate sensor update. To be clear the stock price was frozen to the day before during opening hours, no update at all, I am not talking about delays. Happy to help if I can. |
I guess the error is the same as before, I'll try and find out why/when "Session is closed" happens and how to handle that |
Happy to help, if you need anything just let me know. |
That's right for me. I installed the addin for the first time yesterday. No update since then. |
Any errors? What is your config? |
Same here (trying to prevent the 'same here!' only reply ;-)
my config (in sensors.yaml):
If I can help in providing more info or such, let me know. cheers |
Same for me. Sensors didnt fetch new state for 21 Minutes now. I am tracking the last updated timesstamp (as the built-in attribute is never populated) |
60minutes is the default update interval, unless you configured something else. I just checked my stocks and they updated 5min ago |
Hold on, thats configurable? I thought it was fixed at 15 minute intervalls... how did I not see that!? Okay, found the 60 minutes in the source code. Is there any limit they are enforcing? Whats the lowest I could go? |
You can do
I guess 1,1min is the lowest. This is builtin (somehow) since this is a yaml only integraton. |
Not sure if avanza could ip block you though, bit never happened what Ive heard 😃 |
Sensor updating stopped working, apparently for no reason. No change in configuration for was applied. It looks like the connection is forcibly corded
The text was updated successfully, but these errors were encountered: