question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: Failed connectivity

See original GitHub issue

System Health details

System Health

version core-2022.4.7
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.9.9
os_name Linux
os_version 5.10.108
arch aarch64
timezone Europe/London
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4993
Installed Version 1.24.0
Stage running
Available Repositories 1029
Downloaded Repositories 8
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 7.6
update_channel stable
supervisor_version supervisor-2022.04.0
docker_version 20.10.9
disk_total 115.7 GB
disk_used 92.4 GB
healthy true
supported true
board odroid-n2
supervisor_api ok
version_api ok
installed_addons File editor (5.3.3), MariaDB (2.4.0), Let’s Encrypt (4.12.0), Check Home Assistant configuration (3.10.0), Terminal & SSH (9.3.0), Zigbee2mqtt (1.25.0-1), Log Viewer (0.13.0), Mosquitto broker (6.0.1), ESPHome (2022.4.0), Plex Media Server (2.8.0)
Dashboards
dashboards 1
resources 0
views 1
mode storage

Huawei Solar Setup

I’m NOT connecting using the AP method as the AP is 200M away from the HA box.

Hosts

SDongleA-HV2170115623.lan > 10.0.0.101    
SUN2000-102180067169.lan > 10.0.0.182

Firmware

Inverter V200R001C00SPC121 Dongle V100R001C00SPC127

Unrestricted Modbus TCP is enabled and set to RS485. I did notice that RS485 didn’t seem to persist after restarts.

Connectivity testing

nmap SDongleA-HV2170115623.lan -p1-10000
PORT     STATE SERVICE
502/tcp  open  mbap
6606/tcp open  unknown

Note 6606 instead of 6607?! 502 does appear to be open.

nmap SUN2000-102180067169.lan -p1-10000
Nmap scan report for SUN2000-102180067169.lan (10.0.0.182)
All 10000 scanned ports on SUN2000-102180067169.lan (10.0.0.182) are closed

Describe the issue

I’m unable to connect to the inverter or dongle.

I don’t seem to have any newer firmware options available in the Fusion web interface. Should my firmware be okay? I don’t seem to have 6607 available on the Dongle, is that expected? Do we expect to see 6606? Is RS485 setting not being persistent a known fault/issue?

Reproduction steps

  1. Install plugin
  2. Attempt to connect
  3. Fails to connect …

Relevant debug logs

Logger: huawei_solar.huawei_solar
Source: /usr/local/lib/python3.9/site-packages/huawei_solar/huawei_solar.py:246
First occurred: 09:22:31 (2 occurrences)
Last logged: 09:23:20

Modbus client is not connected to the inverter.
NoneType: None
Logger: huawei_solar.huawei_solar
Source: /usr/local/lib/python3.9/site-packages/huawei_solar/huawei_solar.py:270
First occurred: 09:24:21 (2 occurrences)
Last logged: 09:24:28

Could not read register value, has another device interrupted the connection?
Logger: pymodbus.client.asynchronous.async_io
Source: /usr/local/lib/python3.9/site-packages/pymodbus/client/asynchronous/async_io/__init__.py:307
First occurred: 09:22:30 (48 occurrences)
Last logged: 09:30:09

Failed to connect: [Errno 111] Connect call failed ('10.0.0.101', 6607)
Failed to connect: Multiple exceptions: [Errno 111] Connect call failed ('::1', 6607, 0, 0), [Errno 111] Connect call failed ('127.0.0.1', 6607)
Failed to connect: Multiple exceptions: [Errno 111] Connect call failed ('::1', 6606, 0, 0), [Errno 111] Connect call failed ('127.0.0.1', 6606)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
wlcrscommented, Apr 27, 2022

Only the WiFi AP method works on recent firmwares. The presence of a dongle makes no difference anymore.

0reactions
JohnMcLearcommented, Apr 28, 2022

To wrap this up. I used a Pi to connect to the AP and used

iptables -t nat -I PREROUTING 1 -p tcp --dport 6607 -j DNAT --to-destination 192.168.200.1:6607
iptables --flush
iptables-save

I could then connect. I wont add this to the docs because I’m not confident it’s right, iptables can be a fickle mistress.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Still not fix 'no internet' connection bug in Windows 10 2004 ...
This issue occurs if you use a group policy or local network configuration to disable active probing for the Network Connectivity Status ......
Read more >
Microsoft fixing Direct Access bug in Windows 10 and 11 • The ...
Access share folders on workstations and file shares on servers is another reported problem, and it appears printer connections that require ...
Read more >
New Windows 10 Bug Causes Internet Connectivity Issues ...
All supported Windows 10 and Windows Server versions are affected by a new bug that could cause applications to be unable to connect...
Read more >
CSCvs92779 - utils network connectivity fails for ... - Cisco Bug
Symptom: utils network connectivity fails for fqdn errors with Unknown hostname admin:utils network connectivity UCM-SUB.domain.com This ...
Read more >
Microsoft acknowledges Windows 10 bug that causes internet ...
Once again, Microsoft has acknowledged a problem in the May 2020 update. The error affects the Network Connectivity Status Indicator (NCSI) icon ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found