Replies: 1 comment
-
When using the Sunsynk dongle, try reading less sensors or increasing the schedule time between reads (10s might not be enough). A wired solution (RS485) works a lot better, inho |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
While the script is running fine, I get the following errors constantly - OSError in callback read_deye: timeout reading x registers from xxx poll_need_to_read. I tried changing READ_SENSORS_BATCH_SIZE from 20 to 30, but the errors continue
Here is my options.yaml file
[code]
DRIVER: solarman
INVERTERS:
HA_PREFIX: DEYE
MODBUS_ID: 1
DONGLE_SERIAL_NUMBER: "2713372824"
PORT: tcp://192.168.1.23:8899
SENSOR_DEFINITIONS: single-phase
SENSORS:
SENSORS_FIRST_INVERTER:
MANUFACTURER: Deye-8k
READ_ALLOW_GAP: 2
READ_SENSORS_BATCH_SIZE: 30
SCHEDULES:
READ_EVERY: 10
REPORT_EVERY: 10
CHANGE_ANY: false
CHANGE_BY: 30
CHANGE_PERCENT: 0
READ_EVERY: 10
REPORT_EVERY: 10
CHANGE_ANY: true
READ_EVERY: 10
REPORT_EVERY: 10
CHANGE_BY: 30
NUMBER_ENTITY_MODE: auto
MQTT_HOST: 192.168.1.22
MQTT_PORT: 1883
MQTT_USERNAME: championc
MQTT_PASSWORD: ********
[/code]
[code]
| | grid_charge_battery_current, prog6_charge, prog5_charge, battery_soc |
| 15 | overall_state, grid_connected |
| 300 | total_battery_discharge, day_load_energy, day_grid_import, total_grid_import, |
| | total_grid_export, day_battery_charge, day_pv_energy, total_battery_charge, |
| | day_grid_export, total_pv_energy, day_battery_discharge |
+-----+-------------------------------------------------------------------------------+
11:06:33 INFO Report every (inverter 1)
+-----+-------------------------------------------------------------------------------+
| s | Sensors |
+-----+-------------------------------------------------------------------------------+
| 10 | load_limit, prog6_capacity, prog6_power, pv1_voltage, inverter_current, |
| | prog1_power, load_frequency, battery_power, prog3_charge, prog3_power, |
| | prog3_time, dc_transformer_temperature, non_essential_power, prog6_time, |
| | prog4_power, battery_max_charge_current, prog2_power, prog4_charge, |
| | radiator_temperature, prog2_time, inverter_power, prog1_time, prog2_charge, |
| | grid_voltage, grid_frequency, aux_power, prog2_capacity, prog4_capacity, |
| | essential_power, prog3_capacity, pv2_power, battery_voltage, prog1_capacity, |
| | prog5_power, prog5_capacity, grid_ct_power, grid_l2_power, pv1_current, |
| | battery_max_discharge_current, grid_power, prog5_time, battery_current, |
| | pv2_current, pv1_power, use_timer, pv2_voltage, priority_load, |
| | battery_low_capacity, battery_temperature, prog4_time, prog1_charge, |
| | grid_charge_battery_current, prog6_charge, prog5_charge, battery_soc |
| 300 | total_battery_discharge, day_load_energy, day_grid_import, total_grid_import, |
| | total_grid_export, day_battery_charge, day_pv_energy, total_battery_charge, |
| | day_grid_export, overall_state, total_pv_energy, grid_connected, |
| | day_battery_discharge |
+-----+-------------------------------------------------------------------------------+
11:11:44 ERROR OSError in callback read_deye: timeout reading 4 registers from 109 poll_need_to_read
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/ha_addon_sunsynk_multi/timer_callback.py", line 81, in wrap_callback
await cb_call
File "/usr/local/lib/python3.11/site-packages/ha_addon_sunsynk_multi/sensor_callback.py", line 110, in callback_sensor
await ist.read_sensors(
File "/usr/local/lib/python3.11/site-packages/ha_addon_sunsynk_multi/a_inverter.py", line 54, in read_sensors
await self.inv.read_sensors(sensors)
File "/usr/local/lib/python3.11/site-packages/sunsynk/sunsynk.py", line 134, in read_sensors
raise IOError("; ".join(errs))
OSError: timeout reading 4 registers from 109 poll_need_to_read
11:16:05 ERROR OSError in callback read_deye: timeout reading 29 registers from 164 poll_need_to_read
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/ha_addon_sunsynk_multi/timer_callback.py", line 81, in wrap_callback
await cb_call
File "/usr/local/lib/python3.11/site-packages/ha_addon_sunsynk_multi/sensor_callback.py", line 110, in callback_sensor
await ist.read_sensors(
File "/usr/local/lib/python3.11/site-packages/ha_addon_sunsynk_multi/a_inverter.py", line 54, in read_sensors
await self.inv.read_sensors(sensors)
File "/usr/local/lib/python3.11/site-packages/sunsynk/sunsynk.py", line 134, in read_sensors
raise IOError("; ".join(errs))
OSError: timeout reading 29 registers from 164 poll_need_to_read
11:16:31 ERROR OSError in callback read_deye: timeout reading 7 registers from 273 poll_need_to_read
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/ha_addon_sunsynk_multi/timer_callback.py", line 81, in wrap_callback
await cb_call
File "/usr/local/lib/python3.11/site-packages/ha_addon_sunsynk_multi/sensor_callback.py", line 110, in callback_sensor
await ist.read_sensors(
File "/usr/local/lib/python3.11/site-packages/ha_addon_sunsynk_multi/a_inverter.py", line 54, in read_sensors
await self.inv.read_sensors(sensors)
File "/usr/local/lib/python3.11/site-packages/sunsynk/sunsynk.py", line 134, in read_sensors
raise IOError("; ".join(errs))
OSError: timeout reading 7 registers from 273 poll_need_to_read
11:21:52 ERROR Error reading: Connection already closed (retry 1)
11:21:59 ERROR OSError in callback read_deye: timeout reading 1 registers from 59; timeout reading 1 registers from 79 poll_need_to_read
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/ha_addon_sunsynk_multi/timer_callback.py", line 81, in wrap_callback
await cb_call
File "/usr/local/lib/python3.11/site-packages/ha_addon_sunsynk_multi/sensor_callback.py", line 110, in callback_sensor
await ist.read_sensors(
File "/usr/local/lib/python3.11/site-packages/ha_addon_sunsynk_multi/a_inverter.py", line 54, in read_sensors
await self.inv.read_sensors(sensors)
File "/usr/local/lib/python3.11/site-packages/sunsynk/sunsynk.py", line 134, in read_sensors
raise IOError("; ".join(errs))
OSError: timeout reading 1 registers from 59; timeout reading 1 registers from 79 poll_need_to_read
[/code]
Beta Was this translation helpful? Give feedback.
All reactions