Pulls info from Solar inverter over local http. Does not require an internet connection. There are two strings that can be pulled form the inverter. History and Realtime.
These are flow files for node-red. Either copy the file to your Node-Red Directory or copy the contetns and then Import>From Clipboard to import into your flow.
history.json
is a small summary.
realtimeData.json
has much more detail, states, values and alarms.
Before following the instruction below, check your inverter to see if it's compatible with this software.
- Connect inverter to your local network using Wi-Fi or Ethernet
- Navigate to the following address in your browser:
http://<<inverterIP>>/api/realTimeData.htm
- If the browser returns a JSON like string, it's likely that this software will work with your inverter
NOTE: It's possible that different firmware in your inverter may change this string. You will need to decode the object and change the main function in the node-red file.
Please add your inverter firmware here if it works.
Works with:
- Solax_SI_CH_2nd_20160912_DE02
- Put Inverter on your network (Ethernet or Wifi). Use either a DHCP Reservation, Static IP or configure your DNS and give your inverter a name.
- Install an MQTT Broker (if you do not already have one)
- Install Node-red (google instructions, it’s not hard).
- Install the following nodes in Node-red: node-red-dashboard, node-red-contrib-string
- Copy code below
- In your Node-red installation <<IP_of_Node-red>>:1880
- Click menu in top right corner>Import>From Clipboard
- Paste the code below into that space
- Read the readme
- Put Inverter IP/Name in the “Inverter IP Here” node (replace the IP address that is there, leave the rest of the address as is).
- Hit Deploy
- Click square to the left of “Make Request”
- Go to <<IP_of_Node-red>>:1880/ui
- You should see values in the Dashboard under the IP in Step 13. If you do, the connection from the Inverter to Node-red is good.
- Configure MQTT broker in the “Configure MQTT here” node. Click the pencil next to the server. Remember authentication if you have it on your MQTT server. Leave topic blank (it’s configured in the large function).
- Hit Deploy.
- Check values at your MQTT server (you can google this as each server is different).
- Configure sensors in HASS as per sensor code below.
- Voila!
- Enable MQTT
- Setup sensor e.g.:
- platform: mqtt
state_topic: “solax/energy/gridPower”
name: “Grid Power”
unit_of_measurement: “KW”
payload_not_available: “offline”`