Hi!
I have similiar problems but with Sonos. I have many speakers and it sometimes times out during a call to the snapshot
or group_all
service which results in missed audio notifications.
Is it possible to increase the time-out?
It also seams that the Sonos time out sometimes causes side-effects on other integrations that also starts timing out when called from an AppDaemon app. Perhaps it is a queue or something that is full/to busy (I don’t know how the AppDaemon hass integration is implemented but I here assume its some form of queue, directly on indirectly e g socket i/o queue)?
Heres an example of a side-effect when Sonos has just timed out, that causes a hue light to also time out afterwards (which I don’t have found to time-out on its own):
2020-08-06 08:00:10.445310 WARNING bedroom_2_light_logic1: Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/appdaemon/threading.py", line 777, in worker
funcref(entity, attr, old_state, new_state,
File "/config/appdaemon/apps/logic/light.py", line 123, in _state_changed
self._table._suggest_evaluate(self)
File "/config/appdaemon/apps/logic/light.py", line 52, in _suggest_evaluate
self.reevaluate()
File "/config/appdaemon/apps/logic/light.py", line 62, in reevaluate
self._callback(result, old)
File "/config/appdaemon/apps/logic/light.py", line 270, in _condition_changed
self._apply()
File "/config/appdaemon/apps/logic/light.py", line 277, in _apply
self._light_apply(light)
File "/config/appdaemon/apps/logic/light.py", line 306, in _light_apply
self.turn_on(light, brightness=self._target_brightness_calculated)
File "/usr/lib/python3.8/site-packages/appdaemon/plugins/hass/hassapi.py", line 29, in func_wrapper
return func(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/appdaemon/utils.py", line 191, in inner_sync_wrapper
f = run_coroutine_threadsafe(self, coro(self, *args, **kwargs))
File "/usr/lib/python3.8/site-packages/appdaemon/utils.py", line 285, in run_coroutine_threadsafe
result = future.result(self.AD.internal_function_timeout)
File "/usr/lib/python3.8/concurrent/futures/_base.py", line 441, in result
raise TimeoutError()
concurrent.futures._base.TimeoutError