Hi,
I installed the master version of SONOFFLAN because I recently bought a SNZB-05P probe (Water Sensor) and I must say that with the master version (3.8.2 has not yet been released) it works well, compliments to @AlexxIT .
When HA starts the AddOn starts without problems but if I try to restart the integration ...
... the system remains in loop for several minutes (about 10 minutes) ...
and then shows this error:
Questo errore ha avuto origine da un'integrazione personalizzata.
Registratore: custom_components.sonoff.core.ewelink.local
Fonte: custom_components/sonoff/core/ewelink/local.py:198
Integrazione: Sonoff (documentazione, problemi)
Prima occorrenza: 19:33:08 (1 occorrenze)
Ultima registrazione: 19:33:08
10022bd4a5 => Local4 | 192.168.100.223:8081 | None
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/aiohttp/client_proto.py", line 262, in data_received
messages, upgraded, tail = self._parser.feed_data(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "aiohttp/_http_parser.pyx", line 563, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadHttpMessage: 400, message:
Data after `Connection: close`:
b'{"sequence":"1732127586617","seq":3,"error":400,"encrypt":true}HTTP/1.1 200 OK'
^
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 1059, in start
message, payload = await protocol.read() # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/streams.py", line 644, in read
await self._waiter
aiohttp.http_exceptions.HttpProcessingError: 400, message:
Data after `Connection: close`:
b'{"sequence":"1732127586617","seq":3,"error":400,"encrypt":true}HTTP/1.1 200 OK'
^
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/config/custom_components/sonoff/core/ewelink/local.py", line 198, in send
r = await self.session.post(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 690, in _request
await resp.start(conn)
File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 1061, in start
raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 400, message='Data after `Connection: close`:\n\n b\'{"sequence":"1732127586617","seq":3,"error":400,"encrypt":true}HTTP/1.1 200 OK\'\n ^', url='http://192.168.100.223:8081/zeroconf/getState'
If I completely restart HA everything works again.
I don't know if the procedure I'm using to install the master version is correct:
I download the zip of the master version and overwrite all the files in the config\custom_components\sonoff folder
I delete all the "pycache" folders and sub folders from the config\custom_components\sonoff folder
I restart HA
Is it correct?
Now since in version 3.8.1 and I also believe in the master, the problem persists that sometimes the devices become "unavailable", I created a custom automation so that when one of the sensors becomes "unavailable", I restart the SONOFFLAN integration (which however does not restart for the problem described above).
Hi, I installed the master version of SONOFFLAN because I recently bought a SNZB-05P probe (Water Sensor) and I must say that with the master version (3.8.2 has not yet been released) it works well, compliments to @AlexxIT . When HA starts the AddOn starts without problems but if I try to restart the integration ...
... the system remains in loop for several minutes (about 10 minutes) ...
and then shows this error:
and also
If I completely restart HA everything works again. I don't know if the procedure I'm using to install the master version is correct:
Is it correct?
Now since in version 3.8.1 and I also believe in the master, the problem persists that sometimes the devices become "unavailable", I created a custom automation so that when one of the sensors becomes "unavailable", I restart the SONOFFLAN integration (which however does not restart for the problem described above).
Attached the log: home-assistant_sonoff_2024-11-20T18-41-48.665Z.log
config_entry-sonoff-01J9M2DYSZGPG2H2V41SPPGFE4.json
Can anyone help me? Thanks in advance and congratulations again for this project