i2c:
  - id: i2c_ade7880
    scl: ${scl_pin}
    sda: ${sda_pin}

sensor:
  - platform: ade7880
    i2c_id: i2c_ade7880
    irq0_pin: ${irq0_pin}
    irq1_pin: ${irq1_pin}
    reset_pin: ${reset_pin}
    frequency: 60Hz
    phase_a:
      name: Channel A
      voltage: Channel A Voltage
      current: Channel A Current
      active_power: Channel A Active Power
      power_factor: Channel A Power Factor
      forward_active_energy: Channel A Forward Active Energy
      reverse_active_energy: Channel A Reverse Active Energy
      calibration:
        current_gain: 3116628
        voltage_gain: -757178
        power_gain: -1344457
        phase_angle: 188
    phase_b:
      name: Channel B
      voltage: Channel B Voltage
      current: Channel B Current
      active_power: Channel B Active Power
      power_factor: Channel B Power Factor
      forward_active_energy: Channel B Forward Active Energy
      reverse_active_energy: Channel B Reverse Active Energy
      calibration:
        current_gain: 3133655
        voltage_gain: -755235
        power_gain: -1345638
        phase_angle: 188
    phase_c:
      name: Channel C
      voltage: Channel C Voltage
      current: Channel C Current
      active_power: Channel C Active Power
      power_factor: Channel C Power Factor
      forward_active_energy: Channel C Forward Active Energy
      reverse_active_energy: Channel C Reverse Active Energy
      calibration:
        current_gain: 3111158
        voltage_gain: -743813
        power_gain: -1351437
        phase_angle: 180
    neutral:
      name: Neutral
      current: Neutral Current
      calibration:
        current_gain: 3189
