xaviml/controllerx

[BUG] Callbacks not being fired by ZHA events (E2002)

Closed this issue ยท 8 comments

Bug report

Description

Registered ZHA events cannot trigger callbacks of configured ControllerX applications:
Screenshot 2023-03-31 at 10 06 41 PM

However, remote button events can be captured over device logs or developer tools. How may I access more detailed debugging logs? (e.g. are events completely ignored, or they are not parsed properly)

Additional information

  • Devices involved:
    • Model: IKEA 2002 as Light Controller
  • Integration: zha
  • AppDaemon version: v0.11.0
  • ControllerX version: v4.25.0
  • HACS version (if installed from there): v1.31.0
  • Home Assistant Core version: v2023.3.6

AppDaemon app configuration

msbedroom_light_controller:
  module: controllerx
  class: E2002LightController
  integration: zha
  controller: 04:0d:84:ff:fe:96:ab:73
  light: light.master_bedroom_lights

Logs

/* AppDaemon Logs */
-----------------------------------------------------------
 Add-on: AppDaemon
 Python Apps and Dashboard using AppDaemon 4.x for Home Assistant
-----------------------------------------------------------
 Add-on version: 0.11.0
...
2023-03-31 21:09:12.292343 INFO AppDaemon: Initializing app msbedroom_light_controller using class E2002LightController from module controllerx
2023-03-31 21:09:12.454589 INFO msbedroom_light_controller: ๐ŸŽฎ ControllerX v4.25.0
2023-03-31 21:09:12.532956 INFO AppDaemon: App initialization complete
2023-03-31 21:09:13.851191 INFO AppDaemon: New client Admin Client connected
2023-03-31 21:09:47.713579 INFO AppDaemon: Client disconnection from Admin Client
--End of File--

No relevant logs are available from HASS.

Additional Context

Captured events:

event_type: zha_event
data:
  device_ieee: 04:0d:84:ff:fe:96:ab:73
  unique_id: 04:0d:84:ff:fe:96:ab:73:1:0x0008
  device_id: bb06a0902e663521d7d93dfa6b46dc4b
  endpoint_id: 1
  cluster_id: 8
  command: stop_with_on_off
  args: []
  params: {}
origin: LOCAL
time_fired: "2023-04-01T01:44:46.312661+00:00"
context:
  id: 01GWX7T2Z8N4C2ZHE4HS8R50DS
  parent_id: null
  user_id: null

Hi @hftsai256 ,

This seems odd, indeed. Could you please add log_level: DEBUG to the configuration? Same level as module or class.

Could I also see the logs when initializing AppDaemon?

Thanks,
Xavi M.

Hi @xaviml ,
Thanks for looking into this and sure. Below is the full log with DEBUG flag enabled during initialization phase:

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service base-addon-banner: starting
-----------------------------------------------------------
 Add-on: AppDaemon
 Python Apps and Dashboard using AppDaemon 4.x for Home Assistant
