first commit
This commit is contained in:
14
dzVents/examples/respond to switch.lua
Normal file
14
dzVents/examples/respond to switch.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
return {
|
||||
active = true,
|
||||
on = {
|
||||
devices = {
|
||||
'My switch'
|
||||
}
|
||||
},
|
||||
|
||||
execute = function(domoticz, mySwitch)
|
||||
if (mySwitch.state == 'On') then
|
||||
domoticz.notify('Hey!', 'I am on!', domoticz.PRIORITY_NORMAL)
|
||||
end
|
||||
end
|
||||
}
|
||||
Reference in New Issue
Block a user