Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 103263

Invert sensor value

$
0
0

Hi,

I have a modbus tcp sensor from my hvac giving me a value between 0-255. Is it possible to make a template that inverses the value to 255-0 instead?

I’m planning to control a 0 -10v fan but need to invert the signal.

  -  sensor:
      - name: "Heat/cold percent"
        unit_of_measurement: "%"
        state: >
          {{ ((states('sensor.current_heat_cold_recovery_power')|int / 2.55))|round(0) }}

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 103263

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>