ekutner / home-connect-hass

Alternative (and improved) Home Connect integration for Home Assistant
MIT License
549 stars 54 forks source link

Operation state changes to unavailable #193

Closed slecram closed 1 year ago

slecram commented 1 year ago

Describe the bug

image

The picture shows the operation state entity of my siemens dryer. The dryer finished yesterday evening at 17:37. You can see, that the state changes three times at 02:59, 04:03 and 04:33 from "BSH.Common.EnumType.OperationState.Finished" to "unavailable"

image

This integration works fine for a long time and i didn't update the dryer firmware. So I think the problem comes with an update of HA or this integration.

The problem is, that the operation state entity is the trigger for an alexa speaker notity automation and my wife was not in use, that alexa says "info dryer is finished" three times in the middle of the night where we are sleeping :D

The event-log of my fritz-box shows no problems with the dryer wifi-connection. The dryer currently in Standby but still connected with my wifi

Update Same problem this morning, till now 3 times (09:10, 09:13, 09:17). I've uploaded an debug-logfile image

Debug log

home-assistant_home_connect_alt_2023-03-20T08-16-55.672Z.log

ekutner commented 1 year ago

Your appliance is repeatedly connecting and disconnecting from the HC service. See all the "CONNECTION_CHANGED" events in the log. This is most likely a wifi issue. If you are sure it's not you can try to remove it from HC and then reconnect it. Since the integration is responding to events it is receiving as expected, there isn't really anything I can do with it on my end.

slecram commented 1 year ago

I checked the event-log of my fritzbox twice. I could see, that my dryer connects to the wifi, but I dont't see a wifi disconnect or something like that. I'm wondering why everything worked fine for weeks without any problems an no changes in my wifi infrastructure. My avm repeater 2400 is about 6 meter away from the dryer

ekutner commented 1 year ago

I can say why it stopped working but the bottom line is that the HC API is reporting a DISCONNECT event followedby a CONNECT event. You can see in the log that these events are coming directly from HC and have nothing to do with the HA version or with the integration. WiFi issues can have many forms, especially in a complex network with repeaters, but if you believe it isn't that then my only other suggestion is to try to disconnect the appliance from the HC service and then reconnect it.

slecram commented 1 year ago

Hi, maybe your are right! The event-log of my repeater shows wifi-disconnections of my dryer I will power-cycle all devices an try to reproduce the issue.

image

slecram commented 1 year ago

It seems to be truely a wifi-problem. No integration issue -> closed I found a workaround thas works for me:

image