Page 1 of 1

getting the color index of an alert sensor in lua

Posted: Friday 27 November 2015 17:09
by badubo
Hello,
evererything is in the title ;)

in the forum, I saw how to update an alert sensor or get the value by JSON, but not how to get the color level from lua.

I tried :
otherdevices : empty
otherdevices_utility : empty
otherdevices_svalues : I get the text, not the color

Any help?

Thanks
Laurent

Re: getting the color index of an alert sensor in lua

Posted: Sunday 06 December 2015 1:29
by malarcy
Wild guess based on a little reading. Is there an otherdevices_nvalues?

My limited understanding is nvalues are the numbers svalues are strings.

Of course I may be completely wrong but that's where I would look next.


Sent from my iPhone using Tapatalk