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?
WXKG03LM AQARA WIRELESS "SMART" SWITCH (STICKUP VERSION)
Moderator: leecollings
-
- Posts: 3
- Joined: Wednesday 02 May 2018 10:23
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
- 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)
Is this the same / similar as the WXKG02LM ?
I have that one setup as selector and control the actions with dzVents script.
I have that one setup as selector and control the actions with dzVents script.
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
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- 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)
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
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
- 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)
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
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- 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)
IT WORKS!!!
I will try some event
thanks a lot
I will try some event
thanks a lot
Who is online
Users browsing this forum: No registered users and 1 guest