An app that exports electricity consumption and other metrics from Chinese solar inverters to Home Assistant using the WiFi adapter attached to the inverters. SmartESS mobile app.
Thanks Alexey Denisov
- Install NetDaemon to HomeAssistant
- Install MQTT.
- Create in you personal computer template project NetDaemon or use exist.
dotnet new --install NetDaemon.Templates.Project
mkdir NetDaemonApps
cd NetDaemonApps
dotnet new nd-project
- In solution explorer navigate to folder apps/HasModel and create application folder Anenji Inverter.
- In folder click left mouse button and select add existig items, choise all *.cs files from src folder,click on Add's button drop-down menu and choose Add as a link
- Open file InverterAnenji4_7.cs and correct lines.
IPEndPoint WiFiAdapterEndPoint = new IPEndPoint(new IPAddress(new byte[] { 192, 168, 1, 128 }), 58899);
IPAddress haIpAddress = new IPAddress(new byte[] { 192, 168, 1, 100 });
-
In the NetDaemon configuration tab in the network configuration area, change port 10000 to 8899.
-
Run debug or publish to HA.
The Application, once launched, automatically registers the OffGrid Inverter Anenji device with all registers 201-234.
After successful integration to Home Assistant recomendation close access to internet for WiFi doungle. (Increases connection stability)