All I want to do is put some data in the log file. I used a variant of the example.
Code: Select all
return {
active = true,
on = {
devices = {
'GetAbHum'
},
},
execute = function(domoticz, device)
domoticz.log('Msg 1 Start Ab Hum switched')
if (switch.state=='On' ) then
domoticz.log('Hey I am ON')
else
domoticz.log('Hey OFF')
end
end
} Code: Select all
date+time User: Admin initiated a switch command (1197/StartAbNum/On
date+time (GetAbHum) Light/Switch (StartAbHum)
Would appreciate any tips before giving up! I can't spend all day in front of a computer achieving nothing. It is soul destroying.