kellerza / sunsynk

Deye/Sunsynk Inverter Python library and Home Assistant OS Addon
https://kellerza.github.io/sunsynk/
MIT License
223 stars 92 forks source link

Lots of errors #239

Closed gohigher14 closed 7 months ago

gohigher14 commented 8 months ago

Issue related to

Sunsynk / mbusd Home Assistant Add-On

Describe the issue/bug

Lots of errors in the log files.

Your environment

You configuration

DRIVER: pymodbus
INVERTERS:
  - SERIAL_NR: ""
    HA_PREFIX: SS
    MODBUS_ID: 1
    DONGLE_SERIAL_NUMBER: ""
    PORT: tcp://192.168.129.167:8899
  - SERIAL_NR: ""
    HA_PREFIX: SS
    MODBUS_ID: 1
    DONGLE_SERIAL_NUMBER: ""
    PORT: tcp://192.168.129.168:8899
SENSOR_DEFINITIONS: single-phase
SENSORS:
  - energy_management
  - power_flow_card
  - pv2_power
SENSORS_FIRST_INVERTER:
  - settings
MANUFACTURER: Sunsynk
READ_ALLOW_GAP: 2
READ_SENSORS_BATCH_SIZE: 20
SCHEDULES:
  - KEY: W
    READ_EVERY: 15
    REPORT_EVERY: 60
    CHANGE_ANY: false
    CHANGE_BY: 80
    CHANGE_PERCENT: 0
NUMBER_ENTITY_MODE: auto
MQTT_HOST: core-mosquitto
MQTT_PORT: 1883
MQTT_USERNAME: .........
MQTT_PASSWORD: .........

Logs


+-----+-------------------------------------------------------------------------------+
09:11:47 INFO    Report every (inverter >1)
+-----+-------------------------------------------------------------------------------+
|  s  |                                    Sensors                                    |
+-----+-------------------------------------------------------------------------------+
|  60 |       grid_ct_power, aux_power, essential_power, grid_power, pv1_power,       |
|     |         non_essential_power, pv2_power, battery_power, inverter_power         |
| 300 |   battery_low_capacity, pv1_current, battery_current, day_battery_discharge,  |
|     | day_pv_energy, day_battery_charge, use_timer, overall_state, battery_voltage, |
|     |       battery_soc, inverter_current, grid_frequency, total_grid_import,       |
|     |      grid_connected, total_battery_charge, priority_load, load_frequency,     |
|     |         total_grid_export, grid_voltage, day_grid_export, pv1_voltage,        |
|     |   total_battery_discharge, total_pv_energy, day_grid_import, day_load_energy  |
+-----+-------------------------------------------------------------------------------+
09:13:01 ERROR   OSError in read_ss: timeout reading 1 registers from 150 poll_need_to_read
09:13:03 ERROR   OSError in read_ss: timeout reading 1 registers from 219 poll_need_to_read
09:14:26 ERROR   OSError in read_ss: timeout reading 1 registers from 59 poll_need_to_read
09:14:35 ERROR   OSError in read_ss: timeout reading 1 registers from 79 poll_need_to_read
09:15:33 ERROR   OSError in read_ss: timeout reading 1 registers from 248 poll_need_to_read
09:15:54 ERROR   OSError in read_ss: timeout reading 1 registers from 175 poll_need_to_read
09:17:07 ERROR   OSError in read_ss: timeout reading 12 registers from 268 poll_need_to_read
09:17:09 ERROR   OSError in read_ss: timeout reading 5 registers from 183 poll_need_to_read
09:18:42 ERROR   OSError in read_ss: timeout reading 14 registers from 248 poll_need_to_read
09:20:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 59 poll_need_to_read
09:20:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 248 poll_need_to_read
09:25:00 ERROR   (2 in 5 min) OSError in read_ss: timeout reading 1 registers from 59 poll_need_to_read
09:25:00 ERROR   (2 in 5 min) OSError in read_ss: timeout reading 1 registers from 219 poll_need_to_read
09:25:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 5 registers from 183 poll_need_to_read
09:25:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 14 registers from 248 poll_need_to_read
09:25:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 150 poll_need_to_read
09:25:45 ERROR   OSError in read_ss: timeout reading 2 registers from 243 poll_need_to_read
09:27:11 ERROR   OSError in read_ss: timeout reading 5 registers from 190 poll_need_to_read
09:29:55 ERROR   OSError in read_ss: timeout reading 6 registers from 164 poll_need_to_read
09:30:00 ERROR   (2 in 5 min) OSError in read_ss: timeout reading 1 registers from 59 poll_need_to_read
09:30:00 ERROR   (2 in 5 min) OSError in read_ss: timeout reading 1 registers from 219 poll_need_to_read

image

Second question :

I'm using fixed lan ethernet adapters instead of the standaard wifi adapters . I'm wondering , can i set the read every to a lot faster with these adapters?

kellerza commented 8 months ago

If you get many errors you might want to increase the read interval

Your hw might also have a need for specific read_interval or smaller batch_sizes (dependant on hw buffer)

gohigher14 commented 8 months ago

If you get many errors you might want to increase the read interval

Your hw might also have a need for specific read_interval or smaller batch_sizes (dependant on hw buffer)

It's already set to 15. So setting it higher is not ok . I thought that with fixed lan adapters it would work faster then with the standard wifi ones.

How can i know the read_interval and batch_sizes?

kellerza commented 8 months ago

You have to experiment with it. Eliminate some things.

Step 1 I would increase the interval, but you are welcome to follow your own fault finding process

gohigher14 commented 8 months ago

You have to experiment with it. Eliminate some things.

Step 1 I would increase the interval, but you are welcome to follow your own fault finding process

What is weird is , that i can only use the first 2 options . If i use the solarman option then it won't connect... Screenshot_2024-02-22-16-18-46-30_c3a231c25ed346e59462e84656a70e50

kellerza commented 8 months ago

And by setting solarman I assume you set the corect port?

gohigher14 commented 8 months ago

And by setting solarman I assume you set the corect port?

I used port 8899.