Closed JohnMcLear closed 2 years ago
@wlcrs I think something was missed here, please take a moment to read my issue in detail.
https://github.com/wlcrs/huawei_solar#sdongle-configuration applies to my situation.
In my issue I stated I cannot use the WiFI AP method.
Can you clarify, is it the case that one MUST use the WiFi AP method even if a Dongle is present?
Please re-open this issue until we have clarity.
Only the WiFi AP method works on recent firmwares. The presence of a dongle makes no difference anymore.
FML I spent hours trying to make it work. I'll send a PR that includes clear docs.
So I guess as I can't use WiFi AP method as my HA box has to be 200M away from my inverter I'm pretty much left without being able to communicate w/ this inverter right?
PR sent. I will setup a tunnel/bridge. It's super ghetto but I guess that's what you get when you go Huawei ;(
Thanks for taking your time to clarify.
Adding support for a wired connection to the RS485_1 pins is somewhere low on my priority list. This can solve your usecase where it is too hard to connect to the inverter AP. I will need to buy some hardware to connect and test this setup.
FYI I have two inverters with EW11a modbus adapters connected through RS485. One of them is working properly while the other is not very stable and has very long ping times sometimes resulting in "unavailable" states in HA. This is not related to the device as I tried switching them. I am planning on trying another power supply for the RS485 and I am also waiting for a HF2211S model and see If I got better stability results (nothing related with the integration)
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.
System Health details
System Health
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 | 8Home Assistant Cloud
logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | okHome 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 | storageHuawei Solar Setup
I'm NOT connecting using the AP method as the AP is 200M away from the HA box.
Hosts
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
Note 6606 instead of 6607?! 502 does appear to be open.
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
Relevant debug logs