kellerza / sunsynk

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

ERROR: timeout #368

Open mdeakin99 opened 1 week ago

mdeakin99 commented 1 week ago

Issue related to

Sunsynk Home Assistant Add-On

Describe the issue/bug

Addon unable to read from the sensors/inverter/registers. I have tried

1) Two different waveshare dongles 2) Tried using modbus addon and without modbus addon 3) Connecting green wire to ground and connecting green/white wire to ground' 4) Reducing batch size to 2

Your environment

You configuration


DRIVER: pymodbus
INVERTERS:
  - SERIAL_NR: "SERIANNUMBERHERE"
    HA_PREFIX: SS
    MODBUS_ID: 1
    PORT: /dev/ttyACM0
SENSOR_DEFINITIONS: single-phase
SENSORS:
  - energy_management
  - power_flow_card
  - pv2_power
SENSORS_FIRST_INVERTER:
  - settings
MANUFACTURER: sunsynkdirect
READ_ALLOW_GAP: 2
READ_SENSORS_BATCH_SIZE: 2
SCHEDULES:
  - KEY: W
    READ_EVERY: 5
    REPORT_EVERY: 60
    CHANGE_ANY: false
    CHANGE_BY: 80
    CHANGE_PERCENT: 0
NUMBER_ENTITY_MODE: auto
PROG_TIME_INTERVAL: "60"
MQTT_HOST: core-mosquitto
MQTT_PORT: 1883
MQTT_USERNAME: mqtt_user
MQTT_PASSWORD: mpqttPasswordHere

Logs


From Sunsynk addon

s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun sunsynk (no readiness notification)
s6-rc: info: service legacy-services successfully started
14:56:27 INFO    Loading configuration: /data/options.json
14:56:27 INFO    sunsynk library version: 0.6.5
14:56:27 INFO    Schedules:
+-----------+-----+------+--------+-----------+----------+------------+
|    Key    | src | Read | Report | Change by | Change % | Change any |
+-----------+-----+------+--------+-----------+----------+------------+
| date_time |     |  60  |   60   |           |          |    True    |
|     rw    |     |  5   |  300   |           |          |    True    |
|    enum   |     |  5   |  300   |           |          |    True    |
|     w     |  *  |  5   |   60   |     80    |          |            |
|    kwh    |     | 300  |  300   |           |          |            |
|  any_unit |     |  15  |  300   |           |          |            |
|  no_unit  |     |  15  |  300   |           |          |    True    |
+-----------+-----+------+--------+-----------+----------+------------+
14:56:27 INFO    Using Single phase sensor definitions.
14:56:27 INFO    Added hidden sensors as other sensors depend on it: Rated power, Serial
14:56:27 INFO    Connecting to /dev/ttyACM0
14:56:27 INFO    PyModbus 3.7.2 Serial: /dev/ttyACM0
14:56:27 INFO    Reading startup sensors Battery Low Capacity, Rated power, Prog1 Time, Serial, Prog4 Time, Prog2 Time, Prog6 Time, Prog5 Time, Prog3 Time
14:57:55 ERROR   timeout reading 2 registers from 3; timeout reading 2 registers from 5; timeout reading 1 registers from 7; timeout reading 2 registers from 16; timeout reading 1 registers from 219; timeout reading 2 registers from 250; timeout reading 2 registers from 252; timeout reading 2 registers from 254