first commit
This commit is contained in:
19
dzVents/examples/get sensor values.lua
Normal file
19
dzVents/examples/get sensor values.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
return {
|
||||
active = true,
|
||||
on = {
|
||||
devices = {
|
||||
'My sensor'
|
||||
}
|
||||
},
|
||||
execute = function(domoticz, mySensor)
|
||||
|
||||
if (mySensor.temperature > 50) then
|
||||
domoticz.notify('Hey!', 'The house might be on fire!!',
|
||||
domoticz.PRIORITY_EMERGENCY,
|
||||
domoticz.SOUND_SIREN)
|
||||
domoticz.log('Fire alert', domoticz.LOG_ERROR)
|
||||
end
|
||||
|
||||
end
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user