Plot Power Measurements

I have a Solar-log, but the integration does not work. I want to read the power measurement from the Solar-Log via TCP-Modbus and log and plot it in Home Assistant. How can I do this?

This is my implementation to read Solar-log data by Modbus TCP
The two filter sensors are required because my “Solar-Log 1200” (with latest firmware) does show exaktly one false reading a 3AM in the morning (may have to do something with Solar-log internal maintenance).

Obviousely the host statement needs to reflect the IP address of your Solar-Log device.

# Read Energy Monitoring Data vom from Solar-Log by Modbus TCP
modbus:
  - type: tcp
    host: 10.60.1.80
    port: 502
    name: "my-solarlog"
    sensors:
      - name: my_solarlog_pv_p_ac
        unit_of_measurement: W
        address: 3502
        data_type: uint32
        swap: word
        device_class: power
        precision: 0
      - name: my_solarlog_pv_p_dc
        unit_of_measurement: W
        address: 3504
        data_type: uint32
        swap: word
        device_class: power
        precision: 0
      - name: my_solarlog_pv_u_ac
        unit_of_measurement: V
        address: 3506
        data_type: uint
      - name: my_solarlog_pv_u_dc
        unit_of_measurement: V
        address: 3507
        data_type: uint
      - name: my_solarlog_month_yield
        unit_of_measurement: kWh
        state_class: total_increasing
        device_class: energy
        address: 3512
        data_type: uint32
        swap: word
        scale: 0.001
        precision: 3
      - name: my_solarlog_year_yield
        unit_of_measurement: kWh
        state_class: total_increasing
        device_class: energy
        address: 3514
        data_type: uint32
        swap: word
        scale: 0.001
        precision: 3
      - name: my_solarlog_total_yield
        unit_of_measurement: kWh
        state_class: total_increasing
        device_class: energy
        address: 3516
        data_type: uint32
        swap: word
        scale: 0.001
        precision: 3
      - name: my_solarlog_total_consumption_p_ac
        unit_of_measurement: W
        address: 3518
        data_type: uint32
        swap: word
        device_class: power
        precision: 0
      - name: my_solarlog_total_consumption
        unit_of_measurement: kWh
        state_class: total_increasing
        device_class: energy
        address: 3528
        data_type: uint32
        swap: word
        scale: 0.001
        precision: 3


# Sensors
sensor:

  # Eliminate glitches in PV Measurement
  - platform: filter
    name: "Solar Erzeugung Total [kWh]"
    entity_id: sensor.my_solarlog_total_yield 
    filters:
      - filter: outlier
        window_size: 5
        radius: 10.0

  # Ausreisser aus der Verbrauchsmessung entfernen
  - platform: filter
    name: "Haushalt Verbrauch Total [kWh]"
    entity_id: sensor.my_solarlog_total_consumption 
    filters:
      - filter: outlier
        window_size: 5
        radius: 10.0