Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esphome:
- name: ina219
- platform: ESP32
- board: esp-wrover-kit
- wifi:
- ssid: "Wifi"
- password: "wifipassord"
- # Enable fallback hotspot (captive portal) in case wifi connection fails
- ap:
- ssid: "ina219 Fallback Hotspot"
- password: "xs6lpRPFqEfx"
- captive_portal:
- # Enable logging
- logger:
- # Enable Home Assistant API
- api:
- password: "otapassord"
- ota:
- password: "otapassord"
- i2c:
- - id: bus_a
- sda: 21
- scl: 22
- scan: True
- - id: bus_b
- sda: 14
- scl: 15
- scan: True
- sensor:
- - platform: ina219
- i2c_id: bus_a
- address: 0x40
- shunt_resistance: 0.1 ohm
- current:
- name: "INA219 Current"
- power:
- name: "INA219 Power"
- bus_voltage:
- name: "INA219 Bus Voltage"
- shunt_voltage:
- name: "INA219 Shunt Voltage"
- max_voltage: 32.0V
- max_current: 3.2A
- update_interval: 60s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement