I have a problem understanding Devicechanged command,
Code: Select all
commandArray = {}
if (otherdevices['Switch on display2004'] == 'On') then
print('switch is on')
end
return commandArray
Code: Select all
commandArray = {}
if (devicechanged['Switch on display2004'] == 'On') then
print('switch is on')
end
return commandArray
As far as i understand devicechanged can be a status or a value, a status is stated either 'On' or 'Off" and a value can be a number..
Please help
