This object is in archive! 
Invert a sensor velue
Answered
Hello,
i would like to invert the values of a sensor in a rule. So 100% is then 0%. Or 60% is 40%. I want to represent this with a virtual thermostat. How do I define the rule?
Regards André
No connection
Real-time notifications may not work
Will this solution work?
Will this solution work?
Thats easy, create a simple rule (first create a new virtual meter device):
If device value >= 100
set virtual device = 0
else
If device value >= 90
set virtual device = 10
else
If device value >= 80
set virtual device = 20
and so on....
Thats easy, create a simple rule (first create a new virtual meter device):
If device value >= 100
set virtual device = 0
else
If device value >= 90
set virtual device = 10
else
If device value >= 80
set virtual device = 20
and so on....
Will this solution work?
Will this solution work?
@Dima OK that's much easier than my suggest :-)
@Dima OK that's much easier than my suggest :-)
OK thanks,
that's pretty cool.....
OK thanks,
that's pretty cool.....
Replies have been locked on this page!