Comments (8)
Perfect. Working again. Much appreciated.
from sunsynk.
just something i noticed as well, its actually not updating any values anymore. i reboot add-on then it pulls data only for that time. it doesn't seems to be updating on its own
i actually wonder if it also has anything to do with the Home Assistant 2020.9 update. i am currently on Home Assistant Core 2022.9.2
from sunsynk.
ok, i found the issue. For some reason it just stopped working after i re-routed the cable. Possibly interference. The cable is 36M long and even though it worked before, i suspect that closing it up in trunking caused some more interference because if I put my Home Assistant unit right by the inverter it works fine.
I would like to increase the timeout to see if that can help because of the distance of the cable but when i change timeout, its just still 10seconds. How can i change it to 15 or 20 seconds?
from sunsynk.
Hi Hazard, I will have to look into why the timeout is not being used.
I assume you use 3x wires (D+/D- and GND). the data lines MUST be on a twisted pair in the cable to reduce noise, but even then the interference might be too much. Another option might be a Shielded UTP cable. Then you ground one end of the shield to an external ground (You don't necessarily have to use metal STP connectors)
from sunsynk.
Hi Johann
Thanks, much appreciated, that would be great with the timeout function. I am using Cat5e yes and I and using 3 wires as per diagram yes. Strange thing is that it worked before. Now that I neatly put away the cables in the trunking and cut off excess wires it just stopped working completely. It reads on start up but then just times out so it does definitely seems like some interference (for about 10 meters its running in the same trunking as the solar DC cables). This is why i would like to try to increase the timeout to see if that will possibly work to accommodate for distance and interference.
If that doesn't work, i have another Raspberry Pi right by the inverter which I am using for reporting on my battery via Pylontech cable, I could maybe use that Raspberry Pi as a modbus gateway as a last resort
from sunsynk.
@hazardrr the latest dev version tries to propagate this timeout for the usunsynk driver in the dev version of the addon, so might help!
btw, I use an old Raspberry Pi 1b running mbusd (no Hass io) as a gateway with a wave USB adaptor
If I would start today I would likely choose this Wave RS485 to Ethernet unit
from sunsynk.
This latest published version today broke my add-on. It cannot start up.
Not infront of a pc to debug yet.
`[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
2023-01-19 14:34:05,573 INFO Loading HASS OS configuration
2023-01-19 14:34:05,574 INFO PROFILES were deprecated. Please remove this configuration.
2023-01-19 14:34:05,601 DEBUG could not patch umodbus: numpy not found
2023-01-19 14:34:05,613 INFO ############################################################
2023-01-19 14:34:05,614 INFO Sensor deprecated: day_active_power -> day_active_energy
2023-01-19 14:34:05,614 INFO ############################################################
2023-01-19 14:34:05,614 INFO ############################################################
2023-01-19 14:34:05,615 INFO Sensor deprecated: day_load_power -> day_load_energy
2023-01-19 14:34:05,615 INFO ############################################################
2023-01-19 14:34:05,616 INFO ############################################################
2023-01-19 14:34:05,616 INFO Sensor deprecated: day_reactive_power -> day_reactive_energy
2023-01-19 14:34:05,616 INFO ############################################################
2023-01-19 14:34:05,617 INFO ############################################################
2023-01-19 14:34:05,617 INFO Sensor deprecated: month_grid_power -> month_grid_energy
2023-01-19 14:34:05,617 INFO ############################################################
2023-01-19 14:34:05,618 INFO ############################################################
2023-01-19 14:34:05,618 INFO Sensor deprecated: month_load_power -> month_load_energy
2023-01-19 14:34:05,618 INFO ############################################################
2023-01-19 14:34:05,619 INFO ############################################################
2023-01-19 14:34:05,619 INFO Sensor deprecated: month_pv_power -> month_pv_energy
2023-01-19 14:34:05,619 INFO ############################################################
2023-01-19 14:34:05,620 INFO ############################################################
2023-01-19 14:34:05,620 INFO Sensor deprecated: total_active_power -> total_active_energy
2023-01-19 14:34:05,620 INFO ############################################################
2023-01-19 14:34:05,621 INFO ############################################################
2023-01-19 14:34:05,621 INFO Sensor deprecated: total_load_power -> total_load_energy
2023-01-19 14:34:05,622 INFO ############################################################
2023-01-19 14:34:05,622 INFO ############################################################
2023-01-19 14:34:05,622 INFO Sensor deprecated: total_pv_power -> total_pv_energy
2023-01-19 14:34:05,623 INFO ############################################################
2023-01-19 14:34:05,623 INFO ############################################################
2023-01-19 14:34:05,624 INFO Sensor deprecated: year_load_power -> year_load_energy
2023-01-19 14:34:05,624 INFO ############################################################
2023-01-19 14:34:05,624 INFO ############################################################
2023-01-19 14:34:05,625 INFO Sensor deprecated: year_pv_power -> year_pv_energy
2023-01-19 14:34:05,625 INFO ############################################################
2023-01-19 14:34:05,627 INFO Filter *step used for aux_power, battery_current, battery_power, control_mode, day_reactive_power, essential_power, grid_ct_power, grid_current, grid_frequency, grid_l2_power, grid_ld_power, grid_power, inverter_frequency, inverter_power, load_l1_power, load_l2_power, load_power, non_essential_power, pv1_current, pv1_power, pv2_current, pv2_power
2023-01-19 14:34:05,627 INFO Filter *last used for battery_soc, day_active_power, day_battery_charge, day_battery_discharge, day_grid_export, day_grid_import, day_load_power, day_pv_energy, grid_connected_status, month_grid_power, month_load_power, month_pv_power, total_active_power, total_battery_charge, total_battery_discharge, total_grid_export, total_grid_import, total_load_power, total_pv_power, year_grid_export, year_load_power, year_pv_power
2023-01-19 14:34:05,627 INFO Filter *avg used for battery_temperature, battery_voltage, grid_voltage, inverter_voltage, pv1_voltage, pv2_voltage
2023-01-19 14:34:05,628 INFO Filter *round_robin used for battery_absorption_voltage, battery_equalization_voltage, battery_float_voltage, battery_low_capacity, battery_low_voltage, battery_restart_capacity, battery_restart_voltage, battery_shutdown_capacity, battery_shutdown_voltage, load_limit, priority_mode, prog1_capacity, prog1_charge, prog1_mode, prog1_power, prog1_time, prog1_voltage, prog2_capacity, prog2_charge, prog2_mode, prog2_power, prog2_time, prog2_voltage, prog3_capacity, prog3_charge, prog3_mode, prog3_power, prog3_time, prog3_voltage, prog4_capacity, prog4_charge, prog4_mode, prog4_power, prog4_time, prog4_voltage, prog5_capacity, prog5_charge, prog5_mode, prog5_power, prog5_time, prog5_voltage, prog6_capacity, prog6_charge, prog6_mode, prog6_power, prog6_time, prog6_voltage
Traceback (most recent call last):
File "/usr/src/app/./run.py", line 472, in <module>
LOOP.run_until_complete(main(LOOP))
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/usr/src/app/./run.py", line 387, in main
await SUNSYNK.connect()
File "/usr/local/lib/python3.9/site-packages/sunsynk/usunsynk.py", line 34, in connect
self.client = modbus_for_url(
File "/usr/local/lib/python3.9/site-packages/async_modbus/core.py", line 271, in modbus_for_url
stream = connio.connection_for_url(url, **conn_options)
File "/usr/local/lib/python3.9/site-packages/connio/__init__.py", line 16, in connection_for_url
return serial_for_url(url, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/serialio/__init__.py", line 17, in serial_for_url
return aio.serial_for_url(url, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/serialio/aio/__init__.py", line 19, in serial_for_url
return Serial(url, *args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'connection_timeout'
[cmd] ./run.py exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.`
from sunsynk.
@jabezz can you try updating again, it seems connection_timeout is not supported by serial drivers. I only have a TCP test system
from sunsynk.
Related Issues (20)
- Prog{x} Time select list HOT 5
- I have just updated sunsynk add on, and am now getting 2 or 3 decimal places for all values. HOT 5
- Unable to successfully connect to Sunsynk inverter HOT 3
- Custom Sensors seems not to work HOT 7
- "PV3 Sensor" definition for Sunsynk 16Kw single phase inverter HOT 4
- Python Error HOT 2
- Batterie und RS485 Adapter an der Deye Schnittstelle ? Möglich? HOT 1
- Parallel support HOT 1
- 3 phase Grid Trickle Feed HOT 5
- Integration hangs regularly on reading/writing data HOT 18
- Use_timer: Unknown register value 1 HOT 9
- CRC validation failed: Sofar HYD-5000-EP HOT 5
- Slider scaling HOT 3
- Version b381a73 WARNING use_timer: Unknown register value 255 The Problem HOT 6
- Addon reading incorrect data after connection is lost HOT 5
- Possibility of use in sofar 5 ktlm g3? HOT 1
- Issue with the SOC figure since HA upgraded HOT 20
- grid_connected always OFF: Deye 3-phase HOT 3
- RWSensor System Zero Export power MinMax Value HOT 8
- USR-W630 IncompleteReadError HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sunsynk.