Skip to content

Bug or unsupported config ? #1270

@Paul-Vdp

Description

@Paul-Vdp

FYI : all relevant software components on most recent versions
The device is a Sonoff ZBM5 (a Zigbee Smart Wall Switch / 2 gang)

I encounter an unexpected problem with following config :
switch_2ch_living: module: controllerx class: LightController controller: Sonoff 2CH Living integration: name: z2m listen_to: mqtt light: light.living_wandlichten mapping: toggle_l1: service: light.toggle entity_id: light.living_luster toggle_l1$2: service: script.light_button_dim data: light: light.living_luster toggle_l2: toggle toggle_l2$2: service: script.light_button_dim data: light: light.living_wandlichten

It mostly works - except for the 'toggle_l1$2' part. This never gets triggered - most likely because Appdaemon throws an error, saying :
2025-12-03 11:36:53.208720 WARNING AppDaemon: Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/appdaemon/utility_loop.py", line 246, in _loop_iteration_context yield timing File "/usr/lib/python3.12/site-packages/appdaemon/utility_loop.py", line 197, in loop await self.AD.app_management.check_app_updates() File "/usr/lib/python3.12/site-packages/appdaemon/app_management.py", line 898, in check_app_updates await self.check_app_config_files(update_actions) File "/usr/lib/python3.12/site-packages/appdaemon/app_management.py", line 704, in check_app_config_files if not utils.deep_compare(current_app, prev_app): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/appdaemon/utils.py", line 432, in deep_compare if deep_compare(v, data[k]): ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/appdaemon/utils.py", line 431, in deep_compare if isinstance(v, dict) and isinstance(data[k], dict): ~~~~^^^ KeyError: 'toggle_l1$2'

This does not seem right or logical, because it does not complain about the very similar 'toggle_l2$2', and even does what it is supposed to do after this corresponding double-click ??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions