SofarSolar inverter integration

I just integrated HA (my first addon) with SofarSolar KTL-X inverter, maybe it will work with other brands.

All the brands like SofarSolar, Omnik, iGen, Solarman, Hosola, Goodwe, Solax, Ginlong, Samil may used similar protocol, not confirmed.

Result is here:GitHub - pawelka/hassio-addons: pawelka Hass.io add-ons repository and it’s installed as add-on in hass.io and integrates over mqtt.

My WiFi Logger serial number start with 17xxx and it uses v5 protocol which is not public, so all work is reveres engineering of the protocol.

Edited Dec 2021:
Please find a repo GitHub - pawelka/sofarsolar_esp_rs485_logger where you can find integration by using ESPHome, Tasmota or custom firmware when using custom rs485 logger.

3 Likes

Is it simple to setup HA with SofarSolar? What info are you geting from the inverter?

Please find new way to integrate SofarSolar with HA or other system system via MQTT. The solution base on custom logger. More background in README.md on github https://github.com/pawelka/sofarsolar_esp_rs485_logger

It’s working more than 3 months with my inverter without any issue.

1 Like

Hello Pawelka,
I have a Sofar 4K TLM-G2 solar inverter,
I followed your entire manual with the same components and it seems to be going well.
I’m just having doubts about the integration now with the home assistant, what do I have to do to receive the data.

Please find my HA config for inverter below. I commented some part, because those values wasn’t interested for me and there was no sense to record them (I know that it’s possible to exclude from recorder ;-))

sensor sofar:

  - platform: mqtt
    name: "Inverter status"
    state_topic: "inverter/status"
    value_template: "{{ value_json.status }}"
  - platform: mqtt
    name: "Inverter fault message"
    state_topic: "inverter/status"
    value_template: "{{ value_json.fault_message }}"
  - platform: mqtt
    name: "Inverter DC voltage 1"
    state_topic: "inverter/status"
    unit_of_measurement: 'V'
    value_template: "{{ value_json.dc_voltage_1 }}"
  - platform: mqtt
    name: "Inverter DC current 1"
    state_topic: "inverter/status"
    unit_of_measurement: 'A'
    value_template: "{{ value_json.dc_current_1 }}"
  - platform: mqtt
    name: "Inverter DC voltage 2"
    state_topic: "inverter/status"
    unit_of_measurement: 'V'
    value_template: "{{ value_json.dc_voltage_2 }}"
  - platform: mqtt
    name: "Inverter DC current 2"
    state_topic: "inverter/status"
    unit_of_measurement: 'A'
    value_template: "{{ value_json.dc_current_2 }}"
  - platform: mqtt
    name: "Inverter AC current power"
    state_topic: "inverter/status"
    unit_of_measurement: 'W'
    value_template: "{{ value_json.ac_power }}"
  - platform: mqtt
    name: "Inverter AC current frequency"
    state_topic: "inverter/status"
    unit_of_measurement: 'Hz'
    value_template: "{{ value_json.ac_frequency }}"
  - platform: mqtt
    name: "Inverter AC voltage 1"
    state_topic: "inverter/status"
    unit_of_measurement: 'V'
    value_template: "{{ value_json.ac_voltage_1 }}"
  - platform: mqtt
    name: "Inverter AC current 1"
    state_topic: "inverter/status"
    unit_of_measurement: 'A'
    value_template: "{{ value_json.ac_current_1 }}"
  - platform: mqtt
    name: "Inverter AC voltage 2"
    state_topic: "inverter/status"
    unit_of_measurement: 'V'
    value_template: "{{ value_json.ac_voltage_2 }}"
  - platform: mqtt
    name: "Inverter AC current 2"
    state_topic: "inverter/status"
    unit_of_measurement: 'A'
    value_template: "{{ value_json.ac_current_2 }}"
  - platform: mqtt
    name: "Inverter AC voltage 3"
    state_topic: "inverter/status"
    unit_of_measurement: 'V'
    value_template: "{{ value_json.ac_voltage_3 }}"
  - platform: mqtt
    name: "Inverter AC current 3"
    state_topic: "inverter/status"
    unit_of_measurement: 'A'
    value_template: "{{ value_json.ac_current_3 }}"
  - platform: mqtt
    name: "Inverter energy total"
    state_topic: "inverter/status"
    unit_of_measurement: 'kWh'
    value_template: "{{ value_json.energy_total }}"
  - platform: mqtt
    name: "Inverter running time"
    state_topic: "inverter/status"
    unit_of_measurement: 'h'
    value_template: "{{ value_json.running_time }}"
  - platform: mqtt
    name: "Inverter energy today"
    state_topic: "inverter/status"
    unit_of_measurement: 'kWh'
    value_template: "{{ value_json.energy_today }}"
  - platform: mqtt
    name: "Inverter module temperature"
    state_topic: "inverter/status"
    unit_of_measurement: '°C'
    value_template: "{{ value_json.temperature_module }}"
  - platform: mqtt
    name: "Inverter temperature"
    state_topic: "inverter/status"
    unit_of_measurement: '°C'
    value_template: "{{ value_json.temperature_inverter }}"

#   - platform: mqtt
#     name: "Inverter bus voltage"
#     state_topic: "inverter/status"
#     unit_of_measurement: 'V'
#     value_template: "{{ value_json.bus_voltage }}"
#   - platform: mqtt
#     name: "Inverter vice CPU input voltage 1"
#     state_topic: "inverter/status"
#     unit_of_measurement: 'V'
#     value_template: "{{ value_json.vice_cpu_input_voltage_1 }}"
#   - platform: mqtt
#     name: "Inverter countdown timer"
#     state_topic: "inverter/status"
#     unit_of_measurement: 'h'
#     value_template: "{{ value_json.countdown_timer }}"
#   - platform: mqtt
#     name: "Inverter PV1 insulation resistance"
#     state_topic: "inverter/status"
#     unit_of_measurement: 'ohm'
#     value_template: "{{ value_json.pv1_insulation_resistance }}"
#   - platform: mqtt
#     name: "Inverter PV1 insulation resistance"
#     state_topic: "inverter/status"
#     unit_of_measurement: 'ohm'
#     value_template: "{{ value_json.pv2_insulation_resistance }}"
#   - platform: mqtt
#     name: "Inverter isolation impedance"
#     state_topic: "inverter/status"
#     value_template: "{{ value_json.isolation_impedance }}"
#   - platform: mqtt
#     name: "Inverter temperature"
#     state_topic: "inverter/status"
#     value_template: "{{ value_json.country_code? }}"
#   - platform: mqtt
#     name: "Inverter phase A distribution"
#     state_topic: "inverter/status"
#     value_template: "{{ value_json.phase_a_distribution }}"
#   - platform: mqtt
#     name: "Inverter phase B distribution"
#     state_topic: "inverter/status"
#     value_template: "{{ value_json.phase_b_distribution }}"
#   - platform: mqtt
#     name: "Inverter phase C distribution"
#     state_topic: "inverter/status"
#     value_template: "{{ value_json.phase_c_distribution }}"
1 Like

Hi.
thanks for your help.
Now I’m having problems with mqtt.

New connection from 192.168.1.141 on port 1883.
1601742130: New client connected from 192.168.1.141 as sofarsolar2mqtt (p2, c1, k10, u’peixoto’).
1601742760: Socket error on client auto-35DAA937-4E10-8424-6C1E-11F6898D41CD, disconnecting.

I was wondering if it is necessary to place a folder in custom_components?

You don’t need to copy anything to custom_components. Integration is over MQTT and MQTT sensors.

You can try to call telnet to you sofarsolar_esp_rs485_logger and see logs. I forgot to document this option :wink: May there will be something that will provide hint.

Hi
I’m having difficulties because I’m not very good with this.
you can help me with the commands to see.

thank you

telnet

Hi

Today i tried add-on without luck.
Here is my log:

2020-11-12 13:32:39,550 INFO [FakeDNS] Entry:: dom.query. 60 IN A 192.168.1.12
2020-11-12 13:32:39,569 INFO [TcpProxy] Server started [0.0.0.0:10000]
2020-11-12 13:32:40,088 INFO [MqttClient] Connected with result code 0
2020-11-12 13:32:40,088 INFO [MqttClient] Configuring Home Assistant
2020-11-12 13:32:41,606 INFO [MqttClient] Configuring Home Assistant
2020-11-12 13:49:43,154 INFO [FakeDNS] Response: data1.solarmanpv.com. -> 192.168.1.12
2020-11-12 13:49:56,212 INFO [FakeDNS] Response: data2.solarmanpv.com. -> 192.168.1.12
2020-11-12 14:04:11,309 INFO [FakeDNS] Response: data1.solarmanpv.com. -> 192.168.1.12
2020-11-12 14:04:24,343 INFO [FakeDNS] Response: data2.solarmanpv.com. -> 192.168.1.12

And result in device details:

solarman pv still works as before.
Should i see more logs?

It looks like that inverter doesn’t connect to addone. Please verify if your inverter see 192.168.1.12:10000. If it’s not this problem, please add DEBUG log in configuration for more logs.

Cloud/app data should also work if you are connecting to addone.

Czy udało się rozwiązać problem?
Ja mam podobny. Screen z loga


screen z ustawień config

Proszę o pomoc

Please turn on debug logs and provides them from start. Change log_level from INFO to DEBUG in configuration and restart add-on.

Dziękuje za zainteresowanie.
Poniżej zamieszczam log z DEBUG. Hasło jest zagwiazdkowane, normalnie jest prawidłowe hasło podane.

