-
-
Notifications
You must be signed in to change notification settings - Fork 118
Expose more functions for Zigbee2MQTT Aqara H2 switches (WS-K07E and WS-K08E) and basic functionality for H2 rotary dimmer (KD-R01D) #392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Add support for double press, hold, and release actions for both upper and lower row buttons. These actions are available according to Z2M device docs (https://www.zigbee2mqtt.io/devices/WS-K08E.html#aqara-ws-k08e), however for me the upper row only accepts single clicks, the lower row clicks and double clicks. As I don't know if this is an error in the docs or a not-yet-finished implementation in Z2M, I included these actions.
Enhance Aqara H2 EU switch blueprint actions
Added additional button actions for double press and hold/release events.
|
Hello @Ra72xx , already thanks for working on this change! Might it be possible to include the dimmer switch? Cheers, Michael |
If I have some time... I don't really know how to adapt this "rotation"-stuff in the logic of SwitchManager. |
|
Actually i'm using this dimmer only in control_relay mode to integrate non-smart lights into my smarthome. if i'd have smart-bulbs i think i wouldn't use this kind of dimmers at all (due to limited functionality). long story short: actions like click, double, press/hold and release are the most important features imo. rotation-stuff is more lika a nice to have thingy for far more-advanced, precise and edgy scenarios (e.g. control audio volume, remote thermostat-dial, etc) |
That might be relatively simple. Could you try if the appended files (unzip in $HOMEASSISTANT_DIR/blueprints/switch_manager) work for you? |
|
Wont there be an issue in not knowing the direction for rotating actions? |
I don't really know, that was just a quick hack'ed together blueprint. I saw the rotary direction stuff in some other blueprints but did not really have the incentive to look into it ;-). |
Blueprint Checklist
Zigbee2MQTT
This pull request adds the missing multi-click actions for the single and double rocker variant of those Aqara switches.