Thanks for the reply @xaviml,
Since my initial post here, I actually managed to get some kind of response from the system.
So, I do of course have AppDaemon up and running, using the following configuration for XController:
MyController:
log_level: DEBUG
module: controllerx
class: E1810Controller
controller: tangent_4sl02_not_assigned
light: light.shelly_dimmer_f32d92_light_0
integration: deconz
I put the debug flag in there to do some basic debugging, some 16 days ago
I am modding my E1810 controllers so they fit in-par with the Fuga line of wall outlets from the Danish manufacturer Lauritz Knudsen.
Because of the way the buttons end up, I would like the following behaviour (listed by Deconz event):
- 4002 - Turn lamp ON
- 5002 - Turn lamp OFF
- 4001 - Begin dimming UP (brightness increases steadily at a constant rate)
- 4003 - End dimming UP
- 5001 - Begin dimming DOWN (brightness decreases steadily at a constant rate)
- 5003 - End dimming DOWN
Furthermore - at the moment, the dimmer does respond whenever a 2002/3002 event is fired from Deconz - but I would very much like to change that mapping too, since I would like to use those two buttons for another purpose.
I did read about the mapping and action features of XController - but I didn’t manage to get it working.
Could you maybe point me in the right direction?
Edit:
Browsing the log reveals the following error whenever Deconz is throwing a 5002 event:
2020-03-23 20:05:29.857880 DEBUG MyController: Button pressed: 4002
2020-03-23 20:05:29.869817 WARNING MyController: ------------------------------------------------------------
2020-03-23 20:05:29.871712 WARNING MyController: Unexpected error in worker for App MyController:
2020-03-23 20:05:29.873445 WARNING MyController: Worker Ags: {'id': '341330fb1a5a4c318829a0f3173555db', 'name': 'MyController', 'objectid': '6bb7ce12fb4e4f768b52b6d40c98c021', 'type': 'event', 'event': 'deconz_event', 'function': <bound method DeCONZIntegration.callback of <core.integration.deconz.DeCONZIntegration object at 0xb53c4550>>, 'data': {'id': 'tangent_4sl02_not_assigned', 'unique_id': '14:b4:57:ff:fe:77:74:de', 'event': 4002}, 'pin_app': True, 'pin_thread': 0, 'kwargs': {'id': 'tangent_4sl02_not_assigned', '__thread_id': 'MainThread'}}
2020-03-23 20:05:29.875032 WARNING MyController: ------------------------------------------------------------
2020-03-23 20:05:29.877570 WARNING MyController: 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/core/integration/deconz.py", line 16, in callback
await self.controller.handle_action(data[type_])
File "/config/appdaemon/apps/controllerx/core/controller.py", line 122, in handle_action
await action(*args)
File "/config/appdaemon/apps/controllerx/core/controller.py", line 29, in _action_impl
await method(self, *args, **kwargs)
File "/config/appdaemon/apps/controllerx/core/type/light_controller.py", line 352, in click
attribute = await self.get_attribute(attribute)
File "/config/appdaemon/apps/controllerx/core/type/light_controller.py", line 318, in get_attribute
raise ValueError(
ValueError: This light does not support xy_color or color_temp
2020-03-23 20:05:29.879422 WARNING MyController: ------------------------------------------------------------
I recon this is caused because the XController tries to set an invalid or unsupported property on the light entity?
I guess this also points towards some missing or wrong action and/or mapping in my configuration?