Z-Wave status not updating for lights

Thanks again.

I have this for those stats (after a HA restart about 10mins ago to tackle the rest of your steps). Not sure how that fares?

Custom integrations? I do run Adaptive Lighting. I disabled it for each light circuit that has it when I did that prior testing, and I have had it for quite some time without issues, but I could completely disable that and repeat the earlier exercise if you think that’s worthwhile.

Additionally: BOM Weather, HACS, localtuya, (Node-Red), Orbit B-hyve, UI Lovelace Minimalist.

No change to the Zigbee network recently (I did add a Tuya Human Presence Detection Sensor and then immediately removed it when I realised how terrible it was, in addition to its ugliness! But net effect zero probably). Similar Z-Wave has been entirely stable over the past while as I’m starting to use Shelly gear a lot.

I did the restart with the logger config using your second snippet (info, with websocket_api.http.connection: debug) and got the same error on startup. The full log is huge. I’ve restarted again with the default log level at critical so it weeds out the unrelated and prior to the restart I disabled the Adaptive Lighting integration just in case. I carried on with that, and disabled Unifi Protect, Unifi Network, and Sonos which all seem to show up in the logs as using a web socket. The error persisted until finally I disabled Zwavejs and restarted to the refreshing message “There are no new issues!”, so I’m almost certain thats the culprit.

Re-enabling it (and leaving the others disabled for speed of reboot), upon restart I get:

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/http.py:157
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 3:53:14 PM (1 occurrences)
Last logged: 3:53:14 PM

[140297692397088] Client unable to keep up with pending messages. Stayed over 512 for 5 seconds. The system's load is too high or an integration is misbehaving

We may need to look at the huge log at somepoint.

Zwavejs has two log files. The z-ui* logfiles contain info about everything that is sent out via the websocket. Looking at that should provide info on what messages are getting sent and the nodes that are sending them.

Another thing to look at is each node has stats also. Go through one by one in the UI and see if one has a significantly larger amount of messages.

Thank you. I was working through the HA log file and trying to make up from down. I might try and private message that to you if that’s ok because there seemed to be access tokens and the like in there, some of which I was peeling out as I went, but who knows what I might have left in.

On my own steam, I disabled every single integration and have been re-enabling them in carefully selected batches and restarting HA each time, just to check it wasn’t another integration in collaboration causing the web socket error as well, somehow. I have zwavejs and several others enabled (with still some disabled), and everything is peaceful in terms of error messages in HA on startup. To note, despite that, the z-wave response is still poor and in line with my performance table above so we may be chasing a red herring with the web socket issue (?). Nonetheless, curious/frustrating to note in this process:

  • Enabling the Iotawatt integration (that I have) caused the web socket error. Disabling and restarting resolved it, but then re-enabling didn’t reproduce it. Argh!

  • With Iotawatt now enabled, additionally enabling the Node-Red integration then caused the web socket error. Now disabling both Iotawatt and Node-Red won’t restore the calm. Aaaargh!

    => Is there a web socket queue that endures restarts and was flooded by one of these and HA is still catching up despite them being now disabled?!

  • Disabling zwavejs and restarting: HA came up error free. Re-enabling and restarting: errors back.

  • Disabling zwavejs, enabling Iotawatt and restarting: errors again.

    => I’m starting to think that its the sum of user applications hitting the web socket thats the issue, not any one culprit perhaps and/or the prior hypothesis?!

  • Iotawatt and Node-Red disabled, zwavejs enabled: error appears, but this is the where it all began error free so clearly something isn’t as it seems.


Nothing jumps out on the statistics side of things. I added those to the earlier table:

I’ve put a log file for today here: zwavejs_2023-01-14.log - Google Drive. I can’t actually see any z-ui type log files. I enabled log to file as well in the settings but with no success. But watching in the debug window in the ui, there is very little going on over the coarse of about 5 minutes:

2023-01-14 22:07:26.378 INFO Z-WAVE: Node 21: value updated: 50-0-value-66049 0 => 0
2023-01-14 22:07:56.374 INFO Z-WAVE: Node 13: value updated: 50-0-value-65537 323.355 => 323.416
2023-01-14 22:09:17.960 INFO Z-WAVE: Node 12: value updated: 50-0-value-65537 176.329 => 176.345
2023-01-14 22:09:20.418 INFO Z-WAVE: Node 14: value updated: 50-0-value-65537 86.165 => 86.165
2023-01-14 22:09:21.602 INFO Z-WAVE: Node 22: value updated: 50-0-value-66049 0 => 0
2023-01-14 22:11:17.385 INFO Z-WAVE: Node 13: value updated: 50-0-value-66049 366.425 => 86.08
2023-01-14 22:11:32.969 INFO Z-WAVE: Node 12: value updated: 50-0-value-66049 47.881 => 196.833

And now, some 20 minutes on from my earlier web socket on restart woes described above, I’ve tried a restart with zwavejs enabled and Iotawatt and Node-Red still disabled… and the error appears again, seemingly to quash my queue theory.

Analysis of the log file

The device that is reporting sensors that start with sensor.living_room_tv_* is causing the websocket issue. I see ~100 changes a second occurring. Here is a look at just one of its sensors - sensor.living_room_tv_power_energy_voltage - about 10 times a second.

I believe this is coming in from MQTT from a Tasmota device?

Line 3625: 2023-01-14 15:53:08.940 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140297692519232] Sending {"id":13,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"sensor.living_room_tv_power_energy_voltage","old_state":null,"new_state":{"entity_id":"sensor.living_room_tv_power_energy_voltage","state":"unknown","attributes":{"state_class":"measurement","unit_of_measurement":"V","icon":"mdi:alpha-v-circle-outline","friendly_name":"Living Room TV Power ENERGY Voltage"},"last_changed":"2023-01-14T07:53:08.924827+00:00","last_updated":"2023-01-14T07:53:08.924827+00:00","context":{"id":"01GPQM98HWKGV1JAFMSE88254S","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2023-01-14T07:53:08.924827+00:00","context":{"id":"01GPQM98HWKGV1JAFMSE88254S","parent_id":null,"user_id":null}}}
	Line 3659: 2023-01-14 15:53:08.967 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140297692519232] Sending {"id":13,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"sensor.living_room_tv_power_energy_voltage","old_state":{"entity_id":"sensor.living_room_tv_power_energy_voltage","state":"unknown","attributes":{"state_class":"measurement","unit_of_measurement":"V","icon":"mdi:alpha-v-circle-outline","friendly_name":"Living Room TV Power ENERGY Voltage"},"last_changed":"2023-01-14T07:53:08.924827+00:00","last_updated":"2023-01-14T07:53:08.924827+00:00","context":{"id":"01GPQM98HWKGV1JAFMSE88254S","parent_id":null,"user_id":null}},"new_state":{"entity_id":"sensor.living_room_tv_power_energy_voltage","state":"unknown","attributes":{"state_class":"measurement","unit_of_measurement":"V","icon":"mdi:alpha-v-circle-outline","friendly_name":"Living Room TV Power ENERGY Voltage"},"last_changed":"2023-01-14T07:53:08.953789+00:00","last_updated":"2023-01-14T07:53:08.953789+00:00","context":{"id":"01GPQM98JSSR814GDHF1WPR3G2","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2023-01-14T07:53:08.953789+00:00","context":{"id":"01GPQM98JSSR814GDHF1WPR3G2","parent_id":null,"user_id":null}}}
	Line 3689: 2023-01-14 15:53:08.988 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140297692519232] Sending {"id":13,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"sensor.living_room_tv_power_energy_voltage","old_state":{"entity_id":"sensor.living_room_tv_power_energy_voltage","state":"unknown","attributes":{"state_class":"measurement","unit_of_measurement":"V","icon":"mdi:alpha-v-circle-outline","friendly_name":"Living Room TV Power ENERGY Voltage"},"last_changed":"2023-01-14T07:53:08.953789+00:00","last_updated":"2023-01-14T07:53:08.953789+00:00","context":{"id":"01GPQM98JSSR814GDHF1WPR3G2","parent_id":null,"user_id":null}},"new_state":{"entity_id":"sensor.living_room_tv_power_energy_voltage","state":"unknown","attributes":{"state_class":"measurement","unit_of_measurement":"V","icon":"mdi:alpha-v-circle-outline","friendly_name":"Living Room TV Power ENERGY Voltage"},"last_changed":"2023-01-14T07:53:08.978049+00:00","last_updated":"2023-01-14T07:53:08.978049+00:00","context":{"id":"01GPQM98KJ029A0ZCG3K7WE1Q3","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2023-01-14T07:53:08.978049+00:00","context":{"id":"01GPQM98KJ029A0ZCG3K7WE1Q3","parent_id":null,"user_id":null}}}
	Line 3729: 2023-01-14 15:53:09.017 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140297692519232] Sending {"id":13,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"sensor.living_room_tv_power_energy_voltage","old_state":{"entity_id":"sensor.living_room_tv_power_energy_voltage","state":"unknown","attributes":{"state_class":"measurement","unit_of_measurement":"V","icon":"mdi:alpha-v-circle-outline","friendly_name":"Living Room TV Power ENERGY Voltage"},"last_changed":"2023-01-14T07:53:08.978049+00:00","last_updated":"2023-01-14T07:53:08.978049+00:00","context":{"id":"01GPQM98KJ029A0ZCG3K7WE1Q3","parent_id":null,"user_id":null}},"new_state":{"entity_id":"sensor.living_room_tv_power_energy_voltage","state":"unknown","attributes":{"state_class":"measurement","unit_of_measurement":"V","icon":"mdi:alpha-v-circle-outline","friendly_name":"Living Room TV Power ENERGY Voltage"},"last_changed":"2023-01-14T07:53:09.003955+00:00","last_updated":"2023-01-14T07:53:09.003955+00:00","context":{"id":"01GPQM98MB6N3NB9R2Q9FT8KP5","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2023-01-14T07:53:09.003955+00:00","context":{"id":"01GPQM98MB6N3NB9R2Q9FT8KP5","parent_id":null,"user_id":null}}}
	Line 3767: 2023-01-14 15:53:09.038 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140297692519232] Sending {"id":13,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"sensor.living_room_tv_power_energy_voltage","old_state":{"entity_id":"sensor.living_room_tv_power_energy_voltage","state":"unknown","attributes":{"state_class":"measurement","unit_of_measurement":"V","icon":"mdi:alpha-v-circle-outline","friendly_name":"Living Room TV Power ENERGY Voltage"},"last_changed":"2023-01-14T07:53:09.003955+00:00","last_updated":"2023-01-14T07:53:09.003955+00:00","context":{"id":"01GPQM98MB6N3NB9R2Q9FT8KP5","parent_id":null,"user_id":null}},"new_state":{"entity_id":"sensor.living_room_tv_power_energy_voltage","state":"unknown","attributes":{"state_class":"measurement","unit_of_measurement":"V","icon":"mdi:alpha-v-circle-outline","friendly_name":"Living Room TV Power ENERGY Voltage"},"last_changed":"2023-01-14T07:53:09.029086+00:00","last_updated":"2023-01-14T07:53:09.029086+00:00","context":{"id":"01GPQM98N5DW8JAG0JHX1T2843","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2023-01-14T07:53:09.029086+00:00","context":{"id":"01GPQM98N5DW8JAG0JHX1T2843","parent_id":null,"user_id":null}}}
	Line 3803: 2023-01-14 15:53:09.061 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140297692519232] Sending {"id":13,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"sensor.living_room_tv_power_energy_voltage","old_state":{"entity_id":"sensor.living_room_tv_power_energy_voltage","state":"unknown","attributes":{"state_class":"measurement","unit_of_measurement":"V","icon":"mdi:alpha-v-circle-outline","friendly_name":"Living Room TV Power ENERGY Voltage"},"last_changed":"2023-01-14T07:53:09.029086+00:00","last_updated":"2023-01-14T07:53:09.029086+00:00","context":{"id":"01GPQM98N5DW8JAG0JHX1T2843","parent_id":null,"user_id":null}},"new_state":{"entity_id":"sensor.living_room_tv_power_energy_voltage","state":"unknown","attributes":{"state_class":"measurement","unit_of_measurement":"V","icon":"mdi:alpha-v-circle-outline","friendly_name":"Living Room TV Power ENERGY Voltage"},"last_changed":"2023-01-14T07:53:09.048988+00:00","last_updated":"2023-01-14T07:53:09.048988+00:00","context":{"id":"01GPQM98NR5BZ404JKR0F1TE5S","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2023-01-14T07:53:09.048988+00:00","context":{"id":"01GPQM98NR5BZ404JKR0F1TE5S","parent_id":null,"user_id":null}}}
	Line 3847: 2023-01-14 15:53:09.092 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140297692519232] Sending {"id":13,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"sensor.living_room_tv_power_energy_voltage","old_state":{"entity_id":"sensor.living_room_tv_power_energy_voltage","state":"unknown","attributes":{"state_class":"measurement","unit_of_measurement":"V","icon":"mdi:alpha-v-circle-outline","friendly_name":"Living Room TV Power ENERGY Voltage"},"last_changed":"2023-01-14T07:53:09.048988+00:00","last_updated":"2023-01-14T07:53:09.048988+00:00","context":{"id":"01GPQM98NR5BZ404JKR0F1TE5S","parent_id":null,"user_id":null}},"new_state":{"entity_id":"sensor.living_room_tv_power_energy_voltage","state":"unknown","attributes":{"state_class":"measurement","unit_of_measurement":"V","icon":"mdi:alpha-v-circle-outline","friendly_name":"Living Room TV Power ENERGY Voltage"},"last_changed":"2023-01-14T07:53:09.076420+00:00","last_updated":"2023-01-14T07:53:09.076420+00:00","context":{"id":"01GPQM98PM4H61NSD4GT22RPG6","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2023-01-14T07:53:09.076420+00:00","context":{"id":"01GPQM98PM4H61NSD4GT22RPG6","parent_id":null,"user_id":null}}}
	Line 3879: 2023-01-14 15:53:09.124 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140297692519232] Sending {"id":13,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"sensor.living_room_tv_power_energy_voltage","old_state":{"entity_id":"sensor.living_room_tv_power_energy_voltage","state":"unknown","attributes":{"state_class":"measurement","unit_of_measurement":"V","icon":"mdi:alpha-v-circle-outline","friendly_name":"Living Room TV Power ENERGY Voltage"},"last_changed":"2023-01-14T07:53:09.076420+00:00","last_updated":"2023-01-14T07:53:09.076420+00:00","context":{"id":"01GPQM98PM4H61NSD4GT22RPG6","parent_id":null,"user_id":null}},"new_state":{"entity_id":"sensor.living_room_tv_power_energy_voltage","state":"unknown","attributes":{"state_class":"measurement","unit_of_measurement":"V","icon":"mdi:alpha-v-circle-outline","friendly_name":"Living Room TV Power ENERGY Voltage"},"last_changed":"2023-01-14T07:53:09.101997+00:00","last_updated":"2023-01-14T07:53:09.101997+00:00","context":{"id":"01GPQM98QDT99TFNXATGD1TZBW","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2023-01-14T07:53:09.101997+00:00","context":{"id":"01GPQM98QDT99TFNXATGD1TZBW","parent_id":null,"user_id":null}}}
	Line 3915: 2023-01-14 15:53:09.151 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140297692519232] Sending {"id":13,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"sensor.living_room_tv_power_energy_voltage","old_state":{"entity_id":"sensor.living_room_tv_power_energy_voltage","state":"unknown","attributes":{"state_class":"measurement","unit_of_measurement":"V","icon":"mdi:alpha-v-circle-outline","friendly_name":"Living Room TV Power ENERGY Voltage"},"last_changed":"2023-01-14T07:53:09.101997+00:00","last_updated":"2023-01-14T07:53:09.101997+00:00","context":{"id":"01GPQM98QDT99TFNXATGD1TZBW","parent_id":null,"user_id":null}},"new_state":{"entity_id":"sensor.living_room_tv_power_energy_voltage","state":"unknown","attributes":{"state_class":"measurement","unit_of_measurement":"V","icon":"mdi:alpha-v-circle-outline","friendly_name":"Living Room TV Power ENERGY Voltage"},"last_changed":"2023-01-14T07:53:09.137650+00:00","last_updated":"2023-01-14T07:53:09.137650+00:00","context":{"id":"01GPQM98RH8WFATTC21EKMH4W4","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2023-01-14T07:53:09.137650+00:00","context":{"id":"01GPQM98RH8WFATTC21EKMH4W4","parent_id":null,"user_id":null}}}
	Line 3947: 2023-01-14 15:53:09.174 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140297692519232] Sending {"id":13,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"sensor.living_room_tv_power_energy_voltage","old_state":{"entity_id":"sensor.living_room_tv_power_energy_voltage","state":"unknown","attributes":{"state_class":"measurement","unit_of_measurement":"V","icon":"mdi:alpha-v-circle-outline","friendly_name":"Living Room TV Power ENERGY Voltage"},"last_changed":"2023-01-14T07:53:09.137650+00:00","last_updated":"2023-01-14T07:53:09.137650+00:00","context":{"id":"01GPQM98RH8WFATTC21EKMH4W4","parent_id":null,"user_id":null}},"new_state":{"entity_id":"sensor.living_room_tv_power_energy_voltage","state":"unknown","attributes":{"state_class":"measurement","unit_of_measurement":"V","icon":"mdi:alpha-v-circle-outline","friendly_name":"Living Room TV Power ENERGY Voltage"},"last_changed":"2023-01-14T07:53:09.162189+00:00","last_updated":"2023-01-14T07:53:09.162189+00:00","context":{"id":"01GPQM98SAXJ6SF7F8AA4X2JJ5","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2023-01-14T07:53:09.162189+00:00","context":{"id":"01GPQM98SAXJ6SF7F8AA4X2JJ5","parent_id":null,"user_id":null}}}
	Line 3983: 2023-01-14 15:53:09.198 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140297692519232] Sending {"id":13,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"sensor.living_room_tv_power_energy_voltage","old_state":{"entity_id":"sensor.living_room_tv_power_energy_voltage","state":"unknown","attributes":{"state_class":"measurement","unit_of_measurement":"V","icon":"mdi:alpha-v-circle-outline","friendly_name":"Living Room TV Power ENERGY Voltage"},"last_changed":"2023-01-14T07:53:09.162189+00:00","last_updated":"2023-01-14T07:53:09.162189+00:00","context":{"id":"01GPQM98SAXJ6SF7F8AA4X2JJ5","parent_id":null,"user_id":null}},"new_state":{"entity_id":"sensor.living_room_tv_power_energy_voltage","state":"unknown","attributes":{"state_class":"measurement","unit_of_measurement":"V","icon":"mdi:alpha-v-circle-outline","friendly_name":"Living Room TV Power ENERGY Voltage"},"last_changed":"2023-01-14T07:53:09.186313+00:00","last_updated":"2023-01-14T07:53:09.186313+00:00","context":{"id":"01GPQM98T2D4G7DYQGRPB50Z20","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2023-01-14T07:53:09.186313+00:00","context":{"id":"01GPQM98T2D4G7DYQGRPB50Z20","parent_id":null,"user_id":null}}}
	Line 4015: 2023-01-14 15:53:09.215 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140297692519232] Sending {"id":13,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"sensor.living_room_tv_power_energy_voltage","old_state":{"entity_id":"sensor.living_room_tv_power_energy_voltage","state":"unknown","attributes":{"state_class":"measurement","unit_of_measurement":"V","icon":"mdi:alpha-v-circle-outline","friendly_name":"Living Room TV Power ENERGY Voltage"},"last_changed":"2023-01-14T07:53:09.186313+00:00","last_updated":"2023-01-14T07:53:09.186313+00:00","context":{"id":"01GPQM98T2D4G7DYQGRPB50Z20","parent_id":null,"user_id":null}},"new_state":{"entity_id":"sensor.living_room_tv_power_energy_voltage","state":"unknown","attributes":{"state_class":"measurement","unit_of_measurement":"V","icon":"mdi:alpha-v-circle-outline","friendly_name":"Living Room TV Power ENERGY Voltage"},"last_changed":"2023-01-14T07:53:09.206129+00:00","last_updated":"2023-01-14T07:53:09.206129+00:00","context":{"id":"01GPQM98TPVW19X8EV228MZ2MV","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2023-01-14T07:53:09.206129+00:00","context":{"id":"01GPQM98TPVW19X8EV228MZ2MV","parent_id":null,"user_id":null}}}
	Line 4025: 2023-01-14 15:53:09.231 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140297692519232] Sending {"id":13,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"sensor.living_room_tv_power_energy_voltage","old_state":{"entity_id":"sensor.living_room_tv_power_energy_voltage","state":"unknown","attributes":{"state_class":"measurement","unit_of_measurement":"V","icon":"mdi:alpha-v-circle-outline","friendly_name":"Living Room TV Power ENERGY Voltage"},"last_changed":"2023-01-14T07:53:09.206129+00:00","last_updated":"2023-01-14T07:53:09.206129+00:00","context":{"id":"01GPQM98TPVW19X8EV228MZ2MV","parent_id":null,"user_id":null}},"new_state":{"entity_id":"sensor.living_room_tv_power_energy_voltage","state":"unknown","attributes":{"state_class":"measurement","unit_of_measurement":"V","icon":"mdi:alpha-v-circle-outline","friendly_name":"Living Room TV Power ENERGY Voltage"},"last_changed":"2023-01-14T07:53:09.222074+00:00","last_updated":"2023-01-14T07:53:09.222074+00:00","context":{"id":"01GPQM98V6MYZ5GRQGRZ4404MW","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2023-01-14T07:53:09.222074+00:00","context":{"id":"01GPQM98V6MYZ5GRQGRZ4404MW","parent_id":null,"user_id":null}}}
	Line 4053: 2023-01-14 15:53:09.239 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140297692519232] Sending {"id":13,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"sensor.living_room_tv_power_energy_voltage","old_state":{"entity_id":"sensor.living_room_tv_power_energy_voltage","state":"unknown","attributes":{"state_class":"measurement","unit_of_measurement":"V","icon":"mdi:alpha-v-circle-outline","friendly_name":"Living Room TV Power ENERGY Voltage"},"last_changed":"2023-01-14T07:53:09.222074+00:00","last_updated":"2023-01-14T07:53:09.222074+00:00","context":{"id":"01GPQM98V6MYZ5GRQGRZ4404MW","parent_id":null,"user_id":null}},"new_state":{"entity_id":"sensor.living_room_tv_power_energy_voltage","state":"unknown","attributes":{"state_class":"measurement","unit_of_measurement":"V","icon":"mdi:alpha-v-circle-outline","friendly_name":"Living Room TV Power ENERGY Voltage"},"last_changed":"2023-01-14T07:53:09.226613+00:00","last_updated":"2023-01-14T07:53:09.226613+00:00","context":{"id":"01GPQM98VA8QSDP481KCMHHF4S","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2023-01-14T07:53:09.226613+00:00","context":{"id":"01GPQM98VA8QSDP481KCMHHF4S","parent_id":null,"user_id":null}}}

There’s this GitHub issue with a similar websocket issue, say it was resolved in 2022.9.0

What version are you running?

I’m up to date (2023.1.4). I find that GH issue hard to follow as to whether its actually saying resolved anyway?

The PR that fixes it alleviates the problem, that doesn’t mean that the pending message queue will always be below 512. Issues like this are caused by outside sources, and the users should fix what’s bombarding the websocket in 99% of cases.

Yeah, I’m certainly in that boat, I’m under no illusion. But the error gives me very little to go by to find the root cause. Still digging but, and it won’t defeat me…

Looking at peterages response, it looks like he identified the problem in your logs. You have a device that sends 10 state changes in under 0.25 seconds. How often does that update?

I have had a separate chat with PeteRage regarding the detailed logs in a private message. Working through some of that now, for the benefit of the public post, and expanding from my latest investigations:

  • The device PeteRage identified is actually a Tasmota smartswitch so its wifi via MQTT rather than z-wave… I have that currently disconnected (by PeteRage isn’t sure whether that may not matter)
  • The web socket error doesn’t seem to relate to any one particularly integration based on my earlier enabling and re-enabling investigations (and it could still be this web socket error nothing to do with the z-wave issues I’m experiencing… but we are trying to work through this first)
  • It seems that the web socket error occurs on start up of HA, and then doesn’t reappear (see below, restarted just before 740pm, and its 940pm at the time of writing)

  • Looking at the detailed “info” logs for homeassistant.components.websocket_api.http.connection, just prior to this (and particularly the 5 second window prior)…
    • 2023-01-16 19:39:59.159 … HA starts / log begins
    • 2023-01-16 19:40:05.586 … and onwards, a whole heap of events start appearing, eg
2023-01-16 19:40:05.788 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140686398393072] Sending {"id":282,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"light.pantry_lights","old_state":null,"new_state":{"entity_id":"light.pantry_lights","state":"unavailable","attributes":{"supported_color_modes":["onoff"],"friendly_name":"Pantry Lights","supported_features":0},"last_changed":"2023-01-16T11:40:05.739891+00:00","last_updated":"2023-01-16T11:40:05.739891+00:00","context":{"id":"01GPX6287BMHMWQD77Z3AM3H21","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2023-01-16T11:40:05.739891+00:00","context":{"id":"01GPX6287BMHMWQD77Z3AM3H21","parent_id":null,"user_id":null}}}
    • The above is line 242. The time 19:40:27 first appears on line 7531. I have no idea if that’s a significant amount of activity or not in 20 odd seconds - it seems like maybe it is, but it also seems like HA has to declare an initial state for every single entity amongst other things. The lines at this time:
2023-01-16 19:40:27.047 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140685863878864] Received {'type': 'get_config', 'id': 71}
2023-01-16 19:40:27.047 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140685863878864] Received {'type': 'unsubscribe_events', 'subscription': 34, 'id': 72}
2023-01-16 19:40:27.048 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140685863878864] Received {'type': 'frontend/get_translations', 'language': 'en', 'category': 'state', 'config_flow': False, 'id': 73}
2023-01-16 19:40:27.048 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140685863878864] Received {'type': 'frontend/get_translations', 'language': 'en', 'category': 'state_attributes', 'config_flow': False, 'id': 74}
2023-01-16 19:40:27.048 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140685863878864] Received {'type': 'frontend/get_translations', 'language': 'en', 'category': 'entity', 'config_flow': False, 'id': 75}
2023-01-16 19:40:27.048 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140685863878864] Received {'type': 'frontend/get_translations', 'language': 'en', 'category': 'title', 'config_flow': False, 'id': 76}
2023-01-16 19:40:27.070 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140686398393072] Client unable to keep up with pending messages. Stayed over 512 for 5 seconds. The system's load is too high or an integration is misbehaving
    • In the 5-10 seconds prior there seems to be a lot of the following sort of stuff - nothing unique and individually remarkable, just a lot of the same stuff for different entities
