Version
0.8.x_dev

INA219 Sensor


INA219

INA219 DC Current Sensor is available on all newer boneIO Black. It can measure DC current, power and voltage of the boneIO Black power supply.

Example config

ina219:
  - address: 0x40

Example advanced config:

ina219:
  - address: 0x40
    sensors:
      - id: INA219 Current
        device_class: current
        filters:
          - round: 2
      - id: INA219 Power
        device_class: power
        filters:
          - round: 2
      - id: INA219 Voltage
        device_class: voltage
        filters:
          - round: 2

Configuration variables:

  • id (Optional, string, default: Address of I2C device) - uniquely identifies this device in MQTT and Home Assistant
  • address (Required, int) - Address of Dallas device
  • show_in_ha (Optional, boolean, default: True) - Send autodiscovery message to Home Assistant.
  • update_interval (Optional, timeperiod, default: 60 seconds) - how often this sensor should update
  • unit_of_measurement (Optional, string, default: °C) - unit of measurement of the sensor. This does not make any math to switch between units!
  • sensors (Optional, list, default: visible in example above) - list of sensors to include in HA MQTT message.
    • filters (Optional, list, default: - round: 2) - filter list. See Filters to learn more. All can be filtered to eg round results of sensors.