-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: timeout #368
Comments
Getting the same error.. Started about 3 weeks back |
I am having the same issue. I am hoping someone has an easy fix to this as it seems to be something on the inverter side from the tests I have done. Issue related to:Sunsynk / mbusd Home Assistant Add-On Describe the issue/bugThe add-on does not seem to be able to read/receive the values from the inverter. Things I have tried:
Expected behaviour Your environment
You configurationDRIVER: pymodbus
INVERTERS:
- SERIAL_NR: "Inverter Serial Number"
HA_PREFIX: SS
MODBUS_ID: 1
DONGLE_SERIAL_NUMBER: "0"
PORT: ""
SENSOR_DEFINITIONS: single-phase
SENSORS:
- energy_management
- power_flow_card
- pv2_power
- pv1_power
- essential_power
- battery_power
- battery_soc
- non_essential_power
- grid_ct_power
SENSORS_FIRST_INVERTER:
- settings
MANUFACTURER: Sunsynk
READ_ALLOW_GAP: 2
READ_SENSORS_BATCH_SIZE: 8
SCHEDULES:
- KEY: W
READ_EVERY: 1
REPORT_EVERY: 60
CHANGE_ANY: false
CHANGE_BY: 80
CHANGE_PERCENT: 0
NUMBER_ENTITY_MODE: auto
PROG_TIME_INTERVAL: "5"
MQTT_HOST: core-mosquitto
MQTT_PORT: 1883
MQTT_USERNAME: username
MQTT_PASSWORD: password
DEBUG_DEVICE: /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A10P71FR-if00-port0
DEBUG: 0
Logs
|
Anyone managed to fix this? Mine started today after I updated HA and a few other containers to their latest versions, however my pi running the sunsynk multi container is separate and thus beyond network connectivity interruptions I can't see how there updates would break stat collections from my inverters. |
So got mine working again. I have 2x inverters in parallel and pass the USB0 and USB1 into the container. However I cannot control which inverter is assigned USB0 and which is USB1 on a reboot. I believe the slave inverter was being assigned as USB0 on boot each time. After rebooting with the slave disconnected and only connecting it after boot my stats were working as expected. So if you have multiple USB devices connected, make sure that the inverter is assigned the correct USB interface. |
If you look at debug_device in the settings, you might see the USB by ID as well - this should not change? I see the following: |
Thanks, had a look now and switched to using the device IDs. When I first set this up I only had one inverter so using USB0 was sufficient. For reference the devices section in docker compose now looks like:
|
The latest version reads the minimum amount of data (serial, device type, protocol version) as startup sensor, before it tries to read any more sensors. If this step fails, there is unfortunately nothing that can be done until you fixed either the physical cabling, HW, port you plug in/splitter, connection settings, modbus id). I always advise to go via mbusd and not use direct usb from the addon. My guess is that the timing for mbusd (written in C) is a lot better than the timing on the Python modbus driver (maybe due to gil/something else 🤷 ). |
In the end I used a different piece of hardware and integration and it’s all working for me now. Happy to share more if appropriate ie make direct conversation |
Issue related to
Sunsynk Home Assistant Add-On
Describe the issue/bug
Addon unable to read from the sensors/inverter/registers. I have tried
Your environment
You configuration
Logs
The text was updated successfully, but these errors were encountered: