I need help with rules - I want to send neopixel commands triggered by state of a sensor (integer value).
the problem is (at least for me..), that I need it to work like that:
if [value] <n
than this (this part is easy - command tgiggered by condition)
if [value] is greater than n+1 and smaller than n2
than this
if [value] is greater than n2+1 and smaller than n3
than this
the problem is, that this "n" values are from 0 - 150, so it's /nearly, due to rules size limitation and common sense

eg.
Code: Select all
if [p1#p] < 30
neopixel,1,0,255,0
endif
if [p1#p] = 30
neopixel,1,10,100,0

maybe I have some brain fog or something, but I can't find how to get this work.
any help?
thanks in an advance.