-
Notifications
You must be signed in to change notification settings - Fork 7
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
Integration doesn't start when Wibeee XML API does not respond #69
Comments
Thanks for the report. I'm afraid this is caused by Wibeee not responding or responding with garbage. When this happens integration is unable to read data from the device and/or to discover what sensors to create in HA. There are already 10 retries in place, I'm not sure that I can much more. |
Note to self: look at using |
same here! sometimes don't report anything, I press the reload button and it works. But suddenly stops again. Normally if I repeat the process it works, but other times I will need press two or three times more delayed on the time until works |
same problem here |
The problem is known, as mentioned above. The device's HTTP API (status.xml) is notoriously unstable. It is quite solid once you configure Local Push, however. "Me too" comments that do not add any information are not helpful, please refrain from commenting unless you have:
|
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
first of all if my last message was considered waste i'm so sorry, I've posted +1, just for keep in track this issue and also, adding more people as affected to get more priority. I've enabled debugging mode and I've retrieved a lot of times these logs: `Logger: custom_components.wibeee.api Error getting http://192.168.0.11/en/status.xml after 3 retries: ClientResponseError: 400, message="Expected HTTP/:\n\n b'AT+CIPSENDBUF=4,312'\n ^", url=URL('http://192.168.0.11/en/status.xml') Me home-assistant is a core version in docker but I already got those logs in supervisor with addons version. the correct answer of this url is the next one: but sometimes gets the other answer and the problem becomes here It sound like is a timeout and don't show all response or something similiar Can I help showing an extra info about the problem to init o keep connected the integration? I can handle it, but I need some clue to obtain that information to share with you |
When I restart HA, the integration doesn't start, and to solve the issue, I have to reload the integration entries.
LOGS
This error originated from a custom integration.
Logger: custom_components.wibeee.api
Source: custom_components/wibeee/api.py:73
Integration: wibeee (documentation, issues)
First occurred: 9:46:46 AM (28 occurrences)
Last logged: 12:36:10 PM
Error getting http://192.168.68.210/en/status.xml after 3 retries: ClientResponseError: 400, message="Expected HTTP/:\n\n b'AT+CIPSENDBUF=4,415'\n ^", url=URL('http://192.168.68.210/en/status.xml')
Error getting http://192.168.68.210/en/status.xml after 3 retries: ClientResponseError: 400, message="Expected HTTP/:\n\n b''\n ^", url=URL('http://192.168.68.210/en/status.xml')
Error getting http://192.168.68.210/en/status.xml after 3 retries: ServerDisconnectedError: Server disconnected
Error getting http://192.168.68.210/en/status.xml after 3 retries: TimeoutError:
Error getting http://192.168.68.210/en/status.xml after 3 retries: ClientResponseError: 400, message="Expected HTTP/:\n\n b'AT+CIPSENDBUF=4,412'\n ^", url=URL('http://192.168.68.210/en/status.xml')
Logger: homeassistant.components.sensor
Source: runner.py:188
Integration: Sensor (documentation, issues)
First occurred: 9:40:35 AM (1 occurrences)
Last logged: 9:40:35 AM
Setup of sensor platform wibeee is taking over 10 seconds.
Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:361
Integration: Sensor (documentation, issues)
First occurred: 9:40:31 AM (1 occurrences)
Last logged: 9:40:31 AM
Error while setting up wibeee platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 361, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/wibeee/sensor.py", line 207, in async_setup_entry
initial_status = await api.async_fetch_status(retries=10)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/wibeee/api.py", line 27, in async_fetch_status
return status["response"]
~~~~~~^^^^^^^^^^^^
KeyError: 'response'
The text was updated successfully, but these errors were encountered: