Hi,
Since upgrading to v3.4.0, my Symfonski media controller app is failing. Reverting to 3.3.0 fixed it.
Not sure whatās causing the issue.
App:
study_media_controller:
module: controllerx
class: CallServiceController
controller: 14:b4:57:ff:fe:f6:81:e3
integration: zha
mapping:
"move_1_195":
- service: media_player.volume_down
data:
entity_id: media_player.study_display
"move_0_195":
- service: media_player.volume_up
data:
entity_id: media_player.study_display
"toggle":
- service: script.turn_on
data:
entity_id: script.1594023958628
- service: switch.turn_on
data:
entity_id: switch.plug_158d000163d3fe
"step_0_1_0":
- service: light.toggle
data:
entity_id: light.study
brightness_pct: 100
Error:
2020-08-18 13:12:27.276145 WARNING study_media_controller: Unexpected error in worker for App study_media_controller:
2020-08-18 13:12:27.276974 WARNING study_media_controller: Worker Ags: {'id': '2b216ac40529454d8ad3db6b4b29c444', 'name': 'study_media_controller', 'objectid': 'f54a83fb76184340ab789400bd6a8d04', 'type': 'event', 'event': 'zha_event', 'function': <bound method ZHAIntegration.callback of <cx_core.integration.zha.ZHAIntegration object at 0x7f838c301e80>>, 'data': {'device_ieee': '14:b4:57:ff:fe:f6:81:e3', 'unique_id': '14:b4:57:ff:fe:f6:81:e3:1:0x0008', 'endpoint_id': 1, 'cluster_id': 8, 'command': 'move', 'args': [0, 195]}, 'pin_app': True, 'pin_thread': 3, 'kwargs': {'device_ieee': '14:b4:57:ff:fe:f6:81:e3', '__thread_id': 'MainThread'}}
2020-08-18 13:12:27.277756 WARNING study_media_controller: ------------------------------------------------------------
2020-08-18 13:12:27.279289 WARNING study_media_controller: Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/appdaemon/threading.py", line 725, in async_worker
await funcref(args["event"], data, args["kwargs"])
File "/config/appdaemon/apps/controllerx/cx_core/integration/zha.py", line 39, in callback
await self.controller.handle_action(action)
File "/config/appdaemon/apps/controllerx/cx_core/controller.py", line 144, in handle_action
def get_list(self, entities: Union[Sequence[str], str]) -> List[str]:
File "/config/appdaemon/apps/controllerx/cx_core/controller.py", line 162, in call_action
f" - {attribute}: {value}", level="INFO", ascii_encode=False,
File "/config/appdaemon/apps/controllerx/cx_core/controller.py", line 173, in action_timer_callback
f"š® Button event triggered: `{action_key}`",
File "/config/appdaemon/apps/controllerx/cx_core/controller.py", line 234, in _action_impl
if isinstance(action, str):
File "/config/appdaemon/apps/controllerx/cx_core/custom_controller.py", line 76, in call_services
File "/config/appdaemon/apps/controllerx/cx_core/controller.py", line 120, in call_service
f"Type {type(integration)} is not supported for `integration` attribute"
File "/usr/lib/python3.8/site-packages/appdaemon/adapi.py", line 143, in log
msg = self._sub_stack(msg)
File "/usr/lib/python3.8/site-packages/appdaemon/adapi.py", line 56, in _sub_stack
stack = inspect.stack()
File "/usr/lib/python3.8/inspect.py", line 1514, in stack
return getouterframes(sys._getframe(1), context)
File "/usr/lib/python3.8/inspect.py", line 1491, in getouterframes
frameinfo = (frame,) + getframeinfo(frame, context)
File "/usr/lib/python3.8/inspect.py", line 1465, in getframeinfo
lines, lnum = findsource(frame)
File "/usr/lib/python3.8/inspect.py", line 840, in findsource
if pat.match(lines[lnum]): break
IndexError: list index out of range
2020-08-18 13:12:27.279879 WARNING study_media_controller: ------------------------------------------------------------
Cheers.