I'm a tinkerer with scripting (dzvents) but no pro compared to many on here. Most of my Domoticz setup is based around RFXCOM / HomeEasy typie kit. I'm sure what I'm trying to do here is simple and I'm just missing something obvious. I've never used Tasmota / ESPEasy etc - I don't think I need to in this scenario (it's a rabbit hole I'd prefer to not go down) but I will if necessary.
I purchased an AriLux LED Strip Wifi controller. I set it up using the Magic Home app and made a note of the IP
In Domoticz I added the new h/w type of 'Arilux AL-LC0x;
I clicked 'add light' and added the IP of my controller.
When I click 'setup' and 'devices' in Domoticz, I see the device and can click to turn it on and off - this works fine
I want to do more though. Ideally I want a dzvents script to control it but no matter what commands I use I get errors. If I take a perfectly working (super simple) script from one of my other devices, and try and make it control the LED controller I get a 'attempt to call a nil value' in the log.
For instance:
Code: Select all
return {
on = { devices = { 441 }},
execute = function(dz)
dz.devices(29).SwitchOff()
end
}
Code: Select all
return {
on = { devices = { 441 }},
execute = function(dz)
dz.devices(C0A80079).SwitchOff()
end
}
attempt to call a nil value (field 'switchOff')
attempt to call a nil value (field 'setRGB')
attempt to call a nil value (field 'LedOff')
Am I just using the wrong commands? If so what should I use? The fact I can turn it on and off in 'setup' -> 'devices' implies to me this MUST be simple....
HELP PLEASE!
Thanks,
Bob