Skip to content

hotswapster/solaxInverter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

solaxInverter

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.

Files

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.

Inverter Compatibility

Before following the instruction below, check your inverter to see if it's compatible with this software.

  1. Connect inverter to your local network using Wi-Fi or Ethernet
  2. Navigate to the following address in your browser: http://<<inverterIP>>/api/realTimeData.htm
  3. 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.

Firmware Compatibility

Please add your inverter firmware here if it works.

Works with:

  • Solax_SI_CH_2nd_20160912_DE02

Instructions

  1. 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.
  2. Install an MQTT Broker (if you do not already have one)
  3. Install Node-red (google instructions, it’s not hard).
  4. Install the following nodes in Node-red: node-red-dashboard, node-red-contrib-string
  5. Copy code below
  6. In your Node-red installation <<IP_of_Node-red>>:1880
  7. Click menu in top right corner>Import>From Clipboard
  8. Paste the code below into that space
  9. Read the readme
  10. 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).
  11. Hit Deploy
  12. Click square to the left of “Make Request”
  13. Go to <<IP_of_Node-red>>:1880/ui
  14. 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.
  15. 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).
  16. Hit Deploy.
  17. Check values at your MQTT server (you can google this as each server is different).
  18. Configure sensors in HASS as per sensor code below.
  19. Voila!

Home Assistant Setup

  1. Enable MQTT
  2. Setup sensor e.g.:
    - platform: mqtt
      state_topic: “solax/energy/gridPower”
      name: “Grid Power”
      unit_of_measurement: “KW”
      payload_not_available: “offline”`

About

Pull info from Solar inverter over http

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published