This object is in archive! 

Invert a sensor velue

André Lemke shared this question 4 years ago
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é

Best Answer
photo

1d11fbe91cde450ae2b10fa04f9aa8d0


Will this solution work?

Replies (4)

photo
1

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....

photo
1

1d11fbe91cde450ae2b10fa04f9aa8d0


Will this solution work?

photo
2

@Dima OK that's much easier than my suggest :-)

photo
1

OK thanks,

that's pretty cool.....

Leave a Comment
 
Attach a file