dboeni / home-assistant-ampere-storage-pro

MIT License
15 stars 1 forks source link

Grid in/out values #2

Open fsedarkalex opened 7 months ago

fsedarkalex commented 7 months ago

Me again 😆

It should be possible to get information about the energy consumed from public grid or sent to grid as these devices get delivered with an energy meter connected to the inverter. I can see the values in the AMPERE HOME App so the values are available.

Unfortunately I don't know how to get the values from modbus to find them on my own :( I'll try and see if I can find them on iQ at least

Willy0276 commented 1 week ago

Try in the Modbus :

 - name: Total active power
    unique_id: total_active_power
    device_address: 3
    address: 1348
    input_type: input
    data_type: int16
    precision: 0
    unit_of_measurement: W
    device_class: power
    state_class: measurement
    scale: 1
    scan_interval: 10

  - name: L1 active power
    unique_id: l1_active_power
    device_address: 3
    address: 1349
    input_type: input
    data_type: int16
    precision: 0
    unit_of_measurement: W
    device_class: power
    state_class: measurement
    scale: 1
    scan_interval: 10

  - name: L1 Grid Current
    unique_id: l1_grid_current
    device_address: 3
    address: 16434
    input_type: input
    data_type: int16
    precision: 2
    unit_of_measurement: A
    device_class: Current
    state_class: measurement
    scale: 0.01
    scan_interval: 60

  - name: L1 Grid active voltage
    unique_id: l1_grid_active_voltage
    device_address: 3
    address: 16433
    input_type: input
    data_type: uint16
    precision: 1
    unit_of_measurement: V
    device_class: Voltage
    state_class: measurement
    scale: 0.1
    scan_interval: 60

  - name: L1 Grid Freq
    unique_id: l1_grid_freq
    device_address: 3
    address: 16435
    input_type: input
    data_type: uint16
    precision: 2
    unit_of_measurement: Hz
    device_class: Frequency
    state_class: measurement
    scale: 0.01
    scan_interval: 60

  - name: L1 Grid DCI
    unique_id: l1_grid_dci
    device_address: 3
    address: 16434
    input_type: input
    data_type: int16
    precision: 2
    unit_of_measurement: A
    device_class: Current
    state_class: measurement
    scale: 1000
    scan_interval: 60

  - name: L2 active power
    unique_id: l2_active_power
    device_address: 3
    address: 1350
    input_type: input
    data_type: int16
    precision: 0
    unit_of_measurement: W
    device_class: power
    state_class: measurement
    scale: 1
    scan_interval: 10

  - name: L2 Grid Current
    unique_id: l2_grid_current
    device_address: 3
    address: 16441
    input_type: input
    data_type: int16
    precision: 2
    unit_of_measurement: A
    device_class: Current
    state_class: measurement
    scale: 0.01
    scan_interval: 60

  - name: L2 Grid active voltage
    unique_id: l2_grid_active_voltage
    device_address: 3
    address: 16440
    input_type: input
    data_type: uint16
    precision: 1
    unit_of_measurement: V
    device_class: Voltage
    state_class: measurement
    scale: 0.1
    scan_interval: 60

  - name: L2 Grid Freq
    unique_id: l2_grid_freq
    device_address: 3
    address: 16442
    input_type: input
    data_type: uint16
    precision: 2
    unit_of_measurement: Hz
    device_class: Frequency
    state_class: measurement
    scale: 0.01
    scan_interval: 60

  - name: L2 Grid DCI
    unique_id: l2_grid_dci
    device_address: 3
    address: 164443
    input_type: input
    data_type: int16
    precision: 2
    unit_of_measurement: A
    device_class: Current
    state_class: measurement
    scale: 1000
    scan_interval: 60

  - name: L3 active power
    unique_id: l3_active_power
    device_address: 3
    address: 1351
    input_type: input
    data_type: int16
    precision: 0
    unit_of_measurement: W
    device_class: power
    state_class: measurement
    scale: 1
    scan_interval: 10

  - name: L3 Grid Current
    unique_id: l3_grid_current
    device_address: 3
    address: 16448
    input_type: input
    data_type: int16
    precision: 2
    unit_of_measurement: A
    device_class: Current
    state_class: measurement
    scale: 0.01
    scan_interval: 60

  - name: L3 Grid active voltage
    unique_id: l3_grid_active_voltage
    device_address: 3
    address: 16447
    input_type: input
    data_type: uint16
    precision: 1
    unit_of_measurement: V
    device_class: Voltage
    state_class: measurement
    scale: 0.1
    scan_interval: 60

  - name: L3 Grid Freq
    unique_id: l3_grid_freq
    device_address: 3
    address: 16449
    input_type: input
    data_type: uint16
    precision: 2
    unit_of_measurement: Hz
    device_class: Frequency
    state_class: measurement
    scale: 0.01
    scan_interval: 60

  - name: L3 Grid DCI
    unique_id: l3_grid_dci
    device_address: 3
    address: 164450
    input_type: input
    data_type: int16
    precision: 2
    unit_of_measurement: A
    device_class: Current
    state_class: measurement
    scale: 1000
    scan_interval: 60