Hi,
I try to use the dummydimmer to control the volume of my VDR. This rule works:
IF $dummydimmer.dimlevel changes THEN execute "perl /home/pi/vdr.pl VOLU $dummydimmer.dimlevel >/dev/null 2>&1 || true"
But my values are from 0 to 255, so I tried:
IF $dummydimmer.dimlevel changes THEN execute "perl /home/pi/vdr.pl VOLU ($dummydimmer.dimlevel * 2) >/dev/null 2>&1 || true"
Which did not work (used “2” to avoid having to round).
So my question is, do I have to use a seperate variable or can I do this “on the fly”?