Oil Pressure Template YAML


Here is the essential Oil Pressure template YAML snippet to add to your ESPhome Engine Monitor YAML configuration.

For a step-by-step guide, watch the comprehensive tutorial available at the following link:  Video


Buy Me a Coffee at ko-fi.com
Download
    

  - platform: template
    name: "Oil Pressure"
    lambda: |-
      float voltage = id(oil_sender_voltage).state;
      if (voltage <= 0.720) 
          return 0.0;  
      return (voltage - 0.720) * 0.812;
    update_interval: 5s
    unit_of_measurement: "Bar"