2023-01-16 19:40:24.622 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140686398752560] Sending {"id":7,"type":"event","event":{"c":{"binary_sensor.living_room_windows":{"+":{"s":"unknown","lc":1673869224.497889,"c":"01GPX62THHGTW4R28P91294SE8","a":{"entity_id":["binary_sensor.living_room_left_window_contact","binary_sensor.living_room_right_window_contact"]}}}}}}
2023-01-16 19:40:24.622 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140686398752560] Sending {"id":13,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"binary_sensor.living_room_windows","old_state":{"entity_id":"binary_sensor.living_room_windows","state":"unavailable","attributes":{"device_class":"window","icon":"mdi:window-closed-variant","friendly_name":"Living Room Windows"},"last_changed":"2023-01-16T11:40:06.659211+00:00","last_updated":"2023-01-16T11:40:06.659211+00:00","context":{"id":"01GPX62943K0FFHRGG5J48RDH6","parent_id":null,"user_id":null}},"new_state":{"entity_id":"binary_sensor.living_room_windows","state":"unknown","attributes":{"entity_id":["binary_sensor.living_room_left_window_contact","binary_sensor.living_room_right_window_contact"],"device_class":"window","icon":"mdi:window-closed-variant","friendly_name":"Living Room Windows"},"last_changed":"2023-01-16T11:40:24.497889+00:00","last_updated":"2023-01-16T11:40:24.497889+00:00","context":{"id":"01GPX62THHGTW4R28P91294SE8","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2023-01-16T11:40:24.497889+00:00","context":{"id":"01GPX62THHGTW4R28P91294SE8","parent_id":null,"user_id":null}}}
2023-01-16 19:40:24.622 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140686398752560] Sending {"id":7,"type":"event","event":{"c":{"binary_sensor.master_bedroom_and_ensuite_windows":{"+":{"s":"unknown","lc":1673869224.498051,"c":"01GPX62THJVNGMD0XBQVA2REC0","a":{"entity_id":["binary_sensor.master_bedroom_left_window_contact","binary_sensor.master_bedroom_right_window_contact","binary_sensor.master_ensuite_window_contact"]}}}}}}
2023-01-16 19:40:24.623 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140686398752560] Sending {"id":13,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"binary_sensor.master_bedroom_and_ensuite_windows","old_state":{"entity_id":"binary_sensor.master_bedroom_and_ensuite_windows","state":"unavailable","attributes":{"device_class":"window","icon":"mdi:window-closed-variant","friendly_name":"Master Bedroom & Ensuite Windows"},"last_changed":"2023-01-16T11:40:06.659987+00:00","last_updated":"2023-01-16T11:40:06.659987+00:00","context":{"id":"01GPX62943JECCMZEGZFWAQMEH","parent_id":null,"user_id":null}},"new_state":{"entity_id":"binary_sensor.master_bedroom_and_ensuite_windows","state":"unknown","attributes":{"entity_id":["binary_sensor.master_bedroom_left_window_contact","binary_sensor.master_bedroom_right_window_contact","binary_sensor.master_ensuite_window_contact"],"device_class":"window","icon":"mdi:window-closed-variant","friendly_name":"Master Bedroom & Ensuite Windows"},"last_changed":"2023-01-16T11:40:24.498051+00:00","last_updated":"2023-01-16T11:40:24.498051+00:00","context":{"id":"01GPX62THJVNGMD0XBQVA2REC0","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2023-01-16T11:40:24.498051+00:00","context":{"id":"01GPX62THJVNGMD0XBQVA2REC0","parent_id":null,"user_id":null}}}
2023-01-16 19:40:24.625 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140686398752560] Sending {"id":7,"type":"event","event":{"c":{"binary_sensor.front_room_windows":{"+":{"s":"unknown","lc":1673869224.498216,"c":"01GPX62THJSFWQHV4ZS60TZM02","a":{"entity_id":["binary_sensor.front_room_sliding_window_contact"]}}}}}}
2023-01-16 19:40:24.625 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140686398752560] Sending {"id":13,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"binary_sensor.front_room_windows","old_state":{"entity_id":"binary_sensor.front_room_windows","state":"unavailable","attributes":{"device_class":"window","friendly_name":"Front Room Windows"},"last_changed":"2023-01-16T11:40:06.660688+00:00","last_updated":"2023-01-16T11:40:06.660688+00:00","context":{"id":"01GPX629445CFYSZJXAPZ8RFB4","parent_id":null,"user_id":null}},"new_state":{"entity_id":"binary_sensor.front_room_windows","state":"unknown","attributes":{"entity_id":["binary_sensor.front_room_sliding_window_contact"],"device_class":"window","friendly_name":"Front Room Windows"},"last_changed":"2023-01-16T11:40:24.498216+00:00","last_updated":"2023-01-16T11:40:24.498216+00:00","context":{"id":"01GPX62THJSFWQHV4ZS60TZM02","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2023-01-16T11:40:24.498216+00:00","context":{"id":"01GPX62THJSFWQHV4ZS60TZM02","parent_id":null,"user_id":null}}}
2023-01-16 19:40:24.007 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140686398393072] Sending {"id":282,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"sensor.george1_battery_2_discharging_w","old_state":null,"new_state":{"entity_id":"sensor.george1_battery_2_discharging_w","state":"0.0","attributes":{"unit_of_measurement":"W","device_class":"power","icon":"mdi:solar-power","friendly_name":"George1 Battery 2 discharging W"},"last_changed":"2023-01-16T11:40:19.265198+00:00","last_updated":"2023-01-16T11:40:19.265198+00:00","context":{"id":"01GPX62NE1H5MA0EHS6NJ9RKPB","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2023-01-16T11:40:19.265198+00:00","context":{"id":"01GPX62NE1H5MA0EHS6NJ9RKPB","parent_id":null,"user_id":null}}}
2023-01-16 19:40:24.007 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140686398393072] Sending {"id":282,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"sensor.george1_lifetime_total_battery_2_discharged","old_state":null,"new_state":{"entity_id":"sensor.george1_lifetime_total_battery_2_discharged","state":"0.0","attributes":{"state_class":"total_increasing","unit_of_measurement":"kWh","device_class":"energy","icon":"mdi:solar-power","friendly_name":"George1 Lifetime total battery 2 discharged"},"last_changed":"2023-01-16T11:40:19.276140+00:00","last_updated":"2023-01-16T11:40:19.276140+00:00","context":{"id":"01GPX62NEC6743E5Q9Y41T899P","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2023-01-16T11:40:19.276140+00:00","context":{"id":"01GPX62NEC6743E5Q9Y41T899P","parent_id":null,"user_id":null}}}
2023-01-16 19:40:24.008 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140686398393072] Sending {"id":282,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"sensor.george1_all_batteries_charged_today","old_state":null,"new_state":{"entity_id":"sensor.george1_all_batteries_charged_today","state":"0.0","attributes":{"state_class":"total_increasing","unit_of_measurement":"kWh","device_class":"energy","icon":"mdi:solar-power","friendly_name":"George1 All batteries charged today"},"last_changed":"2023-01-16T11:40:19.288447+00:00","last_updated":"2023-01-16T11:40:19.288447+00:00","context":{"id":"01GPX62NERP23C48VCGHDXYFSP","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2023-01-16T11:40:19.288447+00:00","context":{"id":"01GPX62NERP23C48VCGHDXYFSP","parent_id":null,"user_id":null}}}
2023-01-16 19:40:24.008 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140686398393072] Sending {"id":282,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"sensor.george1_lifetime_total_all_batteries_charged","old_state":null,"new_state":{"entity_id":"sensor.george1_lifetime_total_all_batteries_charged","state":"0.0","attributes":{"state_class":"total_increasing","unit_of_measurement":"kWh","device_class":"energy","icon":"mdi:solar-power","friendly_name":"George1 Lifetime total all batteries charged"},"last_changed":"2023-01-16T11:40:19.304452+00:00","last_updated":"2023-01-16T11:40:19.304452+00:00","context":{"id":"01GPX62NF86PZ9MJX55B4ZVVW9","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2023-01-16T11:40:19.304452+00:00","context":{"id":"01GPX62NF86PZ9MJX55B4ZVVW9","parent_id":null,"user_id":null}}}
2023-01-16 19:40:24.008 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140686398393072] Sending {"id":282,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"sensor.george1_battery_1_charging_w","old_state":null,"new_state":{"entity_id":"sensor.george1_battery_1_charging_w","state":"0.0","attributes":{"unit_of_measurement":"W","device_class":"power","icon":"mdi:solar-power","friendly_name":"George1 Battery 1 charging W"},"last_changed":"2023-01-16T11:40:19.317815+00:00","last_updated":"2023-01-16T11:40:19.317815+00:00","context":{"id":"01GPX62NFNWBSHC4P9CXQV3M75","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2023-01-16T11:40:19.317815+00:00","context":{"id":"01GPX62NFNWBSHC4P9CXQV3M75","parent_id":null,"user_id":null}}}
2023-01-16 19:40:24.008 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140686398393072] Sending {"id":282,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"sensor.george1_lifetime_total_battery_1_charged","old_state":null,"new_state":{"entity_id":"sensor.george1_lifetime_total_battery_1_charged","state":"0.0","attributes":{"state_class":"total_increasing","unit_of_measurement":"kWh","device_class":"energy","icon":"mdi:solar-power","friendly_name":"George1 Lifetime total battery 1 charged"},"last_changed":"2023-01-16T11:40:19.326945+00:00","last_updated":"2023-01-16T11:40:19.326945+00:00","context":{"id":"01GPX62NFYB15P474SBEDWQWCS","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2023-01-16T11:40:19.326945+00:00","context":{"id":"01GPX62NFYB15P474SBEDWQWCS","parent_id":null,"user_id":null}}}
2023-01-16 19:40:24.008 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140686398393072] Sending {"id":282,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"sensor.george1_battery_2_charging_w","old_state":null,"new_state":{"entity_id":"sensor.george1_battery_2_charging_w","state":"0.0","attributes":{"unit_of_measurement":"W","device_class":"power","icon":"mdi:solar-power","friendly_name":"George1 Battery 2 charging W"},"last_changed":"2023-01-16T11:40:19.332277+00:00","last_updated":"2023-01-16T11:40:19.332277+00:00","context":{"id":"01GPX62NG4SV4W200FVQNXYYJ0","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2023-01-16T11:40:19.332277+00:00","context":{"id":"01GPX62NG4SV4W200FVQNXYYJ0","parent_id":null,"user_id":null}}}

I’m not sure if any of this provides any clues?

Bit of a summary below of some attempts to push this further with PeteRage, hoping someone else might be able to chip in some advice:

PeteRage: We may need some help. I’m also not sure why a single update, causes multiple websocket message. Each update has a unique ID, so this is update #92, it gets sent to multiple websockets.

Line 2458: 2023-01-14 15:53:06.866 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140297692397088] Sending {"id":92,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"sensor.gridimport_wh","old_state":null,"new_state":{"entity_id":"sensor.gridimport_wh","state":"0","attributes":{"state_class":"total","type":"Output","unit_of_measurement":"Wh","device_class":"energy","friendly_name":"GridImport.wh"},"last_changed":"2023-01-14T07:53:06.290557+00:00","last_updated":"2023-01-14T07:53:06.290557+00:00","context":{"id":"01GPQM95ZJ1K1SXGN0Z0P85YND","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2023-01-14T07:53:06.290557+00:00","context":{"id":"01GPQM95ZJ1K1SXGN0Z0P85YND","parent_id":null,"user_id":null}}}
	Line 2458: 2023-01-14 15:53:06.866 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140297692397088] Sending {"id":92,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"sensor.gridimport_wh","old_state":null,"new_state":{"entity_id":"sensor.gridimport_wh","state":"0","attributes":{"state_class":"total","type":"Output","unit_of_measurement":"Wh","device_class":"energy","friendly_name":"GridImport.wh"},"last_changed":"2023-01-14T07:53:06.290557+00:00","last_updated":"2023-01-14T07:53:06.290557+00:00","context":{"id":"01GPQM95ZJ1K1SXGN0Z0P85YND","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2023-01-14T07:53:06.290557+00:00","context":{"id":"01GPQM95ZJ1K1SXGN0Z0P85YND","parent_id":null,"user_id":null}}}
	Line 2571: 2023-01-14 15:53:07.456 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140297692397088] Sending {"id":92,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"sensor.gridimport_wh","old_state":{"entity_id":"sensor.gridimport_wh","state":"0","attributes":{"state_class":"total","type":"Output","unit_of_measurement":"Wh","device_class":"energy","friendly_name":"GridImport.wh"},"last_changed":"2023-01-14T07:53:06.290557+00:00","last_updated":"2023-01-14T07:53:06.290557+00:00","context":{"id":"01GPQM95ZJ1K1SXGN0Z0P85YND","parent_id":null,"user_id":null}},"new_state":{"entity_id":"sensor.gridimport_wh","state":"0","attributes":{"state_class":"total","last_reset":"2023-01-14T00:00:00","type":"Output","unit_of_measurement":"Wh","device_class":"energy","friendly_name":"GridImport.wh"},"last_changed":"2023-01-14T07:53:06.290557+00:00","last_updated":"2023-01-14T07:53:07.450042+00:00","context":{"id":"01GPQM973TAW2SB5E4K4ENE3CD","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2023-01-14T07:53:07.450042+00:00","context":{"id":"01GPQM973TAW2SB5E4K4ENE3CD","parent_id":null,"user_id":null}}}
	Line 2571: 2023-01-14 15:53:07.456 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140297692397088] Sending {"id":92,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"sensor.gridimport_wh","old_state":{"entity_id":"sensor.gridimport_wh","state":"0","attributes":{"state_class":"total","type":"Output","unit_of_measurement":"Wh","device_class":"energy","friendly_name":"GridImport.wh"},"last_changed":"2023-01-14T07:53:06.290557+00:00","last_updated":"2023-01-14T07:53:06.290557+00:00","context":{"id":"01GPQM95ZJ1K1SXGN0Z0P85YND","parent_id":null,"user_id":null}},"new_state":{"entity_id":"sensor.gridimport_wh","state":"0","attributes":{"state_class":"total","last_reset":"2023-01-14T00:00:00","type":"Output","unit_of_measurement":"Wh","device_class":"energy","friendly_name":"GridImport.wh"},"last_changed":"2023-01-14T07:53:06.290557+00:00","last_updated":"2023-01-14T07:53:07.450042+00:00","context":{"id":"01GPQM973TAW2SB5E4K4ENE3CD","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2023-01-14T07:53:07.450042+00:00","context":{"id":"01GPQM973TAW2SB5E4K4ENE3CD","parent_id":null,"user_id":null}}}
	Line 2571: 2023-01-14 15:53:07.456 DEBUG (MainThread) [homeassistant.compo

PeteRage: What we know is that the websocket is overflowing because more data is being produced than can be consumed. There are two reasons why this could be happening:

a) The system is resource constrained - CPU, Memory or Network.
b) There is a badly behaving component that is stalling.

I’m running HA in Docker on a Synology DS920+ with 20GB memory, DSM 7.1.1-42962 Update 1. PeteRage believes the system is not resource bound. There is plenty of CPU and memory available and that my Docker settings look correct, so the containers should be able to use all of the CPU and memory.

Docker settings:

homeassistant:
    image: ghcr.io/home-assistant/home-assistant:stable
    container_name: homeassistant
    profiles: ["homeassistant"]
    #devices:    <---- removed in discussion with PeteRage as not necessary: "It is possible, that multiple mapping of that device in Docker causes some unforeseen slow down."
    # - ${DEVICE_ZIGBEE}
    # - ${DEVICE_ZWAVE}
    volumes:
      - ${DOCKER_ROOT}/homeassistant/config:/config
      - ${DOCKER_ROOT}/influxdb:/influxdb_data
      - /usr/syno/etc/certificate/system/default:/certificate
      - /etc/localtime:/etc/localtime:ro
    privileged: true
    network_mode: host
    depends_on:
      - mariadb
      - influxdb

I recently simplified the Docker setup and moved HA to the preferred host network_mode so this seemed promising as a probable cause.

  • I removed those lines and recreated the container (also checked no other containers had those mapped)
  • It looked promising on first restart (HA log: There are no new issues!)
  • But:
    • Z-Wave performance on two devices as a quick check seemed unchanged
    • I restarted HA with the logger for the web socket at debug and the websocket error reared its ugly head again

I use a Zooz Z-Wave stick.

I still for the life of me can’t work out:

  1. Is the web socket error a) a red herring, b) the root cause of my Z-Wave woes, or c) a result of my Z-Wave woes?
  2. What the web socket error is: what integration is causing it and why.

Did u ever get this resolved?

Short answer no. I rolled back to 2022.11 last night and haven’t seen the issue on startup and in the 24hrs since.

So I wrote an issue, literally an hour ago, and that is apparently a duplicate meaning there are others who share my plight. We may suffer together, or hopefully find resolution:

I was reading this as your post came in so haven’t fully digested it, but I’m going to look at upgrading back to the latest version and disabling the Sun integration…

Disabling the Sun integration does not solve the issue for me.