Comments (9)
Hi @Bartvdgriendt, I've checked it for myself (still running HA Core 0.111.4), but I don't have the entries, although I remember seeing them sometimes. I don't think they do any harm, except for maybe some missing values in your history.
It seems that the portal is taking too long to respond. This can have multiple reasons: your connection to SEMS is down/slow, SEMS servers are slow/down, maybe you're rate limited by the SEMS API, something else?
Are you using the default scan interval (scan_interval: 60
)? I have not tested the component with lower values.
You can try pinging the SEMS API from your system and see if latency increases around the same time as the timeouts happen? Maybe just using ping in a terminal, or using smokeping. If you really want to test HTTPS latency maybe use echoping
?
from goodwe-sems-home-assistant.
Also remember the API/website misbehaving when at the same time using their webportal, but that might be from the time we didn't use the API, but were still scraping their website.
from goodwe-sems-home-assistant.
@TimSoethout Thanks for the quick response and the explanation. I too don't think they do any harm but I always get nervous when I see errors in my logs. ;) I ruled out problems on my side:
- My connection to SEMS is down/slow: I have a 200/200 connection and I run different services on the same server which need internet access 24/7. When internet access is down/slow I'll receive notifications from local and remote devices. I didn't receive any at the time of the errors.
- I changed the scan_interval to 600 because I don't need it to be updated every minute but this doesn't seem to help.
My best guess is that the SEMS API isn't very reliable but then others should have the same errors. I'll try to ping the website for a day and check if I see something useful when I receive the errors. I'm not sure when but I will keep you updated!
from goodwe-sems-home-assistant.
can confirm that i have those errors in the log also. Probaly API not responding, no big issue if you ask me.
from goodwe-sems-home-assistant.
Great timing @dutchdevil83 :) I just finished pinging the website for 2 days. I did that from the ProxMox server that runs HA and did that continuously.
I compared the results with the errors in HA and when those errors occur the latency of the ping spikes and sometimes the host can't even be reached. So as dutchdevil83 and @TimSoethout already said/suspected: it's probably the API that isn’t very reliable. I assume you're both Dutch (based on your usernames) so maybe we can compare the errors to be 100% sure? My most recent error occurred ~45 minutes ago:
2020-09-19 14:23:05 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.sems_portal is taking over 10 seconds
2020-09-19 14:23:25 ERROR (SyncWorker_31) [custom_components.sems.sensor] Unable to fetch data from SEMS. HTTPSConnectionPool(host='www.semsportal.com', port=443): Read timed out. (read timeout=30)
from goodwe-sems-home-assistant.
2020-09-19 14:23:10 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.sems_portal is taking over 10 seconds
2020-09-19 14:23:30 ERROR (SyncWorker_20) [custom_components.sems.sensor] Unable to fetch data from SEMS. HTTPSConnectionPool(host='www.semsportal.com', port=443): Read timed out. (read time
out=30)
2020-09-19 14:24:10 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.sems_portal is taking over 10 seconds
2020-09-19 14:24:30 ERROR (SyncWorker_0) [custom_components.sems.sensor] Unable to fetch data from SEMS. HTTPSConnectionPool(host='www.semsportal.com', port=443): Read timed out. (read timeo
ut=30)
Yup also here on the same minute. Seems to happen more frquently now.
from goodwe-sems-home-assistant.
I don't think we can fix the time-outs themselves.
What we can do it label them differently. Time-outs can be warnings, and maybe an error or notification if it happens too often or something.
What do you think?
from goodwe-sems-home-assistant.
Thanks, that confirms that the SEMS API isn’t 100% reliable and that it's not a problem on my side.
I too don't think we can fix the time-outs. In fact: I know we can't do anything about them. ;) I think that your solution (making time-outs warnings and make them errors when they occure too often) is a great solution. Besides that you could add some information about the unreliable API in the Wiki/Readme to inform users that these warnings/errors are ‘normal’ and that they can't do anything about them.
from goodwe-sems-home-assistant.
I added a note on this in the readme for now.
from goodwe-sems-home-assistant.
Related Issues (20)
- Energy template in HA incorrect HOT 3
- HomeKit reading dips to 0 during the day
- Max retries exceeded with url: xxx HOT 4
- How to change/check config
- Version 5.0.0 is making my GoodWe inverter offline HOT 10
- Docs / list attributes HOT 2
- Seems like some value are not corret?
- Import data inconsistent HOT 13
- Deprecation warning in 2024.7.0
- Component not starting - TypeError: 'NoneType' object is not subscriptable HOT 1
- turn off invertor via api HOT 13
- Error while setting up sems platform for sensor HOT 4
- Feedback on moving from extra_state_attributes to sensors. HOT 4
- GoodWe Sems Api HOT 1
- Expose "powerflow" metrics: real time power import / export in watts HOT 8
- Error adding entities for domain sensor with platform sems HOT 1
- Sems Portal Nightly Midnight Zero is double dipping upsetting HA Recorder HOT 34
- STATE_CLASS_TOTAL_INCREASING was used from sems, this is a deprecated constant which will be removed in HA Core 2025.1 HOT 1
- depreciated constants HA Core 2025.1 HOT 4
- HomeKit withtout sn HOT 1
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 goodwe-sems-home-assistant.