> 2020-12-26 17:46:21,783 DEBUG [Inverter] Config: {'fakedns': {'initial_domain': u'data2.solarmanpv.com',
>              'target_ip': u'192.168.0.95'},
>  'inverter': {'idle_time': 660,
>               'manufacturer': u'SofarSolar',
>               'model': u'SF4ES008',
>               'name': u'Inverter',
>               'sn': u'SF4ES008L3S279'},
>  'log': {'log_filename': '', 'log_level': u'DEBUG'},
>  'mqtt': {'mqtt_enabled': 'true',
>           'mqtt_host': u'192.168.0.95',
>           'mqtt_password': u'*********',
>           'mqtt_port': 1883,
>           'mqtt_qos': 0,
>           'mqtt_retain': False,
>           'mqtt_topic': u'SofarSolar',
>           'mqtt_username': u'HA-dom'},
>  'proxy': {'bind_ip': '0.0.0.0', 'bind_port': '10000', 'max_connection': '1'}}
> 2020-12-26 17:46:21,783 INFO [FakeDNS] Entry:: dom.query. 60 IN A 192.168.0.95
> 2020-12-26 17:46:21,796 INFO [TcpProxy] Server started [0.0.0.0:10000]
> 2020-12-26 17:46:21,796 INFO [MqttClient] Connected with result code 0
> 2020-12-26 17:46:21,796 INFO [MqttClient] Configuring Home Assistant
> 2020-12-26 17:46:21,797 DEBUG [MqttClient] Sensor config message to HA: {"unit_of_measurement": "W", "name": "SF4ES008L3S279_power", "value_template": "{{ value_json.power }}", "state_topic": "SofarSolar/SF4ES008L3S279/state", "device": {"model": "SF4ES008", "identifiers": "SF4ES008L3S279", "name": "Inverter", "manufacturer": "SofarSolar"}, "availability_topic": "SofarSolar/SF4ES008L3S279/availability", "unique_id": "SF4ES008L3S279_power"}
> 2020-12-26 17:46:21,898 DEBUG [MqttClient] Sensor config message to HA: {"unit_of_measurement": "°C", "name": "SF4ES008L3S279_temp", "value_template": "{{ value_json.temp }}", "state_topic": "SofarSolar/SF4ES008L3S279/state", "device": {"model": "SF4ES008", "identifiers": "SF4ES008L3S279", "name": "Inverter", "manufacturer": "SofarSolar"}, "availability_topic": "SofarSolar/SF4ES008L3S279/availability", "unique_id": "SF4ES008L3S279_temp"}
> 2020-12-26 17:46:22,000 DEBUG [MqttClient] Sensor config message to HA: {"unit_of_measurement": "kWh", "name": "SF4ES008L3S279_e_total", "value_template": "{{ value_json.e_total }}", "state_topic": "SofarSolar/SF4ES008L3S279/state", "device": {"model": "SF4ES008", "identifiers": "SF4ES008L3S279", "name": "Inverter", "manufacturer": "SofarSolar"}, "unique_id": "SF4ES008L3S279_e_total"}
> 2020-12-26 17:46:22,102 DEBUG [MqttClient] Sensor config message to HA: {"unit_of_measurement": "kWh", "name": "SF4ES008L3S279_e_today", "value_template": "{{ value_json.e_today }}", "state_topic": "SofarSolar/SF4ES008L3S279/state", "device": {"model": "SF4ES008", "identifiers": "SF4ES008L3S279", "name": "Inverter", "manufacturer": "SofarSolar"}, "unique_id": "SF4ES008L3S279_e_today"}
> 2020-12-26 17:46:22,204 DEBUG [MqttClient] Sensor config message to HA: {"unit_of_measurement": "A", "name": "SF4ES008L3S279_i_pv2", "value_template": "{{ value_json.i_pv2 }}", "state_topic": "SofarSolar/SF4ES008L3S279/state", "device": {"model": "SF4ES008", "identifiers": "SF4ES008L3S279", "name": "Inverter", "manufacturer": "SofarSolar"}, "availability_topic": "SofarSolar/SF4ES008L3S279/availability", "unique_id": "SF4ES008L3S279_i_pv2"}
> 2020-12-26 17:46:22,306 DEBUG [MqttClient] Sensor config message to HA: {"unit_of_measurement": "A", "name": "SF4ES008L3S279_i_pv1", "value_template": "{{ value_json.i_pv1 }}", "state_topic": "SofarSolar/SF4ES008L3S279/state", "device": {"model": "SF4ES008", "identifiers": "SF4ES008L3S279", "name": "Inverter", "manufacturer": "SofarSolar"}, "availability_topic": "SofarSolar/SF4ES008L3S279/availability", "unique_id": "SF4ES008L3S279_i_pv1"}
> 2020-12-26 17:46:22,408 DEBUG [MqttClient] Sensor config message to HA: {"unit_of_measurement": "V", "name": "SF4ES008L3S279_v_ac2", "value_template": "{{ value_json.v_ac2 }}", "state_topic": "SofarSolar/SF4ES008L3S279/state", "device": {"model": "SF4ES008", "identifiers": "SF4ES008L3S279", "name": "Inverter", "manufacturer": "SofarSolar"}, "availability_topic": "SofarSolar/SF4ES008L3S279/availability", "unique_id": "SF4ES008L3S279_v_ac2"}
> 2020-12-26 17:46:22,510 DEBUG [MqttClient] Sensor config message to HA: {"unit_of_measurement": "V", "name": "SF4ES008L3S279_v_ac3", "value_template": "{{ value_json.v_ac3 }}", "state_topic": "SofarSolar/SF4ES008L3S279/state", "device": {"model": "SF4ES008", "identifiers": "SF4ES008L3S279", "name": "Inverter", "manufacturer": "SofarSolar"}, "availability_topic": "SofarSolar/SF4ES008L3S279/availability", "unique_id": "SF4ES008L3S279_v_ac3"}
> 2020-12-26 17:46:22,612 DEBUG [MqttClient] Sensor config message to HA: {"unit_of_measurement": "V", "name": "SF4ES008L3S279_v_ac1", "value_template": "{{ value_json.v_ac1 }}", "state_topic": "SofarSolar/SF4ES008L3S279/state", "device": {"model": "SF4ES008", "identifiers": "SF4ES008L3S279", "name": "Inverter", "manufacturer": "SofarSolar"}, "availability_topic": "SofarSolar/SF4ES008L3S279/availability", "unique_id": "SF4ES008L3S279_v_ac1"}
> 2020-12-26 17:46:22,714 DEBUG [MqttClient] Sensor config message to HA: {"unit_of_measurement": "A", "name": "SF4ES008L3S279_i_ac1", "value_template": "{{ value_json.i_ac1 }}", "state_topic": "SofarSolar/SF4ES008L3S279/state", "device": {"model": "SF4ES008", "identifiers": "SF4ES008L3S279", "name": "Inverter", "manufacturer": "SofarSolar"}, "availability_topic": "SofarSolar/SF4ES008L3S279/availability", "unique_id": "SF4ES008L3S279_i_ac1"}
> 2020-12-26 17:46:22,816 DEBUG [MqttClient] Sensor config message to HA: {"unit_of_measurement": "A", "name": "SF4ES008L3S279_i_ac3", "value_template": "{{ value_json.i_ac3 }}", "state_topic": "SofarSolar/SF4ES008L3S279/state", "device": {"model": "SF4ES008", "identifiers": "SF4ES008L3S279", "name": "Inverter", "manufacturer": "SofarSolar"}, "availability_topic": "SofarSolar/SF4ES008L3S279/availability", "unique_id": "SF4ES008L3S279_i_ac3"}
> 2020-12-26 17:46:22,918 DEBUG [MqttClient] Sensor config message to HA: {"unit_of_measurement": "A", "name": "SF4ES008L3S279_i_ac2", "value_template": "{{ value_json.i_ac2 }}", "state_topic": "SofarSolar/SF4ES008L3S279/state", "device": {"model": "SF4ES008", "identifiers": "SF4ES008L3S279", "name": "Inverter", "manufacturer": "SofarSolar"}, "availability_topic": "SofarSolar/SF4ES008L3S279/availability", "unique_id": "SF4ES008L3S279_i_ac2"}
> 2020-12-26 17:46:23,020 DEBUG [MqttClient] Sensor config message to HA: {"unit_of_measurement": "V", "name": "SF4ES008L3S279_v_pv1", "value_template": "{{ value_json.v_pv1 }}", "state_topic": "SofarSolar/SF4ES008L3S279/state", "device": {"model": "SF4ES008", "identifiers": "SF4ES008L3S279", "name": "Inverter", "manufacturer": "SofarSolar"}, "availability_topic": "SofarSolar/SF4ES008L3S279/availability", "unique_id": "SF4ES008L3S279_v_pv1"}
> 2020-12-26 17:46:23,122 DEBUG [MqttClient] Sensor config message to HA: {"unit_of_measurement": "V", "name": "SF4ES008L3S279_v_pv2", "value_template": "{{ value_json.v_pv2 }}", "state_topic": "SofarSolar/SF4ES008L3S279/state", "device": {"model": "SF4ES008", "identifiers": "SF4ES008L3S279", "name": "Inverter", "manufacturer": "SofarSolar"}, "availability_topic": "SofarSolar/SF4ES008L3S279/availability", "unique_id": "SF4ES008L3S279_v_pv2"}
> 2020-12-26 17:46:23,224 DEBUG [MqttClient] Sensor config message to HA: {"unit_of_measurement": "Hz", "name": "SF4ES008L3S279_f_ac", "value_template": "{{ value_json.f_ac }}", "state_topic": "SofarSolar/SF4ES008L3S279/state", "device": {"model": "SF4ES008", "identifiers": "SF4ES008L3S279", "name": "Inverter", "manufacturer": "SofarSolar"}, "availability_topic": "SofarSolar/SF4ES008L3S279/availability", "unique_id": "SF4ES008L3S279_f_ac"}
> 2020-12-26 17:46:23,325 INFO [MqttClient] Configuring Home Assistant
> 2020-12-26 17:46:23,327 DEBUG [MqttClient] Sensor config message to HA: {"unit_of_measurement": "W", "name": "power", "value_template": "{{ value_json.power }}", "state_topic": "SofarSolar/SF4ES008L3S279/state", "device": {"model": "SF4ES008", "identifiers": "SF4ES008L3S279", "name": "Inverter", "manufacturer": "SofarSolar"}, "availability_topic": "SofarSolar/SF4ES008L3S279/availability", "unique_id": "SF4ES008L3S279_power"}
> 2020-12-26 17:46:23,429 DEBUG [MqttClient] Sensor config message to HA: {"unit_of_measurement": "°C", "name": "temp", "value_template": "{{ value_json.temp }}", "state_topic": "SofarSolar/SF4ES008L3S279/state", "device": {"model": "SF4ES008", "identifiers": "SF4ES008L3S279", "name": "Inverter", "manufacturer": "SofarSolar"}, "availability_topic": "SofarSolar/SF4ES008L3S279/availability", "unique_id": "SF4ES008L3S279_temp"}
> 2020-12-26 17:46:23,531 DEBUG [MqttClient] Sensor config message to HA: {"unit_of_measurement": "kWh", "name": "e_total", "value_template": "{{ value_json.e_total }}", "state_topic": "SofarSolar/SF4ES008L3S279/state", "device": {"model": "SF4ES008", "identifiers": "SF4ES008L3S279", "name": "Inverter", "manufacturer": "SofarSolar"}, "unique_id": "SF4ES008L3S279_e_total"}
> 2020-12-26 17:46:23,633 DEBUG [MqttClient] Sensor config message to HA: {"unit_of_measurement": "kWh", "name": "e_today", "value_template": "{{ value_json.e_today }}", "state_topic": "SofarSolar/SF4ES008L3S279/state", "device": {"model": "SF4ES008", "identifiers": "SF4ES008L3S279", "name": "Inverter", "manufacturer": "SofarSolar"}, "unique_id": "SF4ES008L3S279_e_today"}
> 2020-12-26 17:46:23,735 DEBUG [MqttClient] Sensor config message to HA: {"unit_of_measurement": "A", "name": "i_pv2", "value_template": "{{ value_json.i_pv2 }}", "state_topic": "SofarSolar/SF4ES008L3S279/state", "device": {"model": "SF4ES008", "identifiers": "SF4ES008L3S279", "name": "Inverter", "manufacturer": "SofarSolar"}, "availability_topic": "SofarSolar/SF4ES008L3S279/availability", "unique_id": "SF4ES008L3S279_i_pv2"}
> 2020-12-26 17:46:23,838 DEBUG [MqttClient] Sensor config message to HA: {"unit_of_measurement": "A", "name": "i_pv1", "value_template": "{{ value_json.i_pv1 }}", "state_topic": "SofarSolar/SF4ES008L3S279/state", "device": {"model": "SF4ES008", "identifiers": "SF4ES008L3S279", "name": "Inverter", "manufacturer": "SofarSolar"}, "availability_topic": "SofarSolar/SF4ES008L3S279/availability", "unique_id": "SF4ES008L3S279_i_pv1"}
> 2020-12-26 17:46:23,939 DEBUG [MqttClient] Sensor config message to HA: {"unit_of_measurement": "V", "name": "v_ac2", "value_template": "{{ value_json.v_ac2 }}", "state_topic": "SofarSolar/SF4ES008L3S279/state", "device": {"model": "SF4ES008", "identifiers": "SF4ES008L3S279", "name": "Inverter", "manufacturer": "SofarSolar"}, "availability_topic": "SofarSolar/SF4ES008L3S279/availability", "unique_id": "SF4ES008L3S279_v_ac2"}
> 2020-12-26 17:46:24,041 DEBUG [MqttClient] Sensor config message to HA: {"unit_of_measurement": "V", "name": "v_ac3", "value_template": "{{ value_json.v_ac3 }}", "state_topic": "SofarSolar/SF4ES008L3S279/state", "device": {"model": "SF4ES008", "identifiers": "SF4ES008L3S279", "name": "Inverter", "manufacturer": "SofarSolar"}, "availability_topic": "SofarSolar/SF4ES008L3S279/availability", "unique_id": "SF4ES008L3S279_v_ac3"}
> 2020-12-26 17:46:24,143 DEBUG [MqttClient] Sensor config message to HA: {"unit_of_measurement": "V", "name": "v_ac1", "value_template": "{{ value_json.v_ac1 }}", "state_topic": "SofarSolar/SF4ES008L3S279/state", "device": {"model": "SF4ES008", "identifiers": "SF4ES008L3S279", "name": "Inverter", "manufacturer": "SofarSolar"}, "availability_topic": "SofarSolar/SF4ES008L3S279/availability", "unique_id": "SF4ES008L3S279_v_ac1"}
> 2020-12-26 17:46:24,244 DEBUG [MqttClient] Sensor config message to HA: {"unit_of_measurement": "A", "name": "i_ac1", "value_template": "{{ value_json.i_ac1 }}", "state_topic": "SofarSolar/SF4ES008L3S279/state", "device": {"model": "SF4ES008", "identifiers": "SF4ES008L3S279", "name": "Inverter", "manufacturer": "SofarSolar"}, "availability_topic": "SofarSolar/SF4ES008L3S279/availability", "unique_id": "SF4ES008L3S279_i_ac1"}
> 2020-12-26 17:46:24,346 DEBUG [MqttClient] Sensor config message to HA: {"unit_of_measurement": "A", "name": "i_ac3", "value_template": "{{ value_json.i_ac3 }}", "state_topic": "SofarSolar/SF4ES008L3S279/state", "device": {"model": "SF4ES008", "identifiers": "SF4ES008L3S279", "name": "Inverter", "manufacturer": "SofarSolar"}, "availability_topic": "SofarSolar/SF4ES008L3S279/availability", "unique_id": "SF4ES008L3S279_i_ac3"}
> 2020-12-26 17:46:24,448 DEBUG [MqttClient] Sensor config message to HA: {"unit_of_measurement": "A", "name": "i_ac2", "value_template": "{{ value_json.i_ac2 }}", "state_topic": "SofarSolar/SF4ES008L3S279/state", "device": {"model": "SF4ES008", "identifiers": "SF4ES008L3S279", "name": "Inverter", "manufacturer": "SofarSolar"}, "availability_topic": "SofarSolar/SF4ES008L3S279/availability", "unique_id": "SF4ES008L3S279_i_ac2"}
> 2020-12-26 17:46:24,549 DEBUG [MqttClient] Sensor config message to HA: {"unit_of_measurement": "V", "name": "v_pv1", "value_template": "{{ value_json.v_pv1 }}", "state_topic": "SofarSolar/SF4ES008L3S279/state", "device": {"model": "SF4ES008", "identifiers": "SF4ES008L3S279", "name": "Inverter", "manufacturer": "SofarSolar"}, "availability_topic": "SofarSolar/SF4ES008L3S279/availability", "unique_id": "SF4ES008L3S279_v_pv1"}
> 2020-12-26 17:46:24,651 DEBUG [MqttClient] Sensor config message to HA: {"unit_of_measurement": "V", "name": "v_pv2", "value_template": "{{ value_json.v_pv2 }}", "state_topic": "SofarSolar/SF4ES008L3S279/state", "device": {"model": "SF4ES008", "identifiers": "SF4ES008L3S279", "name": "Inverter", "manufacturer": "SofarSolar"}, "availability_topic": "SofarSolar/SF4ES008L3S279/availability", "unique_id": "SF4ES008L3S279_v_pv2"}
> 2020-12-26 17:46:24,753 DEBUG [MqttClient] Sensor config message to HA: {"unit_of_measurement": "Hz", "name": "f_ac", "value_template": "{{ value_json.f_ac }}", "state_topic": "SofarSolar/SF4ES008L3S279/state", "device": {"model": "SF4ES008", "identifiers": "SF4ES008L3S279", "name": "Inverter", "manufacturer": "SofarSolar"}, "availability_topic": "SofarSolar/SF4ES008L3S279/availability", "unique_id": "SF4ES008L3S279_f_ac"}```

Czy sensory w HA się skonfigurowany?

Ogólnie to przydałoby się trochę logów z debugu jak jest słońce, na teraz to tylko konfiguracje mqtt możemy zweryfikować.

Tak, zgadza się. Falownik teraz jest wyłączony. Jutro jak się włączy to podeśle logi. Senosory się skonfigurowały. Poniżej fragment, wydaje się że jest OK.

Słońce błysnęło. Mam już logi przy działającym falowniku. Stan encji mam nadal unavailable

2020-12-27 08:05:59,454 DEBUG [TcpProxy] 172.30.33.3:10000 <<< 172.30.33.3:37920 [23]
2020-12-27 08:05:59,455 DEBUG a5:0a:00:10:12:be:05:ae:e1:bc:66:01:01:57:32:e8:5f:3c:00:00:00:ae:15
2020-12-27 08:06:02,401 DEBUG [TcpProxy] 172.30.33.3:10000 >>> 172.30.33.3:37920 [164]
2020-12-27 08:06:02,403 DEBUG a5:97:00:10:42:be:06:ae:e1:bc:66:81:01:27:09:8a:5b:00:7d:00:00:00:00:00:00:00:01:00:e5:00:00:00:53:46:34:45:53:30:30:38:4c:33:53:32:37:39:20:20:b8:01:18:11:7b:10:01:00:01:00:09:00:09:00:09:00:87:09:83:09:87:09:8a:13:78:00:00:00:01:00:00:00:50:6e:00:00:70:06:00:00:02:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:56:32:31:30:56:31:30:30:1b:00:e3:19:23:11:7d:10:3c:00:01:00:f2:04:46:0a:5e:08:0c:00:00:00:00:00:07:00:d5:03:e4:03:f8:03:00:00:00:00:00:00:00:00:14:0c:1b:08:03:31:05:00:06:00:6b:15
2020-12-27 08:06:02,406 DEBUG [Inverter] Publishing to mqtt: {'e_today': 0.01,
 'e_total': 2824.0,
 'f_ac': 50.02,
 'i_ac1': 0.9,
 'i_ac2': 0.9,
 'i_ac3': 0.9,
 'i_pv1': 0.1,
 'i_pv2': 0.1,
 'id': u'SF4ES008L3S279',
 'power': 120,
 'temp': 44.0,
 'v_ac1': 243.9,
 'v_ac2': 243.5,
 'v_ac3': 243.9,
 'v_pv1': 437.6,
 'v_pv2': 421.9}
2020-12-27 08:06:02,589 DEBUG [TcpProxy] 172.30.33.3:10000 <<< 172.30.33.3:37920 [23]
2020-12-27 08:06:02,590 DEBUG a5:0a:00:10:12:bf:06:ae:e1:bc:66:81:01:5a:32:e8:5f:3c:00:00:00:33:15
2020-12-27 08:10:22,773 DEBUG [TcpProxy] 172.30.33.3:10000 >>> 172.30.33.3:37920 [41]
2020-12-27 08:10:22,774 DEBUG a5:1c:00:10:48:bf:07:ae:e1:bc:66:01:1f:8b:5b:00:94:01:00:00:3f:a8:8c:5f:01:01:0c:8e:89:5b:00:00:00:00:00:00:00:00:00:d8:15
2020-12-27 08:10:22,962 DEBUG [TcpProxy] 172.30.33.3:10000 <<< 172.30.33.3:37920 [23]
2020-12-27 08:10:22,963 DEBUG a5:0a:00:10:18:c0:07:ae:e1:bc:66:01:01:5e:33:e8:5f:3c:00:00:00:c0:15
2020-12-27 08:10:24,103 DEBUG [TcpProxy] 172.30.33.3:10000 >>> 172.30.33.3:37920 [41]
2020-12-27 08:10:24,103 DEBUG a5:1c:00:10:48:c0:08:ae:e1:bc:66:01:20:8b:5b:00:95:01:00:00:3f:a8:8c:5f:01:01:0c:8e:89:5b:00:00:00:00:00:00:00:00:00:dc:15
2020-12-27 08:10:24,305 DEBUG [TcpProxy] 172.30.33.3:10000 <<< 172.30.33.3:37920 [23]
2020-12-27 08:10:24,306 DEBUG a5:0a:00:10:18:c1:08:ae:e1:bc:66:01:01:60:33:e8:5f:3c:00:00:00:c4:15
2020-12-27 08:10:25,442 DEBUG [TcpProxy] 172.30.33.3:10000 >>> 172.30.33.3:37920 [41]
2020-12-27 08:10:25,443 DEBUG a5:1c:00:10:48:c1:09:ae:e1:bc:66:01:22:8b:5b:00:97:01:00:00:40:a8:8c:5f:01:01:0c:8e:89:5b:00:00:00:00:00:00:00:00:00:e3:15
2020-12-27 08:10:25,623 DEBUG [TcpProxy] 172.30.33.3:10000 <<< 172.30.33.3:37920 [23]
2020-12-27 08:10:25,624 DEBUG a5:0a:00:10:18:c2:09:ae:e1:bc:66:01:01:61:33:e8:5f:3c:00:00:00:c7:15
2020-12-27 08:10:26,762 DEBUG [TcpProxy] 172.30.33.3:10000 >>> 172.30.33.3:37920 [41]
2020-12-27 08:10:26,763 DEBUG a5:1c:00:10:48:c2:0a:ae:e1:bc:66:01:23:8b:5b:00:98:01:00:00:3f:a8:8c:5f:01:01:0c:8e:89:5b:00:00:00:00:00:00:00:00:00:e6:15
2020-12-27 08:10:26,965 DEBUG [TcpProxy] 172.30.33.3:10000 <<< 172.30.33.3:37920 [23]
2020-12-27 08:10:26,966 DEBUG a5:0a:00:10:18:c3:0a:ae:e1:bc:66:01:01:62:33:e8:5f:3c:00:00:00:ca:15
2020-12-27 08:10:28,103 DEBUG [TcpProxy] 172.30.33.3:10000 >>> 172.30.33.3:37920 [41]
2020-12-27 08:10:28,104 DEBUG a5:1c:00:10:48:c3:0b:ae:e1:bc:66:01:24:8b:5b:00:99:01:00:00:3f:a8:8c:5f:01:01:0c:8e:89:5b:00:00:00:00:00:00:00:00:00:ea:15
2020-12-27 08:10:28,308 DEBUG [TcpProxy] 172.30.33.3:10000 <<< 172.30.33.3:37920 [23]
2020-12-27 08:10:28,309 DEBUG a5:0a:00:10:18:c4:0b:ae:e1:bc:66:01:01:64:33:e8:5f:3c:00:00:00:ce:15
2020-12-27 08:10:29,446 DEBUG [TcpProxy] 172.30.33.3:10000 >>> 172.30.33.3:37920 [41]
2020-12-27 08:10:29,446 DEBUG a5:1c:00:10:48:c4:0c:ae:e1:bc:66:01:26:8b:5b:00:9b:01:00:00:40:a8:8c:5f:01:01:0c:8e:89:5b:00:00:00:00:00:00:00:00:00:f1:15
2020-12-27 08:10:29,648 DEBUG [TcpProxy] 172.30.33.3:10000 <<< 172.30.33.3:37920 [23]
2020-12-27 08:10:29,649 DEBUG a5:0a:00:10:18:c5:0c:ae:e1:bc:66:01:01:65:33:e8:5f:3c:00:00:00:d1:15
2020-12-27 08:10:30,786 DEBUG [TcpProxy] 172.30.33.3:10000 >>> 172.30.33.3:37920 [41]
2020-12-27 08:10:30,787 DEBUG a5:1c:00:10:48:c5:0d:ae:e1:bc:66:01:27:8b:5b:00:9c:01:00:00:3f:a8:8c:5f:01:01:0c:8e:89:5b:00:00:00:00:00:00:00:00:00:f4:15
2020-12-27 08:10:30,968 DEBUG [TcpProxy] 172.30.33.3:10000 <<< 172.30.33.3:37920 [23]
2020-12-27 08:10:30,969 DEBUG a5:0a:00:10:18:c6:0d:ae:e1:bc:66:01:01:66:33:e8:5f:3c:00:00:00:d4:15
2020-12-27 08:10:32,108 DEBUG [TcpProxy] 172.30.33.3:10000 >>> 172.30.33.3:37920 [41]
2020-12-27 08:10:32,108 DEBUG a5:1c:00:10:48:c6:0e:ae:e1:bc:66:01:28:8b:5b:00:9d:01:00:00:3f:a8:8c:5f:01:01:0c:8e:89:5b:00:00:00:00:00:00:00:00:00:f8:15
2020-12-27 08:10:34,365 DEBUG [TcpProxy] 172.30.33.3:10000 <<< 172.30.33.3:37920 [23]
2020-12-27 08:10:34,366 DEBUG a5:0a:00:10:18:c7:0e:ae:e1:bc:66:01:01:6a:33:e8:5f:3c:00:00:00:da:15
2020-12-27 08:10:35,510 DEBUG [TcpProxy] 172.30.33.3:10000 >>> 172.30.33.3:37920 [41]
2020-12-27 08:10:35,511 DEBUG a5:1c:00:10:48:c7:0f:ae:e1:bc:66:01:2c:8b:5b:00:a1:01:00:00:40:a8:8c:5f:01:01:0c:8e:89:5b:00:00:00:00:00:00:00:00:00:03:15
2020-12-27 08:10:35,737 DEBUG [TcpProxy] 172.30.33.3:10000 <<< 172.30.33.3:37920 [23]
2020-12-27 08:10:35,738 DEBUG a5:0a:00:10:18:c8:0f:ae:e1:bc:66:01:01:6b:33:e8:5f:3c:00:00:00:dd:15
2020-12-27 08:10:36,881 DEBUG [TcpProxy] 172.30.33.3:10000 >>> 172.30.33.3:37920 [60]
2020-12-27 08:10:36,882 DEBUG a5:2f:00:10:43:c8:10:ae:e1:bc:66:81:16:8a:5b:00:8a:00:00:00:3f:a8:8c:5f:00:00:52:54:2d:64:6f:6d:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:58:01:4f:15
2020-12-27 08:10:37,075 DEBUG [TcpProxy] 172.30.33.3:10000 <<< 172.30.33.3:37920 [23]
2020-12-27 08:10:37,076 DEBUG a5:0a:00:10:13:c9:10:ae:e1:bc:66:81:01:6c:33:e8:5f:3c:00:00:00:5b:15
2020-12-27 08:10:38,214 DEBUG [TcpProxy] 172.30.33.3:10000 >>> 172.30.33.3:37920 [60]
2020-12-27 08:10:38,215 DEBUG a5:2f:00:10:43:c9:11:ae:e1:bc:66:81:15:8a:5b:00:89:00:00:00:00:00:00:00:40:00:52:54:2d:64:6f:6d:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:58:01:bd:15
2020-12-27 08:10:38,403 DEBUG [TcpProxy] 172.30.33.3:10000 <<< 172.30.33.3:37920 [23]
2020-12-27 08:10:38,404 DEBUG a5:0a:00:10:13:ca:11:ae:e1:bc:66:81:01:6e:33:e8:5f:3c:00:00:00:5f:15
2020-12-27 08:10:39,549 DEBUG [TcpProxy] 172.30.33.3:10000 >>> 172.30.33.3:37920 [60]
2020-12-27 08:10:39,550 DEBUG a5:2f:00:10:43:ca:12:ae:e1:bc:66:81:09:8a:5b:00:7d:00:00:00:00:00:00:00:50:00:52:54:2d:64:6f:6d:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:52:01:b1:15
2020-12-27 08:10:39,743 DEBUG [TcpProxy] 172.30.33.3:10000 <<< 172.30.33.3:37920 [23]
2020-12-27 08:10:39,744 DEBUG a5:0a:00:10:13:cb:12:ae:e1:bc:66:81:01:6f:33:e8:5f:3c:00:00:00:62:15
2020-12-27 08:10:40,882 DEBUG [TcpProxy] 172.30.33.3:10000 >>> 172.30.33.3:37920 [60]
2020-12-27 08:10:40,883 DEBUG a5:2f:00:10:43:cb:13:ae:e1:bc:66:81:09:8a:5b:00:7d:00:00:00:00:00:00:00:40:00:52:54:2d:64:6f:6d:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:52:01:a3:15
2020-12-27 08:10:41,119 DEBUG [TcpProxy] 172.30.33.3:10000 <<< 172.30.33.3:37920 [23]
2020-12-27 08:10:41,119 DEBUG a5:0a:00:10:13:cc:13:ae:e1:bc:66:81:01:71:33:e8:5f:3c:00:00:00:66:15
2020-12-27 08:10:42,269 DEBUG [TcpProxy] 172.30.33.3:10000 >>> 172.30.33.3:37920 [73]
2020-12-27 08:10:42,270 DEBUG a5:3c:00:10:48:cc:14:ae:e1:bc:66:01:32:8b:5b:00:a7:01:00:00:40:a8:8c:5f:01:05:2c:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:bf:15
2020-12-27 08:10:44,183 DEBUG [TcpProxy] 172.30.33.3:10000 <<< 172.30.33.3:37920 [23]
2020-12-27 08:10:44,184 DEBUG a5:0a:00:10:18:cd:14:ae:e1:bc:66:01:01:74:33:e8:5f:3c:00:00:00:f0:15
2020-12-27 08:10:48,805 DEBUG [TcpProxy] 172.30.33.3:10000 >>> 172.30.33.3:37920 [14]
2020-12-27 08:10:48,805 DEBUG a5:01:00:10:47:cd:15:ae:e1:bc:66:00:eb:15
2020-12-27 08:10:48,989 DEBUG [TcpProxy] 172.30.33.3:10000 <<< 172.30.33.3:37920 [23]
2020-12-27 08:10:48,990 DEBUG a5:0a:00:10:17:ce:15:ae:e1:bc:66:00:01:78:33:e8:5f:3c:00:00:00:f4:15
2020-12-27 08:12:48,405 DEBUG [TcpProxy] 172.30.33.3:10000 >>> 172.30.33.3:37920 [14]
2020-12-27 08:12:48,406 DEBUG a5:01:00:10:47:ce:16:ae:e1:bc:66:00:ed:15
2020-12-27 08:12:48,587 DEBUG [TcpProxy] 172.30.33.3:10000 <<< 172.30.33.3:37920 [23]
2020-12-27 08:12:48,588 DEBUG a5:0a:00:10:17:cf:16:ae:e1:bc:66:00:01:f0:33:e8:5f:3c:00:00:00:6e:15````

Proszę zrestaruj addone i załącz logi od startu do pierwszej wiadomości z danymi oraz screenshot stanów z sensorow i device (narzędzia deweloperskie -> Stany -> filtr “SofarSolar”). Addone korzysta z feature availability tzn. Czy device jest on czy off. Wygląda na to że stan jest wysyłany ale brakuje informacji o dostępności urządzenia. Ja osobiście korzystam z innego rozwiązania do zbierania danych rs485 i od 7 miesięcy z addone nie korzystam może coś się HA się zmieniło i muszę dostosować plug-in, najwyżej wywale dostępność urządzenia :wink: A może w logach znajdę przyczynę.

zresetowałem Pi. Teraz nie mogę uruchomić dodatku. Wczoraj zainstalowałem ESPHome, nie wiem czy to mogło wpłynąć na przejęcie tego portu.


Coś siedzi na porcie 10000.

To zamiast restart, zrób stop i po chwiili start, wychodzi na to, że port się nie zamyka zbyt szybko (możliwy jakiś błąd w addone).

Problem w tym że teraz nie mogę wcale wystartować dodatku. Po kliknięciu START mieli, mieli i wyświetla komunikat ze screena powyżej że port 10000 jest w użyciu. Automatycznie przy starcie systemu również się nie uruchamia.