Digital Gauge YAML

Here is the essential INA219 Digital Gauge YAML snippet to add to your ESPhome 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
    

i2c:
  sda: GPIO21
  scl: GPIO22

sensor:
  - platform: ina219
    address: 0x40
    shunt_resistance: 0.1 ohm
    id: ina_sensor
    bus_voltage:
      name: "tank_sender_voltage"
      id: tank_sender_voltage
    max_voltage: 32.0V
    max_current: 3.2A
    update_interval: 5s