Page 1 of 1
WXKG03LM AQARA WIRELESS "SMART" SWITCH (STICKUP VERSION)
Posted: Wednesday 02 May 2018 10:29
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?
Re: WXKG03LM AQARA WIRELESS "SMART" SWITCH (STICKUP VERSION)
Posted: Wednesday 02 May 2018 12:02
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 (276.14 KiB) Viewed 1383 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
}
Re: WXKG03LM AQARA WIRELESS "SMART" SWITCH (STICKUP VERSION)
Posted: Thursday 03 May 2018 9:57
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
2º. I add it to DOMOTICZ (PRUEBA)
in SWITCHES it appears
3º. I edit the switch and assign a selector with 2 levels, Click and double Click. Then I save the changes.
4º I go back to switches and only the OFF status appears.
5º I try to edit again and I can not do anything with that switch
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
Re: WXKG03LM AQARA WIRELESS "SMART" SWITCH (STICKUP VERSION)
Posted: Thursday 03 May 2018 10:38
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
}
Re: WXKG03LM AQARA WIRELESS "SMART" SWITCH (STICKUP VERSION)
Posted: Thursday 03 May 2018 14:29
by chetele6725
IT WORKS!!!
I will try some event
thanks a lot