Sofar Solar inwerter - odczyt danych bezpośrednio przez fabryczny DataLogger

@RobinI30 - szacun za wiedze i błyskawiczna pomoc :), timestamp przestawiony na 1minute, delay 1s, zerowanie statystyk mam 33sekundy po północy - ustawiłem na 00:02, filtry powklejane, za kilka godzin dam znać jaki efekt

Edit:

Kompletna paczka do falownika Sofar Solar HYD 5K~20KTL-3PH
Jest to przerobiony proces @RobinI30 i @paku2020 wraz z poprawkami @RobinI30
W configuration.yaml wpisać:

binary_sensor:
  - platform: ping
    host: 192.168.0.32 #adres ip falownika
    name: Falownik_Sofar
    count: 7
    scan_interval: 30

utility_meter:

  pv_produkcja_sloneczna:
    name: Produkcja z energii słonecznej
    source: sensor.sofarsolarmqtt_wygenerowane_kw_dzis
    cycle: yearly

  pv_uzycie_z_sieci:
    name: Użycie energii z sieci
    source: sensor.sofarsolarmqtt_dzienne_uzycie_energii_z_sieci
    cycle: yearly

  pv_produkcja_do_sieci:
    name: Produkcja do sieci
    source: sensor.sofarsolarmqtt_dzienna_produkcja_do_sieci
    cycle: yearly

  pv_energia_wychodzaca_aku:
    name: Energia wychodząca z akumulatora
    source: sensor.sofarsolarmqtt_dzienna_energia_wychodzaca_z_akumulatora
    cycle: yearly

  pv_energia_wchodzaca_aku:
    name: Energia wchodząca do akumulatora
    source: sensor.sofarsolarmqtt_dzienna_energia_wchodzaca_do_akumulatora
    cycle: yearly

