SCENES issue: - Xiaomi double tap Topic is solved

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
soyelposeido
Posts: 14
Joined: Thursday 23 July 2020 11:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

SCENES issue: - Xiaomi double tap

Post 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!
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: SCENES issue: - Xiaomi double tap

Post 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
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
soyelposeido
Posts: 14
Joined: Thursday 23 July 2020 11:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: SCENES issue: - Xiaomi double tap

Post 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
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: SCENES issue: - Xiaomi double tap

Post 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 299 times


now press edit on that switch
editButton.png
editButton.png (13.22 KiB) Viewed 299 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 299 times
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
soyelposeido
Posts: 14
Joined: Thursday 23 July 2020 11:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: SCENES issue: - Xiaomi double tap

Post by soyelposeido »

so... no scene needed? great! thanks
soyelposeido
Posts: 14
Joined: Thursday 23 July 2020 11:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: SCENES issue: - Xiaomi double tap

Post by soyelposeido »

just came back to report that it works like a charm! thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest