1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

Add support for INA226 Current/Power Monitor (#801)

* Add support for INA226 Current/Power Monitor

* fix lint errors

* fix narrowing conversion

* Remove useless code


Co-authored-by: Sergio Muñoz <sergio@iMac-de-Sergio.local>
This commit is contained in:
Sergio
2019-11-06 13:59:00 +01:00
committed by Otto Winter
parent f94e9b6b1e
commit a919b015b4
5 changed files with 236 additions and 0 deletions

View File

@@ -424,6 +424,19 @@ sensor:
max_voltage: 32.0V
max_current: 3.2A
update_interval: 15s
- platform: ina226
address: 0x40
shunt_resistance: 0.1 ohm
current:
name: "INA226 Current"
power:
name: "INA226 Power"
bus_voltage:
name: "INA226 Bus Voltage"
shunt_voltage:
name: "INA226 Shunt Voltage"
max_current: 3.2A
update_interval: 15s
- platform: ina3221
address: 0x40
channel_1: