awesome-ha-blueprints icon indicating copy to clipboard operation
awesome-ha-blueprints copied to clipboard

New Controller - Remote Switch H1 (Double Rocker)

Open randyjc opened this issue 2 years ago • 5 comments

Manufacturer

Xiaomi Aqara

Model

WRS-R02

Short Description

Remote Switch H1 (Double Rocker)

Image

xiaomi-aqara-xiaomi-aqara-draadloze-remote-schakel

Actions

[Integration] ZHA

remote_left_button_short_press: sent when clicking the button remote_left_button_double_press: sent when double clicking the button remote_left_button_long_press: sent when continuously pressing the button remote_left_button_long_release: sent when releasing the button after a long press remote_right_button_short_press: sent when clicking the button remote_right_button_double_press: sent when double clicking the button remote_right_button_long_press: sent when continuously pressing the button remote_right_button_long_release: sent when releasing the button after a long press

Additional Details

  • [X] I'd like to help developing this blueprint.

Useful resources

https://gist.github.com/xuxiaoqiao/6ed8dcb950f26337218d0507733970a0#file-aqara_h1_remote-py https://github.com/zigpy/zha-device-handlers/

Additional context

I'd like to help, but i'm no developer or such.

randyjc avatar Apr 03 '22 08:04 randyjc

Hi @randyjc ,

thank you so much for your suggestion! I'm happy to add support for this controller to our project. :) I'll let you know as soon as a blueprint for this device and hooks support are ready to be tested. Changes will be included in a Pull Request which will be linked to this issue. We could then continue our conversation for proper testing and feedback there.

Thanks!

EPMatt avatar Apr 11 '22 22:04 EPMatt

@randyjc I see you provided events for ZHA. Could you also please look for action mappings for this controller regarding Zigbee2MQTT and deCONZ? It would be awesome if we could support the device with those integrations as well. :)

Thank you so much for your precious help!

EPMatt avatar Apr 11 '22 22:04 EPMatt

Hi,

I did make a little blueprint for this one, based on @EPMatt work, for Z2M.

You can check here : https://github.com/schiz0phr3ne/ha-blueprints/blob/main/blueprints/controllers/aqara_wrs-r02/aqara_wrs-r02_zigbee2mqtt.yaml

If I can help, let me know how (I can't help on other Zigbee integrations than Z2M).

schiz0phr3ne avatar May 15 '22 18:05 schiz0phr3ne

@randyjc, don't you have triple press on ZHA ?

schiz0phr3ne avatar May 15 '22 18:05 schiz0phr3ne

Need to add that, with firmware on my devices (version = 2019www. ; date = 20200907), long press and release after long press are unreliable : release event comes after 4 seconds. So if you loop on long press, loop is stoped 4 seconds after release.

schiz0phr3ne avatar May 15 '22 19:05 schiz0phr3ne