WXKG03LM AQARA WIRELESS "SMART" SWITCH (STICKUP VERSION)

Moderator: leecollings

Post Reply
chetele6725
Posts: 3
Joined: Wednesday 02 May 2018 10:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

WXKG03LM AQARA WIRELESS "SMART" SWITCH (STICKUP VERSION)

Post by chetele6725 »

hi friends, has anyone been able to integrate this into DOMOTICZ? It only gives me the value of ON every time I press the switch, I do not see how to set it.

Could you help me some?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: WXKG03LM AQARA WIRELESS "SMART" SWITCH (STICKUP VERSION)

Post by waaren »

Is this the same / similar as the WXKG02LM ?

I have that one setup as selector and control the actions with dzVents script.
Capture.PNG
Capture.PNG (276.14 KiB) Viewed 1380 times

Code: Select all

return {

   on = { devices = { "XDual" }           },
      
   execute = function(dz, switch )
      
      if switch.state == "left" then
            dz.devices("Kastenkamer lamp").toggleSwitch()
      elseif switch.state == "right" then
            dz.devices("Kastenkamer rolluik").switchOn()
      elseif switch.state == "both" then  
        dz.devices("Kastenkamer rolluik").close()
        dz.devices("Slaapkamer rolluik").close().afterSec(5)        
      end
   end
}
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
chetele6725
Posts: 3
Joined: Wednesday 02 May 2018 10:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: WXKG03LM AQARA WIRELESS "SMART" SWITCH (STICKUP VERSION)

Post by chetele6725 »

Hello, thank you very much for your answer.

It is similar but it is not the same.

The WXKG03LM only has one button.


1º. It appears on devices
Image

2º. I add it to DOMOTICZ (PRUEBA)
Image

in SWITCHES it appears
Image

3º. I edit the switch and assign a selector with 2 levels, Click and double Click. Then I save the changes.
Image

4º I go back to switches and only the OFF status appears.
Image


5º I try to edit again and I can not do anything with that switch
Image

If instead of setting it as a selector I set it as ON / OFF it only shows me the ON value permanently. Whenever I activate it, it sends me ON
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: WXKG03LM AQARA WIRELESS "SMART" SWITCH (STICKUP VERSION)

Post by waaren »

Would this dzVents script work for you ?

Code: Select all

--[[
Turn off PRUEBA
 ]] --

return {
   on = { devices = { "PRUEBA" }           },
      
   execute = function(dz, switch )
      if switch.state ~= "Off" then
            switch.switchOff().silent()
	 end
   end
}
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
chetele6725
Posts: 3
Joined: Wednesday 02 May 2018 10:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: WXKG03LM AQARA WIRELESS "SMART" SWITCH (STICKUP VERSION)

Post by chetele6725 »

IT WORKS!!!

I will try some event

thanks a lot
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest