kellerza / sunsynk

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

a lot of errormasseges in the log file Register 59 and 219 #312

Open concierge-at opened 3 days ago

concierge-at commented 3 days ago

Existing sensor definitions can be found here

You Inverter Deye5kSg03LP1

Details about your Inverter: make/model/firmware Deye 5ksg03lp1 Protokoll-Version:V0.2.0.1NETZ:3384-1515HMI:0000-C367Lithium-Akku-Versionsnummer:V0.0.0.0Deutsche Version:FFFFSpanische Version:FFFFUngarische Version:FFFFItalienische Version:FFFFLCD-Typ:8100

Describe the issue/bug and what you expect

Hello, I haven't been here long, and homeassistant is very powerful, the integration of Solarman Yellow with mqtt works very well. I looked through the logs and there were a lot of errors

08:11:18 ERROR   Error retry attempt(0): Connection already closed
08:15:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 59 poll_need_to_read
08:34:48 ERROR   Error retry attempt(0): Connection already closed
08:35:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 59 poll_need_to_read
08:41:21 ERROR   Error retry attempt(0): Connection already closed
08:45:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 219 poll_need_to_read
08:59:27 ERROR   Error retry attempt(0): Connection already closed
09:00:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 219 poll_need_to_read
09:01:48 ERROR   Error retry attempt(0): Connection already closed
09:05:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 59 poll_need_to_read
09:32:13 ERROR   Error retry attempt(0): Connection already closed
09:35:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 59 poll_need_to_read
09:38:58 ERROR   Error retry attempt(0): Connection already closed
09:40:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 219 poll_need_to_read
09:41:18 ERROR   Error retry attempt(0): Connection already closed
09:43:31 ERROR   Error retry attempt(0): Connection already closed
09:45:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 59 poll_need_to_read
09:45:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 219 poll_need_to_read
09:45:58 ERROR   Error retry attempt(0): Connection already closed
09:50:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 59 poll_need_to_read
09:52:48 ERROR   Error retry attempt(0): Connection already closed
09:55:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 219 poll_need_to_read
09:55:08 ERROR   Error retry attempt(0): Connection already closed
09:57:31 ERROR   Error retry attempt(0): Connection already closed
10:00:00 ERROR   (2 in 5 min) OSError in read_ss: timeout reading 1 registers from 219 poll_need_to_read
10:08:48 ERROR   Error retry attempt(0): Connection already closed
10:10:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 59 poll_need_to_read
10:11:01 ERROR   Error retry attempt(0): Connection already closed
10:13:21 ERROR   Error retry attempt(0): Connection already closed
10:15:00 ERROR   (2 in 5 min) OSError in read_ss: timeout reading 1 registers from 219 poll_need_to_read
10:15:48 ERROR   Error retry attempt(0): Connection already closed
10:20:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 219 poll_need_to_read
10:22:33 ERROR   Error retry attempt(0): Connection already closed
10:25:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 219 poll_need_to_read
11:06:43 ERROR   Error retry attempt(0): Connection already closed
11:10:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 219 poll_need_to_read
11:38:17 ERROR   Error retry attempt(0): Connection already closed
11:40:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 59 poll_need_to_read
11:40:31 ERROR   Error retry attempt(0): Connection already closed
11:45:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 219 poll_need_to_read
12:03:02 ERROR   Error retry attempt(0): Connection already closed
12:05:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 59 poll_need_to_read
12:09:42 ERROR   Error retry attempt(0): Connection already closed
12:10:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 219 poll_need_to_read
12:18:58 ERROR   Error retry attempt(0): Connection already closed
12:20:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 59 poll_need_to_read
12:45:11 ERROR   Error retry attempt(0): Connection already closed
12:47:33 ERROR   Error retry attempt(0): Connection already closed
12:50:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 59 poll_need_to_read
12:50:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 219 poll_need_to_read
12:54:28 ERROR   Error retry attempt(0): Connection already closed
12:55:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 219 poll_need_to_read
12:56:48 ERROR   Error retry attempt(0): Connection already closed
12:59:08 ERROR   Error retry attempt(0): Connection already closed
13:00:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 59 poll_need_to_read
13:00:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 219 poll_need_to_read
13:55:41 ERROR   Error retry attempt(0): Connection already closed
14:00:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 59 poll_need_to_read
14:31:33 ERROR   Error retry attempt(0): Connection already closed
14:35:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 219 poll_need_to_read
14:38:17 ERROR   Error retry attempt(0): Connection already closed
14:40:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 59 poll_need_to_read
14:50:11 ERROR   Error retry attempt(0): Connection already closed
14:55:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 59 poll_need_to_read
14:59:43 ERROR   Error retry attempt(0): Connection already closed
15:00:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 219 poll_need_to_read
15:02:03 ERROR   Error retry attempt(0): Connection already closed
15:05:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 59 poll_need_to_read
15:26:02 ERROR   Error retry attempt(0): Connection already closed
15:30:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 59 poll_need_to_read
15:45:12 ERROR   Error retry attempt(0): Connection already closed
15:47:26 ERROR   Error retry attempt(0): Connection already closed
15:49:48 ERROR   Error retry attempt(0): Connection already closed
15:50:00 ERROR   (2 in 5 min) OSError in read_ss: timeout reading 1 registers from 219 poll_need_to_read
15:50:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 59 poll_need_to_read
15:52:13 ERROR   Error retry attempt(0): Connection already closed
15:55:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 59 poll_need_to_read
16:10:37 ERROR   Error retry attempt(0): Connection already closed
16:15:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 219 poll_need_to_read
16:15:47 ERROR   Error retry attempt(0): Connection already closed
16:20:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 59 poll_need_to_read
16:25:03 ERROR   Error retry attempt(0): Connection already closed
16:27:23 ERROR   Error retry attempt(0): Connection already closed
16:30:00 ERROR   (2 in 5 min) OSError in read_ss: timeout reading 1 registers from 219 poll_need_to_read
16:34:14 ERROR   Error retry attempt(0): Connection already closed
16:35:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 219 poll_need_to_read
16:36:26 ERROR   Error retry attempt(0): Connection already closed
16:40:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 59 poll_need_to_read
17:12:57 ERROR   Error retry attempt(0): Connection already closed
17:15:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 219 poll_need_to_read
17:15:18 ERROR   Error retry attempt(0): Connection already closed
17:20:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 59 poll_need_to_read
17:28:56 ERROR   Error retry attempt(0): Connection already closed
17:30:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 59 poll_need_to_read
17:31:27 ERROR   Error retry attempt(0): Connection already closed
17:33:48 ERROR   Error retry attempt(0): Connection already closed
17:35:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 59 poll_need_to_read
17:35:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 219 poll_need_to_read
17:52:03 ERROR   Error retry attempt(0): Connection already closed
17:55:00 ERROR   (1 in 5 min) OSError in read_ss: timeout reading 1 registers from 59 poll_need_to_read
18:05:47 ERROR   Error retry attempt(0): Connection already closed`

A clear and concise description of what the bug is.

Any suggestions on proposed registers is welcome.

Logs (if applicable)


paste logs in 3x backticks...
rixxxx commented 3 days ago

Both Cloud and Sunsynk are fighting for the same serial port. Solarman dongle is not doing any session management and every time both Cloud and Sunsynk are asking something they are tipping on each others toes. If you disable cloud connectivity, it gets a bit better. Ultimately I suggest to use RS485 cable.

concierge-at commented 3 days ago

Thank you, can there something happen on this errors? Or can it run normaly,

I have try one year to get data out of the inverter with cable i wara happy fir this integration

rixxxx commented 3 days ago

You can ignore the errors. It works but sunsynk sometimes hangs and Solarman dongle also sometimes hangs. I finaly gave up and installed a cable, some others have done the same. There are probably not very many sunsynk users using the Solarman dongle.

concierge-at commented 3 days ago

Thank you verry much, does you have please spezific information from usb to deye rs485? I tried many times to get Esp32 to rs485 geting working for me without success so i wars verry happy after one year of trying to find this with the dongle. And in austria you dont get nothing ready to use items Thank you for your help and information

rixxxx commented 2 days ago

https://kellerza.github.io/sunsynk/guide/deployment-options lists multiple options. I'm using 4th without mbusd. Easyest would be to use option 1 or 4 and have USB RS485 dongle directly connected to the machine running sunsynk.

You can get USB RS485 adapter very cheap from eg AliEx..., search for "usb rs485". These ~2EUR adapters work for sure.

image

concierge-at commented 2 days ago

Thank you @rixxxx , please sorry my lot of questions. I am not a programmer, and an Automation worker. Thank you for your Help. But there are 2 questions for now on you.

  1. Will the entities name the same when i use usb? I have epend a lot of time in the Dashboard to get working.
  2. And the 2.nd how does i say the sunsynk integration that there
  3. Will be now a usb connection and how to delete the dongle?
  4. Thank you and have a nice day. Sorry for my english its not native language of me
kellerza commented 2 days ago
  1. Will the entities name the same when i use usb? I have epend a lot of time in the Dashboard to get working.

Yes, as long as HA_PREFIX and the serial number is the same. These two form the unique ID of the MQTT sensor and HA will use the same entity name. (not add a _2 to the end).

  1. And the 2.nd how does i say the sunsynk integration that there
  2. Will be now a usb connection and how to delete the dongle?

Change the driver - https://kellerza.github.io/sunsynk/reference/multi-options#driver

solarman to pymodbus

concierge-at commented 2 days ago

Thank you thank you, i will try it in the nex week i think a lot of work for me. If i have no succsess i will come again. And if it works we take a coffee Edit: i bougt now https://amzn.eu/d/0eLKGFcS Hope this will work, only two wires the chance is 50/50 🫣 Thank you