Page 1 of 1

SCENES issue: - Xiaomi double tap

Posted: Sunday 08 November 2020 19:04
by soyelposeido
Hello

newbie question here (sorry if answered before, I didnt find it)

So, I have purchased a xiaomi zigbee Button connected trough zigbee2mqtt that's capable of different kind of taps (single, double, triple, long, etc....) and it's recoginized as such on the dashboard. Dashboard shows the kind of tap I phisically push on the button, so no problem on the recognition side.
this is the button: https://zigbee.blakadder.com/Xiaomi_WXKG01LM.html

my isse is that I would like to do this scene:
- one tap, roll my shaes to 30%
- double tap, roll the shades to 60%
- triple Tap, roll the shades to 90%
- Long tap, shades to 0%

my problem is that when I go to screnes to create one, in the seccion where is select the trigger ("activation devices") I have to add one, (wich is my button) but instead of selecting one from the list of devices that I have on domotics, it ask me to recognize it (it's strange to me a pairing here instead of a dropdown menu with all devices but...)
the thing is that I click on "add device", and "pair" my button clicking on it. and it works, gets paired. BUT it does not recognize there if I do a tap, double tap, etc.. it's onle recognized as "ON" on the code section.


so the question is... Can I add a DOUBLE TAP (etc) on the Xiaomi button instead SINGLE TAP as activation device on the Scene?

thanks!

Re: SCENES issue: - Xiaomi double tap

Posted: Sunday 08 November 2020 19:52
by waaren
soyelposeido wrote: Sunday 08 November 2020 19:04 so the question is... Can I add a DOUBLE TAP (etc) on the Xiaomi button instead SINGLE TAP as activation device on the Scene?
I use the same button and on my system it is recognized as a selector type switch.
At the edit screen of that switch you can add level actions like

Code: Select all

http:///127.0.0.1:<domoticz port>/json.htm?type=command&param=switchscene&idx=<scene idx>&switchcmd=On

Re: SCENES issue: - Xiaomi double tap

Posted: Sunday 08 November 2020 20:29
by soyelposeido
waaren wrote: Sunday 08 November 2020 19:52 I use the same button and on my system it is recognized as a selector type switch.

Thanks

On the Devices lits appears as
- TYPE Light/Switch
- Subtype: Selector Switch

on the Switches TAB, it does recognize the different tap options:
Image

on the Scene section, when the button is paired I see:

(It's here where I expected to be able to select the nunber of taps for THIS scene:
Image




and for the code, I'll have a look at it, as I dont understand how it works, thanks!
waaren wrote: Sunday 08 November 2020 19:52 At the edit screen of that switch you can add level actions like

Code: Select all

http:///127.0.0.1:<domoticz port>/json.htm?type=command&param=switchscene&idx=<scene idx>&switchcmd=On

Re: SCENES issue: - Xiaomi double tap

Posted: Sunday 08 November 2020 20:55
by waaren
soyelposeido wrote: Sunday 08 November 2020 20:29 on the Switches TAB, it does recognize the different tap options:
Mine look similar
Button.png
Button.png (22.01 KiB) Viewed 363 times


now press edit on that switch
editButton.png
editButton.png (13.22 KiB) Viewed 363 times



At the edit screen of the button set it like below (three ///) And set Local Networks (no username/password): on the settings page to allow 127.0.0.1
Selector Edit window.png
Selector Edit window.png (103.32 KiB) Viewed 363 times

Re: SCENES issue: - Xiaomi double tap

Posted: Sunday 08 November 2020 23:55
by soyelposeido
so... no scene needed? great! thanks

Re: SCENES issue: - Xiaomi double tap

Posted: Wednesday 11 November 2020 0:32
by soyelposeido
just came back to report that it works like a charm! thanks