Temperature Sensor YAML

Here is the essential YAML snippet to add to the tail end of your ESPhome Engine Monitor YAML configuration.

I have set up the snippet to accommodate up to four temperature sensors. To tailor the configuration to your needs, you may:
– Remove unnecessary configurations by deleting the three lines associated with each sensor you do not require.
– Retain the existing sensor names or alter them to more descriptive labels such as “Alternator Temperature.”

Remember to update the address field to correspond with the unique address of your sensor, which is viewable in the ESPHome log file.
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
    
one_wire:
  - platform: gpio
    pin: GPIO25

sensor:
  - platform: dallas_temp
    address: 0x2c3c18e381b14128
    name: "Temperature 1"
    id: temperature_1_celsius
    update_interval: "10s"

  - platform: dallas_temp
    address: 0xf43c9ae38186c228
    name: "Temperature 2"
    update_interval: "10s"

  - platform: dallas_temp
    address: 0x5c3c09e3810b9328
    name: "Temperature 3"
    update_interval: "10s"

  - platform: dallas_temp
    address: 0x443c7de381c5a828
    name: "Temperature 4"
    update_interval: "10s"

  - platform: template
    name: "Temperature 1 in Fahrenheit"
    lambda: |-
      return (id(temperature_1_celsius).state * 9.0/5.0) + 32.0;
    update_interval: 10s