Page 1 of 1

Dzvent Read Triangle Alert Value/Colour

Posted: Wednesday 02 October 2024 14:39
by paul402
Having read and obviously misunderstood the documentation I assumed that this would work.

Code: Select all

if (Devices(3732).color== 1) then
but in the error log I get attempt to call a nil value (global 'Devices')
The device number exists.
Any feedback appreciated.

Re: Dzvent Read Triangle Alert Value/Colour

Posted: Wednesday 02 October 2024 14:48
by waltervl
It should probably something like

Code: Select all

if (domoticz.devices(3732).color== 1) then

Re: Dzvent Read Triangle Alert Value/Colour

Posted: Wednesday 02 October 2024 14:56
by paul402
Thank you! I have 20 other scripts running ok but I just couldn't see the wood for the trees.