-----------------------------------------------------------
 Add-on version: 0.11.0
 You are running the latest version of this add-on.
 System: Home Assistant OS 9.5  (aarch64 / yellow)
 Home Assistant Core: 2023.3.6
 Home Assistant Supervisor: 2023.03.3
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service init-appdaemon: starting
s6-rc: info: service init-appdaemon successfully started
s6-rc: info: service appdaemon: starting
s6-rc: info: service appdaemon successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
[08:58:53] INFO: Starting AppDaemon...
2023-04-01 07:58:59.950335 INFO AppDaemon: AppDaemon Version 4.2.1 starting
2023-04-01 07:58:59.950697 INFO AppDaemon: Python version is 3.10.9
2023-04-01 07:58:59.950952 INFO AppDaemon: Configuration read from: /config/appdaemon/appdaemon.yaml
2023-04-01 07:58:59.951170 INFO AppDaemon: Added log: AppDaemon
2023-04-01 07:58:59.951445 INFO AppDaemon: Added log: Error
2023-04-01 07:58:59.953362 INFO AppDaemon: Added log: Access
2023-04-01 07:58:59.954103 INFO AppDaemon: Added log: Diag
2023-04-01 07:59:00.213733 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2023-04-01 07:59:00.549146 INFO HASS: HASS Plugin Initializing
2023-04-01 07:59:00.549506 INFO HASS: HASS Plugin initialization complete
2023-04-01 07:59:00.550137 INFO AppDaemon: Loading Plugin MQTT using class MqttPlugin from module mqttplugin
2023-04-01 07:59:00.689369 INFO MQTT: MQTT Plugin Initializing
2023-04-01 07:59:00.689764 INFO MQTT: Using 'mqtt-client/status' as Will Topic
2023-04-01 07:59:00.690091 INFO MQTT: Using 'mqtt-client/status' as Birth Topic
2023-04-01 07:59:00.690543 INFO MQTT: Using appdaemon_mqtt_client as Client ID
2023-04-01 07:59:00.691760 INFO AppDaemon: Initializing HTTP
2023-04-01 07:59:00.692513 INFO AppDaemon: Using 'ws' for event stream
2023-04-01 07:59:00.699490 INFO AppDaemon: API is disabled
2023-04-01 07:59:00.700010 INFO AppDaemon: Starting Admin Interface
2023-04-01 07:59:00.700673 INFO AppDaemon: Dashboards Disabled
2023-04-01 07:59:00.724334 INFO HASS: Connected to Home Assistant 2023.3.6
2023-04-01 07:59:00.740538 INFO MQTT: Connected to Broker at URL core-mosquitto:1883
2023-04-01 07:59:00.752507 INFO AppDaemon: Got initial state from namespace mqtt
2023-04-01 07:59:00.754145 INFO MQTT: MQTT Plugin initialization complete
2023-04-01 07:59:00.770699 INFO AppDaemon: App 'msbedroom_light_controller' added
2023-04-01 07:59:00.772881 INFO AppDaemon: Found 1 total apps
2023-04-01 07:59:00.774451 INFO AppDaemon: Starting Apps with 1 workers and 1 pins
2023-04-01 07:59:00.776323 INFO AppDaemon: Running on port 5050
2023-04-01 07:59:00.814752 INFO HASS: Evaluating startup conditions
2023-04-01 07:59:00.827284 INFO HASS: Startup condition met: hass state=RUNNING
2023-04-01 07:59:00.827943 INFO HASS: All startup conditions met
2023-04-01 07:59:00.863025 INFO AppDaemon: Got initial state from namespace hass
2023-04-01 07:59:02.790916 INFO AppDaemon: Scheduler running in realtime
2023-04-01 07:59:02.799603 INFO AppDaemon: Adding /config/appdaemon/apps to module import path
2023-04-01 07:59:02.800274 INFO AppDaemon: Adding /config/appdaemon/apps/controllerx to module import path
2023-04-01 07:59:02.800790 INFO AppDaemon: Adding /config/appdaemon/apps/controllerx/cx_core to module import path
2023-04-01 07:59:02.801269 INFO AppDaemon: Adding /config/appdaemon/apps/controllerx/cx_core/type to module import path
2023-04-01 07:59:02.801742 INFO AppDaemon: Adding /config/appdaemon/apps/controllerx/cx_core/feature_support to module import path
2023-04-01 07:59:02.802195 INFO AppDaemon: Adding /config/appdaemon/apps/controllerx/cx_core/action_type to module import path
2023-04-01 07:59:02.802714 INFO AppDaemon: Adding /config/appdaemon/apps/controllerx/cx_core/integration to module import path
2023-04-01 07:59:02.803235 INFO AppDaemon: Adding /config/appdaemon/apps/controllerx/cx_core/stepper to module import path
2023-04-01 07:59:02.803891 INFO AppDaemon: Adding /config/appdaemon/apps/controllerx/cx_devices to module import path
2023-04-01 07:59:02.893486 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_const.py - ignoring
2023-04-01 07:59:02.896020 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/controllerx/controllerx.py
2023-04-01 07:59:03.230198 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_helper.py - ignoring
2023-04-01 07:59:03.232376 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_version.py - ignoring
2023-04-01 07:59:03.234341 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/color_helper.py - ignoring
2023-04-01 07:59:03.236554 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/__init__.py - ignoring
2023-04-01 07:59:03.238825 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/release_hold_controller.py - ignoring
2023-04-01 07:59:03.241404 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/type_controller.py - ignoring
2023-04-01 07:59:03.243755 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/controller.py - ignoring
2023-04-01 07:59:03.246325 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/type/cover_controller.py - ignoring
2023-04-01 07:59:03.250637 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/type/__init__.py - ignoring
2023-04-01 07:59:03.253008 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/type/media_player_controller.py - ignoring
2023-04-01 07:59:03.255303 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/type/z2m_light_controller.py - ignoring
2023-04-01 07:59:03.257589 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/type/switch_controller.py - ignoring
2023-04-01 07:59:03.259790 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/type/light_controller.py - ignoring
2023-04-01 07:59:03.261933 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/feature_support/__init__.py - ignoring
2023-04-01 07:59:03.264320 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/feature_support/media_player.py - ignoring
2023-04-01 07:59:03.266543 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/feature_support/light.py - ignoring
2023-04-01 07:59:03.269074 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/feature_support/cover.py - ignoring
2023-04-01 07:59:03.271477 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/action_type/__init__.py - ignoring
2023-04-01 07:59:03.273982 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/action_type/base.py - ignoring
2023-04-01 07:59:03.276458 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/action_type/scene_action_type.py - ignoring
2023-04-01 07:59:03.278892 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/action_type/delay_action_type.py - ignoring
2023-04-01 07:59:03.281382 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/action_type/predefined_action_type.py - ignoring
2023-04-01 07:59:03.285258 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/action_type/call_service_action_type.py - ignoring
2023-04-01 07:59:03.290641 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/integration/homematic.py - ignoring
2023-04-01 07:59:03.293613 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/integration/__init__.py - ignoring
2023-04-01 07:59:03.296354 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/integration/tasmota.py - ignoring
2023-04-01 07:59:03.298516 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/integration/shellyforhass.py - ignoring
2023-04-01 07:59:03.300740 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/integration/zha.py - ignoring
2023-04-01 07:59:03.302741 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/integration/shelly.py - ignoring
2023-04-01 07:59:03.304986 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/integration/deconz.py - ignoring
2023-04-01 07:59:03.307019 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/integration/mqtt.py - ignoring
2023-04-01 07:59:03.309277 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/integration/event.py - ignoring
2023-04-01 07:59:03.311308 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/integration/z2m.py - ignoring
2023-04-01 07:59:03.313533 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/integration/lutron_caseta.py - ignoring
2023-04-01 07:59:03.315765 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/integration/state.py - ignoring
2023-04-01 07:59:03.317962 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/stepper/__init__.py - ignoring
2023-04-01 07:59:03.320024 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/stepper/index_loop_stepper.py - ignoring
2023-04-01 07:59:03.322170 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/stepper/loop_stepper.py - ignoring
2023-04-01 07:59:03.324243 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/stepper/bounce_stepper.py - ignoring
2023-04-01 07:59:03.326433 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/stepper/stop_stepper.py - ignoring
2023-04-01 07:59:03.328502 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/homematic.py - ignoring
2023-04-01 07:59:03.330641 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/__init__.py - ignoring
2023-04-01 07:59:03.332682 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/aurora.py - ignoring
2023-04-01 07:59:03.334821 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/tasmota.py - ignoring
2023-04-01 07:59:03.336890 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/linkind.py - ignoring
2023-04-01 07:59:03.339124 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/smartthings.py - ignoring
2023-04-01 07:59:03.341156 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/osram.py - ignoring
2023-04-01 07:59:03.343235 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/rgb_genie.py - ignoring
2023-04-01 07:59:03.345158 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/adeo.py - ignoring
2023-04-01 07:59:03.347222 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/ikea.py - ignoring
2023-04-01 07:59:03.349503 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/lutron.py - ignoring
2023-04-01 07:59:03.351765 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/smartkontakten.py - ignoring
2023-04-01 07:59:03.353955 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/aqara.py - ignoring
2023-04-01 07:59:03.356281 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/shelly.py - ignoring
2023-04-01 07:59:03.358587 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/terncy.py - ignoring
2023-04-01 07:59:03.361377 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/sonoff.py - ignoring
2023-04-01 07:59:03.363699 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/philips.py - ignoring
2023-04-01 07:59:03.366671 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/muller_licht.py - ignoring
2023-04-01 07:59:03.369193 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/robb.py - ignoring
2023-04-01 07:59:03.372677 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/tuya.py - ignoring
2023-04-01 07:59:03.375198 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/sengled.py - ignoring
2023-04-01 07:59:03.378532 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/prolight.py - ignoring
2023-04-01 07:59:03.380780 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/livarno.py - ignoring
2023-04-01 07:59:03.383637 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/trust.py - ignoring
2023-04-01 07:59:03.386071 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/legrand.py - ignoring
2023-04-01 07:59:03.388538 INFO AppDaemon: Initializing app msbedroom_light_controller using class E2002LightController from module controllerx
2023-04-01 07:59:03.547462 INFO msbedroom_light_controller: ๐ŸŽฎ ControllerX v4.25.0
2023-04-01 07:59:03.551544 DEBUG msbedroom_light_controller: `light.master_bedroom_lights` is not recognized as a template
2023-04-01 07:59:03.553214 DEBUG msbedroom_light_controller: get state: light.master_bedroom_lights, {} from msbedroom_light_controller
2023-04-01 07:59:03.558445 DEBUG msbedroom_light_controller: Entities from `light.master_bedroom_lights` (entity_id attribute): `None`
2023-04-01 07:59:03.561695 DEBUG msbedroom_light_controller: `light.master_bedroom_lights` is not recognized as a template
2023-04-01 07:59:03.586547 DEBUG msbedroom_light_controller: `on` is not recognized as a template
2023-04-01 07:59:03.590950 DEBUG msbedroom_light_controller: `off` is not recognized as a template
2023-04-01 07:59:03.595834 DEBUG msbedroom_light_controller: `click_color_down` is not recognized as a template
2023-04-01 07:59:03.600693 DEBUG msbedroom_light_controller: `click_color_up` is not recognized as a template
2023-04-01 07:59:03.605574 DEBUG msbedroom_light_controller: `hold_brightness_up` is not recognized as a template
2023-04-01 07:59:03.609851 DEBUG msbedroom_light_controller: `hold_brightness_down` is not recognized as a template
2023-04-01 07:59:03.614509 DEBUG msbedroom_light_controller: `hold_color_down` is not recognized as a template
2023-04-01 07:59:03.624056 DEBUG msbedroom_light_controller: `hold_color_up` is not recognized as a template
2023-04-01 07:59:03.628576 DEBUG msbedroom_light_controller: `release` is not recognized as a template
2023-04-01 07:59:03.637290 INFO msbedroom_light_controller: Previous message repeated 2 times
2023-04-01 07:59:03.638123 DEBUG msbedroom_light_controller: Calling listen_event for msbedroom_light_controller
2023-04-01 07:59:03.640435 INFO AppDaemon: App initialization complete

Hi @hftsai256 ,

I see you are working with a light group. How did you ceeate this light group? Could you try to use it with a notmal light entity? Just to discard where the error is?

Thanks,
Xavi M.

You can also read about entity groups https://controllerx.netlify.app/controllerx/advanced/entity-groups/. It seems from logs that entity_id is null for you group light.

Normal light entities behave the same as the group light. The following logs are captured after several ZHA events from the remote controller were fired:

2023-04-01 12:24:48.209347 INFO AppDaemon: Initializing app msbedroom_light_controller using class E2002LightController from module controllerx
2023-04-01 12:24:48.370185 INFO msbedroom_light_controller: ๐ŸŽฎ ControllerX v4.25.0
2023-04-01 12:24:48.374460 DEBUG msbedroom_light_controller: `light.obk177FF51C` is not recognized as a template
2023-04-01 12:24:48.376593 DEBUG msbedroom_light_controller: get state: light.obk177FF51C, {} from msbedroom_light_controller
2023-04-01 12:24:48.382093 DEBUG msbedroom_light_controller: Entities from `light.obk177FF51C` (entity_id attribute): `None`
2023-04-01 12:24:48.385810 DEBUG msbedroom_light_controller: `light.obk177FF51C` is not recognized as a template
2023-04-01 12:24:48.410714 DEBUG msbedroom_light_controller: `on` is not recognized as a template
2023-04-01 12:24:48.415181 DEBUG msbedroom_light_controller: `off` is not recognized as a template
2023-04-01 12:24:48.419477 DEBUG msbedroom_light_controller: `click_color_down` is not recognized as a template
2023-04-01 12:24:48.423911 DEBUG msbedroom_light_controller: `click_color_up` is not recognized as a template
2023-04-01 12:24:48.428561 DEBUG msbedroom_light_controller: `hold_brightness_up` is not recognized as a template
2023-04-01 12:24:48.432935 DEBUG msbedroom_light_controller: `hold_brightness_down` is not recognized as a template
2023-04-01 12:24:48.438137 DEBUG msbedroom_light_controller: `hold_color_down` is not recognized as a template
2023-04-01 12:24:48.442654 DEBUG msbedroom_light_controller: `hold_color_up` is not recognized as a template
2023-04-01 12:24:48.452437 DEBUG msbedroom_light_controller: `release` is not recognized as a template
2023-04-01 12:24:48.461478 INFO msbedroom_light_controller: Previous message repeated 2 times
2023-04-01 12:24:48.461988 DEBUG msbedroom_light_controller: Calling listen_event for msbedroom_light_controller
2023-04-01 12:24:48.464500 INFO AppDaemon: App initialization complete
2023-04-01 12:24:49.856090 INFO AppDaemon: New client Admin Client connected

And there are two entities at AppDaemon's end:

-- app.msbedroom_light_controller [idle] --
 {
    "totalcallbacks": 0,
    "instancecallbacks": 0,
    "args": {
        "module": "controllerx",
        "class": "E2002LightController",
        "integration": "zha",
        "controller": "04:0d:84:ff:fe:96:ab:73",
        "light": "light.obk177FF51C",
        "log_level": "DEBUG"
    },
    "yaml_path": "/config/appdaemon/apps/apps.yaml",
    "_silent": true,
    "module_path": "/config/appdaemon/apps/controllerx/controllerx.py"
} 
-- event_callback.35d059e99c8d444c8deef21e0ad0e3ab [active] --
{
    "app": "msbedroom_light_controller",
    "event_name": "zha_event",
    "function": "event_callback",
    "pinned": true,
    "pinned_thread": 0,
    "fired": 0,
    "executed": 0,
    "kwargs": {
        "device_ieee": "04:0d:84:ff:fe:96:ab:73"
    }
} 

I think the key takeaway is that AppDaemon cannot get entities from home assistant... maybe?

I wrote a small AppDaemon app and figured out that it was namespace confusion: I was assigning namespace to hass but HASS plugin in AppDaemon is looking into default. It might be better to have a separate namespace for HASS, but for now putting everything under default is easier.

Thanks again for pin-pointing the root causes.

Hi @hftsai256 ,

Thanks you for the investigation. ControllerX assumes the default configuration from AppDaemon addon, so it uses the default namespace. I would've spotted it if I would've seen the appdaemon.yaml file, sorry.

You are more than welcome ๐Ÿ˜ƒ. I was being lazy and trying to hammer through the settings ASAP without understanding everything in quick-start guides. I wouldn't be able to spot it without those hints.