mirror of
https://github.com/esphome/esphome.git
synced 2024-12-23 14:04:53 +01:00
22 lines
495 B
YAML
22 lines
495 B
YAML
|
spi:
|
||
|
- id: spi_ina2xx
|
||
|
clk_pin: ${clk_pin}
|
||
|
mosi_pin: ${mosi_pin}
|
||
|
miso_pin: ${miso_pin}
|
||
|
|
||
|
sensor:
|
||
|
- platform: ina2xx_spi
|
||
|
spi_id: spi_ina2xx
|
||
|
cs_pin: ${cs_pin}
|
||
|
model: INA229
|
||
|
shunt_resistance: 0.001130 ohm
|
||
|
max_current: 40 A
|
||
|
adc_range: 1
|
||
|
temperature_coefficient: 50
|
||
|
shunt_voltage: "INA2xx Shunt Voltage"
|
||
|
bus_voltage: "INA2xx Bus Voltage"
|
||
|
current: "INA2xx Current"
|
||
|
power: "INA2xx Power"
|
||
|
energy: "INA2xx Energy"
|
||
|
charge: "INA2xx Charge"
|