notifications using a variable as subject
Posted: Saturday 31 October 2020 0:38
Does anyone know why using domoticz.notify the message field is read from a local variable but the subject of a local variable is not read?
Thanks in advanced
Code: Select all
return {
on = {
--timer = {'at sunset'},
devices = { 'Estora salon level' }
},
execute = function(domoticz, device)
local porcentaje = (domoticz.devices('Estora salon level').level)
local asunto= 'test'
if domoticz.devices('Estora salon level').level >= 1 and domoticz.devices('Estora salon level').level <= 99 then
domoticz.notify(asunto, porcentaje, domoticz.PRIORITY_MODERATE, nil, nil, "telegram")
end
end
}