h4de5 / home-assistant-toshiba_ac

Toshiba AC integration into home-assistant.io
GNU General Public License v3.0
113 stars 17 forks source link

State does not update unless integration is restarted #186

Closed laurensk closed 3 weeks ago

laurensk commented 4 weeks ago

When I change the state on any of my ACs, the AC does actually turn on or off, but the state change is not reflected in Home Assistant unless the integration is restarted.

After changing a state, I get the following log messages but I cannot say if they are related to this problem or expected:

2024-06-01 18:07:15.890 WARNING (ThreadPoolExecutor-7_0) [azure.iot.device.common.handle_exceptions] Exception caught in background thread.  Unable to handle.

2024-06-01 18:07:15.891 WARNING (ThreadPoolExecutor-7_0) [azure.iot.device.common.handle_exceptions] ['azure.iot.device.iothub.sync_handler_manager.HandlerManagerException: HANDLER (CLIENT_EVENT): Error during invocation\n']

2024-06-01 18:07:15.984 WARNING (ThreadPoolExecutor-7_0) [azure.iot.device.common.handle_exceptions] Exception caught in background thread.  Unable to handle.

2024-06-01 18:07:15.986 WARNING (ThreadPoolExecutor-7_0) [azure.iot.device.common.handle_exceptions] ['azure.iot.device.iothub.sync_handler_manager.HandlerManagerException: HANDLER (CLIENT_EVENT): Error during invocation\n']

I'm on the newest Home Assistant and integration version.

PatrickTaibel commented 4 weeks ago

I guess that this exactly the issue I just reported in the Python library: https://github.com/KaSroka/Toshiba-AC-control/issues/50. @laurensk If you know how to patch a Python library for your Homeassistant installation you can try to apply the workaround I mention in the issue.

laurensk commented 3 weeks ago

Until the fix is merged in the upstream library and implemented here, this fixed fork can be used: https://github.com/laurensk/home-assistant-toshiba_ac