aqara wall selector switch
Posted: Friday 30 August 2019 17:22
Hi!
im trying to get my aqara wall switch to control a lightbulb , but i dont understand even a bit of this dzVents programming stuff, since it is an selector switch it makes it difficult, im used to blocky, but this selector switch doesnt seem to work wit blocky, this is my script so far:
And its not working at all 
What im trying to do is that when i press Right_klick on the aqara wallswitch it should turn on Hall_lampor
but its not working.
im trying to get my aqara wall switch to control a lightbulb , but i dont understand even a bit of this dzVents programming stuff, since it is an selector switch it makes it difficult, im used to blocky, but this selector switch doesnt seem to work wit blocky, this is my script so far:
Code: Select all
return {
on = {
devices = {
'Hallen_extra'
}
},
execute = function(domoticz, switch)
if (switch.state == 'Right_klick') then
domoticz.devices('Hall_lampor').toggleSwitch()
end
end
}

What im trying to do is that when i press Right_klick on the aqara wallswitch it should turn on Hall_lampor
but its not working.