tschamm / boschshc-hass

Home Assistant component for accessing Bosch Smart Home Controller using boschshcpy python library.
Other
172 stars 27 forks source link

Bosch Smart Home Update last week - lot of errors #87

Closed ghost closed 1 year ago

ghost commented 1 year ago

Hi! Bosch wanted me to update the SHC, because I downloaded the new app. Never should have done that probably, because a lot of errors start to happen. Maybe there was an API update? I'm using the HACS repository because of the missing devices in the official one. Pasting my log here...

Logger: boschshcpy
Source: /usr/local/lib/python3.10/site-packages/boschshcpy/session.py:213
First occurred: 06:45:32 (1 occurrences)
Last logged: 06:45:32

Error in polling thread: SHC Error (message: API call returned non-OK result (code 400)!: b'<HTML><HEAD><TITLE>400</TITLE></HEAD><BODY><H1>400 No Host header in request to URI /remote/json-rpc with headers {content-type=application/json, accept=*/*, user-agent=python-requests/2.28.1, posthost=192.168.66.66:8444, api-version=3.2, content-length=76, connection=keep-alive, accept-encoding=gzip, deflate, br}</H1></BODY></HTML>'). Waiting 15 seconds.
Logger: root
Source: /usr/local/lib/python3.10/site-packages/boschshcpy/api.py:122
First occurred: 06:45:32 (1 occurrences)
Last logged: 06:45:32

URL: https://192.168.66.66:8444/remote/json-rpc
Logger: root
Source: /usr/local/lib/python3.10/site-packages/boschshcpy/api.py:121
First occurred: 06:45:32 (1 occurrences)
Last logged: 06:45:32

Headers: {'User-Agent': 'python-requests/2.28.1', 'Accept-Encoding': 'gzip, deflate, br', 'Accept': '*/*', 'Connection': 'keep-alive', 'api-version': '3.2', 'Content-Type': 'application/json', 'Content-Length': '76'}
Logger: root
Source: /usr/local/lib/python3.10/site-packages/boschshcpy/api.py:120
First occurred: 06:45:32 (1 occurrences)
Last logged: 06:45:32

Body: [{"jsonrpc": "2.0", "method": "RE/longPoll", "params": ["f5d4ja3ge-5", 10]}]
Logger: boschshcpy
Source: /usr/local/lib/python3.10/site-packages/boschshcpy/session.py:196
First occurred: February 19, 2023 at 22:18:36 (1 occurrences)
Last logged: February 19, 2023 at 22:18:36

_long_poll returned False. Waiting 1 second.
Logger: boschshcpy
Source: /usr/local/lib/python3.10/site-packages/boschshcpy/session.py:127
First occurred: February 19, 2023 at 22:18:36 (1 occurrences)
Last logged: February 19, 2023 at 22:18:36

SHC claims unknown poll id. Invalidating poll id and trying resubscribe next time...

Thanks voor lookin in to it!

tschamm commented 1 year ago

Are the errors still occurring?

ghost commented 1 year ago

No. Weird. I do did update a few days after posting this a HACS Bosch update appeared.