Comments (7)
Can you test version 0.0.10 to see if it's still happens?
from home-assistant-zonneplan-one.
The issue started this morning again. Now having some logging. Seems that at some point the service returns 503 Service Unavailable and then the integration does not recover from that:
2022-03-18 10:16:55 INFO (MainThread) [custom_components.zonneplan_one.coordinator] _async_update_data: start
2022-03-18 10:16:55 DEBUG (MainThread) [custom_components.zonneplan_one.api] ZonneplanAPI response header: <CIMultiDictProxy('Date': 'Fri, 18 Mar 2022 09:16:55 GMT', 'Server': 'Apache', 'Content-Length': '299', 'Connection': 'close', 'Content-Type': 'text/html; charset=iso-8859-1')>
2022-03-18 10:16:55 DEBUG (MainThread) [custom_components.zonneplan_one.api] ZonneplanAPI response status: 503
2022-03-18 10:16:55 ERROR (MainThread) [custom_components.zonneplan_one.coordinator] Authentication failed while fetching zonneplan_one data: 503, message='Service Unavailable', url=URL('https://app-api.zonneplan.nl/user-accounts/me')
2022-03-18 10:16:55 DEBUG (MainThread) [custom_components.zonneplan_one.coordinator] Finished fetching zonneplan_one data in 0.346 seconds (success: False)
2022-03-18 10:16:55 INFO (MainThread) [custom_components.zonneplan_one.config_flow] __init__
2022-03-18 10:16:55 DEBUG (MainThread) [custom_components.zonneplan_one.config_flow] reauth {'auth_implementation': 'zonneplan_one', 'token': {'token_type': 'Bearer', 'expires_in': 28800, 'access_token': '**REDACTED**', 'refresh_token': '**REDACTED**', 'expires_at': 1647598975.465228}, 'email': '**REDACTED**'}
After this happens, the zonneplan_one component doesn't log anything anymore (it happened almost 4 hours ago).
from home-assistant-zonneplan-one.
Tagging you @fsaris :)
from home-assistant-zonneplan-one.
don't you get an notification to re-authenticate the app in this case? With version 0.0.10 this should be improved
from home-assistant-zonneplan-one.
Yes I get that, but it happens not in a consequent interval sometimes a few weeks, sometimes a few hours. The mobile app doesnt have to reauthenticate. So I guess something can be improved in refreshing the access token?
from home-assistant-zonneplan-one.
Iโve just installed it via HACS, letโs see how it goes! ๐
from home-assistant-zonneplan-one.
@fsaris looks like the issue is not happening anymore. Thanks for the update!!
from home-assistant-zonneplan-one.
Related Issues (20)
- Multiple zero values retrieved throughout the day for delivery/production of Zonneplan home battery HOT 4
- Powerplay compensation sensor HOT 16
- Current electricity tariff one hour off since Summertime HOT 2
- Thuisbatteriij sensors stopped updating HOT 6
- Entity "Schedule start and end" is not working anymore HOT 8
- Gas price not updating anymore HOT 3
- Powerplay HOT 3
- Connect call failed HOT 10
- HomeAssistantType
- deprecated alias HOT 1
- Detected blocking call to open inside the event loop (HA 2024.6) HOT 2
- sensor.zonneplan_current_usage Shows 0 HOT 9
- How does it work? HOT 6
- Just errors in the logs HOT 4
- No trigger on current elect. tariff HOT 3
- New costs sensors have wrong state_class HOT 5
- Data is rounded HOT 10
- Zonneplan last measured value update only once per hour HOT 4
- Deprecated constants used in Zonneplan integration HOT 2
- Only one of two PV installation shown (both present on one address) HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from home-assistant-zonneplan-one.