Fire zha_event from Custom Manufacturer cluster? #1371
Unanswered
mathoudebine
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hi there i was having the same problem with one new IKEA controller but was getting it working OK with little trikes getting events from manufacture clusters. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm writing a custom quirk for a Zigbee remote control for light bulbs for #889.
For the 4 "preset buttons" of the remote, it uses a manufacturer-specific cluster with ID 0xFE00: when one of the preset button is pressed, the remote sends a Zigbee client command at 0x000 with two uint8_t as parameters.
To manage these buttons, i wrote a custom cluster for my quirk that handles the request and sends a
zha_event
each time a button is pressed, to be able to usedevice_automation_triggers
for these preset buttons.Full quirk code is available here: https://github.com/mathoudebine/zha-device-handlers/blob/adeo-lxek-5/zhaquirks/adeo/lxek5.py
Quirk and cluster are loaded without error by ZHA after HA restart.
When i press one of the button, the HA logs indicate that the command is handled by the cluster:
I can see my custom log
AdeoPresetCluster : fire event
but nozha_event
is fired despite callingself.listener_event(ZHA_SEND_EVENT,[...])
from my custom cluster.When I press on a button managed by generic clusters like
LevelControl
, the zha_event is sent as expected:What am I missing here? Is it not possible to fire
zha_event
from manufacturer clusters ?Thanks for your help
Beta Was this translation helpful? Give feedback.
All reactions