sensor:

  ###### SofarSolarMQTT lokalnie ######
  - platform: mqtt
    state_topic: "SofarSolarMQTT/Frequency_Grid_Hz"
    name: "SofarSolarMQTT_Frequency_Grid"
    unit_of_measurement: "Hz"
    device_class: power

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Aktualna_generowana_moc_kW"
    name: "SofarSolarMQTT_Aktualna_generowana_moc_kW"
    unit_of_measurement: "kW"
    device_class: power

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Napiecie_V_faza_R"
    name: "SofarSolarMQTT_Napiecie_V_faza_R"
    unit_of_measurement: "V"
    device_class: voltage

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Natezenie_A_faza_R"
    name: "SofarSolarMQTT_Natezenie_A_faza_R"
    unit_of_measurement: "A"
    device_class: current

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Napiecie_V_faza_S"
    name: "SofarSolarMQTT_Napiecie_V_faza_S"
    unit_of_measurement: "V"
    device_class: voltage

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Natezenie_A_faza_S"
    name: "SofarSolarMQTT_Natezenie_A_faza_S"
    unit_of_measurement: "A"
    device_class: current

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Napiecie_V_faza_T"
    name: "SofarSolarMQTT_Napiecie_V_faza_T"
    unit_of_measurement: "V"
    device_class: voltage

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Natezenie_A_faza_T"
    name: "SofarSolarMQTT_Natezenie_A_faza_T"
    unit_of_measurement: "A"
    device_class: current

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Napięcie_V_string1"
    name: "SofarSolarMQTT_Napięcie_V_string1"
    unit_of_measurement: "V"
    device_class: voltage

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Natezenie_A_string1"
    name: "SofarSolarMQTT_Natezenie_A_string1"
    unit_of_measurement: "A"
    device_class: current

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Moc_kW_string1"
    name: "SofarSolarMQTT_Moc_kW_string1"
    unit_of_measurement: "kW"
    device_class: power

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Napięcie_V_string2"
    name: "SofarSolarMQTT_Napięcie_V_string2"
    unit_of_measurement: "V"
    device_class: voltage

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Natezenie_A_string2"
    name: "SofarSolarMQTT_Natezenie_A_string2"
    unit_of_measurement: "A"
    device_class: current

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Moc_kW_string2"
    name: "SofarSolarMQTT_Moc_kW_string2"
    unit_of_measurement: "kW"
    device_class: power

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Wygenerowane_kW_Dzis"
    name: "SofarSolarMQTT_Wygenerowane_kW_Dzis"
    unit_of_measurement: "kWh"
    device_class: energy
    icon: mdi:solar-power

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Suma_wygenerowanych_kW"
    name: "SofarSolarMQTT_Suma_wygenerowanych_kW"
    unit_of_measurement: "kWh"
    device_class: energy
    icon: mdi:solar-power

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Temperatura_Otoczenia"
    name: "SofarSolarMQTT_Temperatura_Otoczenia"
    unit_of_measurement: "°C"
    device_class: temperature

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Temperatura_Radiatora"
    name: "SofarSolarMQTT_Temperatura_Radiatora"
    unit_of_measurement: "°C"
    device_class: temperature

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Temperatura_Inwertera"
    name: "SofarSolarMQTT_Temperatura_Inwertera"
    unit_of_measurement: "°C"
    device_class: temperature

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Rezystancja_izolacji"
    name: "SofarSolarMQTT_Rezystancja_izolacji"
    unit_of_measurement: "ohm"

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Czas_generacji_dzis_minut"
    name: "SofarSolarMQTT_Czas_generacji_dzis_minut"
    unit_of_measurement: "min"

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Calkowity_czas_generowania_min"
    name: "SofarSolarMQTT_Calkowity_czas_generowania_min"
    unit_of_measurement: "min"

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Calkowity_czas_pracy_falownika_min"
    name: "SofarSolarMQTT_Calkowity_czas_pracy_falownika_min"
    unit_of_measurement: "min"
    
  - platform: mqtt
    state_topic: "SofarSolarMQTT/Calkowite_uzycie_energii_z_sieci"
    name: "SofarSolarMQTT_Calkowite_uzycie_energii_z_sieci"
    unit_of_measurement: "kWh"
    device_class: energy
    icon: mdi:transmission-tower-export

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Calkowita_produkcja_do_sieci"
    name: "SofarSolarMQTT_Calkowita_produkcja_do_sieci"
    unit_of_measurement: "kWh"
    device_class: energy
    icon: mdi:transmission-tower-import

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Calkowita_energia_wchodzaca_do_akumulatora"
    name: "SofarSolarMQTT_Calkowita_energia_wchodzaca_do_akumulatora"
    unit_of_measurement: "kWh"
    device_class: energy
    icon: mdi:battery-plus

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Calkowita_energia_wychodzaca_z_akumulatora"
    name: "SofarSolarMQTT_Calkowita_energia_wychodzaca_z_akumulatora"
    unit_of_measurement: "kWh"
    device_class: energy
    icon: mdi:battery-minus
    
  - platform: mqtt
    state_topic: "SofarSolarMQTT/Dzienne_uzycie_energii_z_sieci"
    name: "SofarSolarMQTT_Dzienne_uzycie_energii_z_sieci"
    unit_of_measurement: "kWh"
    device_class: energy
    icon: mdi:transmission-tower-export

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Dzienna_produkcja_do_sieci"
    name: "SofarSolarMQTT_Dzienna_produkcja_do_sieci"
    unit_of_measurement: "kWh"
    device_class: energy
    icon: mdi:transmission-tower-import

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Dzienna_energia_wchodzaca_do_akumulatora"
    name: "SofarSolarMQTT_Dzienna_energia_wchodzaca_do_akumulatora"
    unit_of_measurement: "kWh"
    device_class: energy
    icon: mdi:battery-plus

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Dzienna_energia_wychodzaca_z_akumulatora"
    name: "SofarSolarMQTT_Dzienna_energia_wychodzaca_z_akumulatora"
    unit_of_measurement: "kWh"
    device_class: energy
    icon: mdi:battery-minus

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Akumulator_napiecie"
    name: "SofarSolarMQTT_Akumulator_napiecie"
    unit_of_measurement: "V"
    device_class: energy
    icon: mdi:battery

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Akumulator_prad"
    name: "SofarSolarMQTT_Akumulator_prad"
    unit_of_measurement: "A"
    device_class: energy
    icon: mdi:battery

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Akumulator_moc"
    name: "SofarSolarMQTT_Akumulator_moc"
    unit_of_measurement: "W"
    device_class: energy
    icon: mdi:battery

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Akumulator_temperatura"
    name: "SofarSolarMQTT_Akumulator_temperatura"
    unit_of_measurement: "°C"
    device_class: energy
    icon: mdi:battery-check

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Akumulator_stan_naladowania_SOC"
    name: "SofarSolarMQTT_Akumulator_stan_naladowania_SOC"
    unit_of_measurement: "%"
    device_class: energy
    icon: mdi:battery-high

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Akumulator_stan_zdrowia_SOH"
    name: "SofarSolarMQTT_Akumulator_stan_zdrowia_SOH"
    unit_of_measurement: "%"
    device_class: energy
    icon: mdi:battery-heart-variant

  - platform: mqtt
    state_topic: "SofarSolarMQTT/Akumulator_cykle"
    name: "SofarSolarMQTT_Akumulator_cykle"
    unit_of_measurement: "cykli"
    device_class: energy
    icon: mdi:battery

Nody switch dopasować do swojego falownika.

Flow do node-RED:

HYD 5-20KTL-3PHv2.json (37,9 KB)

doinstalować w Node-RED buffer-parser:

Manage palette-Install-search modules (wyszukać buffer-parser) i zainstalować

W panelu energia ustawić:

wykres z Solarman Integration StephanJoubert z HACS

1

3

i z tego flow
HYD 5-20KTL-3PHv2.json (37,9 KB)

2

4