Replies: 24 comments
-
This seems to be a network issue, can you ping your webbox with the configured ip adresses from your HA instance ? May be the webbox ip address changed (it should be configured as a static address or the dhcp server should assign a fixed address to it) |
Beta Was this translation helpful? Give feedback.
-
Webboxes have fixed IP. |
Beta Was this translation helpful? Give feedback.
-
Could you activate debug logs (Settings->Integrations-> SMA Webbox, bottom of the left card) and attach logs (Settings->System->Logs->Download full logs) ? Did you try to connect with sma_webbox.py as well ? |
Beta Was this translation helpful? Give feedback.
-
sma_webbox.py reports [Errno 98] Adress in use |
Beta Was this translation helpful? Give feedback.
-
[\e]0;\u@\h:\w\a]\W $ python3 /homeassistant/custom_components/sma_webbox/sma_webbox.py 192.168.10.169 Webbox .168 is configured and running |
Beta Was this translation helpful? Give feedback.
-
On what platform are you running HA ? |
Beta Was this translation helpful? Give feedback.
-
HA runs on a VM. I made an new install of SMA Webbox. Now everything works fine. |
Beta Was this translation helpful? Give feedback.
-
Is the host running the VM on a windows host (SO_REUSE_PORT socket option not well supported by Windows but required here because the udp port is fixed for all webboxes). I'm running it since a few days before its release without issues up to now (HA running in a docker container on a Linux host but with a single webbox). |
Beta Was this translation helpful? Give feedback.
-
Yesterday I updated homeassistant. Now I get the RPC error message again. One webbox delivers data occasionally, the other two are no longer accessible. The RPC timeout error is reported in the LOG file. |
Beta Was this translation helpful? Give feedback.
-
RPC timeout indicates that no messages is received from the webbox, either because it hasn't been sent or received. Connectivity issue could be related to:
Most likely issue is related to 2 or 3. What do you mean by "restart of the server host" ? (reboot of the machine running your VM ... if this is the case, then it could be 4 or 5 but that would surprise me) Wrt 5., restarting a webbox doesn't help I suppose ? |
Beta Was this translation helpful? Give feedback.
-
Where you able to recover the system using one of these steps ? |
Beta Was this translation helpful? Give feedback.
-
The problem can only be solved by reinstalling the Webbox component. |
Beta Was this translation helpful? Give feedback.
-
Just to make sure I understand; you mean that even if you power down everything and power up again, it doesn't recover and that to effectively recover, you have to remove the webbox integration and add it again to HA ? If it is the case, it means that something wrong is stored in one of the HA registry (.storage/config_entries, .storage/device_registry or .storage/.entity_registry). The trigger for the issue is an update of homeassistant to a new version ? (I'll try to reproduce) |
Beta Was this translation helpful? Give feedback.
-
It's exactly like that. |
Beta Was this translation helpful? Give feedback.
-
After installing a webrtc camera integration with HACS, the connection to all webboxes is interrupted. |
Beta Was this translation helpful? Give feedback.
-
Very strange that two integrations interfere with each other's (no shared/global objects apriori) unless webrtc is using the same port as SMA webboxes but that would be surprising. I'll have a look at that integration/see what it does. Anything to see out of the logs from webbox or webrtc ? |
Beta Was this translation helpful? Give feedback.
-
The connection is broken again. At the same time, one webbox failed completely, one is still delivering partial data. One box is still working. |
Beta Was this translation helpful? Give feedback.
-
I just upgrade my own HA version to 11.2 to make sure and everything still work. (and not a single issue with the latest version of the integration either When a box is failing, is sma_webbox.py working from a different machine ? if yes, from the same machine (host not in the container) ? if yes, from within HA container ? |
Beta Was this translation helpful? Give feedback.
-
After a power failure, the connection to 2 boxes was interrupted. Restarting Homeassistant did not help. I had to remove the 3 Webbox entities and restart the HA. I was then able to add the boxes again without any errors. The HA runs on a VM |
Beta Was this translation helpful? Give feedback.
-
A few more questions:
Something is "sticky" somewhere but I don't undertstand yet where ... |
Beta Was this translation helpful? Give feedback.
-
Normally i do not restart the VM just HA I am using the userinterface for configuration. i can find the following 3 lines:
|
Beta Was this translation helpful? Give feedback.
-
Could you reattach the 3 lines as a file or mark them as code (they were cut after "pref_disa>" ? (nothing abnormal up to there) Next time, before touching anything, could restart the VM to confirm that the issue is not coming from there (not sure I understand then why removing instanaces and adding them again would help but I would like to exclude that possible root cause as well) ? |
Beta Was this translation helpful? Give feedback.
-
I have done some tests. Even on a new VM under Proxmox, the connection drops immediately when Homeassistant is restarted. The webboxes must now be deleted. After a restart of Homeassitant, the boxes can be set up again and work immediately. |
Beta Was this translation helpful? Give feedback.
-
This seems to confirm what I mentionned before, i.e. that the host running the VM or the VM doesn't release the comm port (docker for Windows has a similar issue) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
HA lost connection after 4.5 day operation:
Screenshot (https://github.com/user-attachments/assets/fcef1175-6482-49f0-9d97-bbe388561f89)
Reboot of HA did not change anything.
I removed one Webbox and could not connect to this webbox anymore:
Error: RPC rpc request timed out
Some Datapoints still there from 1 Box but Error in HA:
Screenshot (https://github.com/user-attachments/assets/f9a1b9d7-8205-41b7-a7b1-f472bcaad295)
The Log shows RPC request timed out to every box.
Beta Was this translation helpful? Give feedback.
All reactions