controllerx icon indicating copy to clipboard operation
controllerx copied to clipboard

[BUG] `supported_features` could not be read

Open marthubner opened this issue 5 months ago • 0 comments

Bug report

Description

Only on and off actions currently work. Any other action (e.g., brightness_move_up, brightness_move_down, etc.) fails across all of my light devices. When these actions are triggered, ControllerX raises the following error:

ValueError: supported_features could not be read from light.<entity_name>. Entity might not be available.

This issue is not limited to the entity shown in the logs — it affects all of my devices (IKEA, Philips, Tuya, etc.) across all apps.

Additional information

  • Devices involved:

    • Example in log: IKEA E2002 as controller, two IKEA LED1937T5 grouped as light
    • Same behavior across all my devices and apps (IKEA, Philips, Tuya, grouped and non-grouped lights)
  • Integration: mqtt

  • AppDaemon version: 0.17.8

  • ControllerX version: 5.0.0

  • HACS version: 2.0.5

  • Home Assistant Core version: 2025.8.3

AppDaemon app configuration

test:
  module: controllerx
  class: E2002LightController
  controller: zigbee/0x08b95ffffeda6578/action
  integration: mqtt
  light:
    name: light.group_lampicka

Logs

2025-08-23 23:25:29.065230 INFO test: 
🤖 Service: light.turn_off
  - entity_id: light.group_lampicka
2025-08-23 23:25:30.061449 INFO test: 🎮 Button event triggered: `on`
2025-08-23 23:25:30.071831 INFO test: 🏃 Running `Predefined (on)` now
2025-08-23 23:25:30.081594 INFO test: 
🤖 Service: light.turn_on
  - entity_id: light.group_lampicka
2025-08-23 23:25:36.317909 INFO test: 🎮 Button event triggered: `brightness_move_down`
2025-08-23 23:25:36.325102 INFO test: 🏃 Running `Predefined (hold_brightness_down)` now
2025-08-23 23:25:36.337174 ERROR test: =====  event_callback() in test  ==========================================
2025-08-23 23:25:36.337675 ERROR test: EventCallbackFail: Scheduled callback failed for app 'test'
2025-08-23 23:25:36.338114 ERROR test:   args: ('MQTT_MESSAGE', {'topic': 'zigbee/0x08b95ffffeda6578/action', 'wildcard': 'zigbee/#', 'payload': 'brightness_move_down'}, {'topic': 'zigbee/0x08b95ffffeda6578/action', '__thread_id': 'MainThread'})
2025-08-23 23:25:36.339280 ERROR test:   ValueError: `supported_features` could not be read from `light.group_lampicka`. Entity might not be available.
2025-08-23 23:25:36.341833 ERROR test:     File "/usr/lib/python3.12/site-packages/appdaemon/threads.py", line 986, in safe_callback
2025-08-23 23:25:36.342334 ERROR test:       await funcref()
2025-08-23 23:25:36.342659 ERROR test:     File "/config/apps/controllerx/cx_core/integration/mqtt.py", line 43, in event_callback
2025-08-23 23:25:36.343009 ERROR test:       await self.controller.handle_action(action_key)
2025-08-23 23:25:36.343371 ERROR test:     File "/config/apps/controllerx/cx_core/controller.py", line 404, in handle_action
2025-08-23 23:25:36.343698 ERROR test:       await self.call_action(action_key, extra=extra)
2025-08-23 23:25:36.344070 ERROR test:     File "/config/apps/controllerx/cx_core/controller.py", line 478, in call_action
2025-08-23 23:25:36.344388 ERROR test:       await self.action_timer_callback({"action_key": action_key, "extra": extra})
2025-08-23 23:25:36.344700 ERROR test:     File "/config/apps/controllerx/cx_core/controller.py", line 516, in action_timer_callback
2025-08-23 23:25:36.345139 ERROR test:       await task
2025-08-23 23:25:36.345423 ERROR test:     File "/config/apps/controllerx/cx_core/controller.py", line 532, in call_action_types
2025-08-23 23:25:36.345672 ERROR test:       await action_type.run(extra=extra)
2025-08-23 23:25:36.345913 ERROR test:     File "/config/apps/controllerx/cx_core/action_type/predefined_action_type.py", line 118, in run
2025-08-23 23:25:36.346148 ERROR test:       await action(*positional, **action_args)
2025-08-23 23:25:36.346382 ERROR test:     File "/config/apps/controllerx/cx_core/controller.py", line 60, in _action_impl
2025-08-23 23:25:36.346609 ERROR test:       continue_call = await controller.before_action(method.__name__, *args, **kwargs)
2025-08-23 23:25:36.346837 ERROR test:                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-08-23 23:25:36.347064 ERROR test:     File "/config/apps/controllerx/cx_core/type/light_controller.py", line 799, in before_action
2025-08-23 23:25:36.347290 ERROR test:       self.remove_transition_check = await self.check_remove_transition(
2025-08-23 23:25:36.347512 ERROR test:                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-08-23 23:25:36.347744 ERROR test:     File "/config/apps/controllerx/cx_core/type/light_controller.py", line 438, in check_remove_transition
2025-08-23 23:25:36.347966 ERROR test:       or await self.feature_support.not_supported(LightSupport.TRANSITION)
2025-08-23 23:25:36.348187 ERROR test:          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-08-23 23:25:36.348407 ERROR test:     File "/config/apps/controllerx/cx_core/feature_support/__init__.py", line 40, in not_supported
2025-08-23 23:25:36.348690 ERROR test:       return not await self.is_supported(feature)
2025-08-23 23:25:36.348921 ERROR test:                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-08-23 23:25:36.349147 ERROR test:     File "/config/apps/controllerx/cx_core/feature_support/__init__.py", line 37, in is_supported
2025-08-23 23:25:36.349369 ERROR test:       return feature & await self.supported_features != 0
2025-08-23 23:25:36.349590 ERROR test:                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-08-23 23:25:36.349814 ERROR test:     File "/config/apps/controllerx/cx_core/feature_support/__init__.py", line 31, in supported_features
2025-08-23 23:25:36.350036 ERROR test:       raise ValueError(
2025-08-23 23:25:36.350268 ERROR test: ===========================================================================
2025-08-23 23:25:37.110892 INFO test: 🎮 Button event triggered: `brightness_stop`
2025-08-23 23:25:37.121473 INFO test: 🏃 Running `Predefined (release)` now

Additional Context

Everything was working fine previously. The issue started occurring about 1–2 months ago, without any changes to my ControllerX configuration.

marthubner avatar Aug 23 '25 22:08 marthubner