Advertisement
Guest User

ina219 esphome

a guest
Feb 8th, 2021
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. esphome:
  2. name: ina219
  3. platform: ESP32
  4. board: esp-wrover-kit
  5.  
  6. wifi:
  7. ssid: "Wifi"
  8. password: "wifipassord"
  9.  
  10. # Enable fallback hotspot (captive portal) in case wifi connection fails
  11. ap:
  12. ssid: "ina219 Fallback Hotspot"
  13. password: "xs6lpRPFqEfx"
  14.  
  15. captive_portal:
  16.  
  17. # Enable logging
  18. logger:
  19.  
  20. # Enable Home Assistant API
  21. api:
  22. password: "otapassord"
  23.  
  24. ota:
  25. password: "otapassord"
  26.  
  27. i2c:
  28. - id: bus_a
  29. sda: 21
  30. scl: 22
  31. scan: True
  32. - id: bus_b
  33. sda: 14
  34. scl: 15
  35. scan: True
  36.  
  37. sensor:
  38. - platform: ina219
  39. i2c_id: bus_a
  40. address: 0x40
  41. shunt_resistance: 0.1 ohm
  42. current:
  43. name: "INA219 Current"
  44. power:
  45. name: "INA219 Power"
  46. bus_voltage:
  47. name: "INA219 Bus Voltage"
  48. shunt_voltage:
  49. name: "INA219 Shunt Voltage"
  50. max_voltage: 32.0V
  51. max_current: 3.2A
  52. update_interval: 60s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement