I already know this method of using wifi with homeassitant, but the issue is I can’t move Rpi4 from it’s current location already using it to track aircraft. Home assistant and Flightradar24 on same device
I have looked at @manio’s guide How to connect to SUN2000 from DD-WRT – skyboo.net. Now I am looking for a dual-band router, can’t do ethernet to new router due to the location of Inverter
So if you can’t move it anyway, then why to you bother with thís method if you know it’s not doable? I’ll pass on that …
i want to make it easier for future reader where to look for rpi4 method, bcz many of us are too noob to google each and everything.
Why not just add an usb-wifi dongle?
you mean SDongleA-05 wifi dongle? i already have it installed, with latest firmware V100R001C00SPC122, but how can i connect it to HA without using ethernet cable?
No. Of course not, as it’s already connected to the inverter. Otherwise we wouldn’t be talking.
I suggested adding AN EXTERNAL USB WIFI DONGLE TO THE RASPBERRY. As your internal wifi is already used. Makes sense?
internal wifi isn’t used on rpi4. the inverter is “too far”(Huawei inverter wifi with SSID SUN2000xxxxxx IP 192.168.200.1 has too short-range hardly 10feet)i.e why I need a router near the inverter which has 2 functions, increase the range of inverter wifi while also connecting it to my home wifi IP in 192.168.1.1 range.
I give up. No idea what else I could add what has not been written before. I’m out.
while waiting for my new router to arrive, I have successfully connected to Huwaei Inverter using RPi4 (I moved its location temporarily). Now, How should I proceed? I have this code in my configuration.yaml file.
- platform: huawei_solar
host: '192.168.200.1'
optimizers: false
battery: false
energy:
’
Finally got it to work. Connected to Huawei 10KTL-M1 using Raspberry pi’s builtin wifi.
- Supervisor
- System
- click change next to IP address
- select Wlan0
- Select wifi and scan for access points.
- Connect to SUN2000-xxxxx (xxxxx being your Inverters’ serial number) password is “Changeme” if it wasn’t changed
- add the following code to configuration.yaml file.
- restart HA.
- It will add a new sensor name " sensor.sun2000_10ktl_m1" or whichever the model of your inverter is.
- follow @Emilv2 and @ligeza 's advice for further queries. because I don’t know next steps at this stage. @iz3man thanks for rpi4 advice. temporary solution but a solution non the less.
This is the code I used in configration.yaml file
sensor solar:
- platform: huawei_solar
host: '192.168.200.1'
optimizers: false
battery: false
can someone please help me to explain how to setup with LAN cable beacuse my RPi4 cant find the inverter wifi anymore.
But i can find it by my phone so it works .
But i got the dongle uppgraded to version 122 but cant get it to work .
Everyone seems to type different things in there config file ??
Can anybody typer their setting for LAN cable
I have made it work.
My scenario is not the common one. I have not my HA instance running in a RPI. It is on a Intel miniPC away from the inverter.
So, I have used an old TPLink router with wifi to route and masquerade the traffic between the internal inverter AP to my local network.
I have followed this tutorial that I got from this thread:
https://skyboo.net/2021/07/how-to-connect-to-sun2000-from-dd-wrt/
I had some trouble adapting it to my settings, but I finally got it.
My RPi4 cant see the Wi-Fi anymoore i have had it working before so now i want to have it working with LAN cable.
Now I get that there is already someone connected ??
Do I use Emil’s or modbus in config ??
I have just started with Emil’s custom component. But I still have not made anything with the sensor values.
My plan is to make some automations based on the consumption and generation.
Also, I would like to use the new “Energy” feature in HA, but on my first attempt, I could not see the sensor in the config wizard. The HA docs state that Modbus should be valid, but I would like to support Emil’s work.
did you try Guide: Connecting Pi with Home Assistant OS to wifi (or other networking changes)?
check with the following commands
curl -v 192.168.200.1
and check ping
ping 192.168.200.1
to kill the ping Ctrl + C
The wifi don’t show up in the rpi4 anymore … it’s located 2 meters from the inverter .
It don’t connect to it by WiFi …
I have now it connected by Lan and now get someone already connected
Logger: huawei_solar.huawei_solar
Source: /usr/local/lib/python3.9/site-packages/huawei_solar/huawei_solar.py:311
First occurred: August 28, 2021, 2:42:23 PM (1 occurrences)
Last logged: August 28, 2021, 2:42:23 PM
could not read register value, is an other device already connected?
I can ping the LAN ip with good reslut but still get the error message
**I Now managed to get into the inverter and changed the inverter wifi password and then it poped up in RPI4 again … so i am now connected **
Now I am trying to set up separate sensors.
I used the following code
template:
- sensor:
total_yield:
friendly_name: "total yield"
unit_of_measurement: 'kWh'
icon_template: mdi:transmission-tower
value_template: "{{ state_attr('sensor.sun2000_10ktl_m1', 'total_yield') }}"
but in log I got this error
Logger: homeassistant.config
Source: config.py:445
First occurred: 2:12:44 PM (1 occurrences)
Last logged: 2:12:44 PM
Invalid config for [template]: [total_yield] is an invalid option for [template]. Check: template->total_yield. (See /config/configuration.yaml, line 30).
what I am doing wrong here?
What attributes do you use at the new Energy tab
My Exported Energy shows unknown …
Can someone provide with a copy of your configuration file please ??