Pick your device
Other supported boards
For tinkerers. They work the same, but have no DIN-rail enclosure or need more work.
Pick the firmware line
Flash the firmware
Step-by-step guide
Pick your device and firmware line above and the guide adapts to your choice.
Get a computer and a cable ready
- A computer with a browser that supports Web Serial: Chrome, Edge, Opera or Firefox 151 or newer. Safari cannot do it; the installation has to be done from a computer, not a phone.
- A USB-C cable that carries data. A charge-only cable will not show a port.
- USB power is enough for flashing, on the Ethernet boards too.
Kamami: remove the RS485 HAT before connecting USB. The USB converter and the HAT share the same pins; never connect both at once.
Flash the firmware
- Connect the board over USB.
- Click Install firmware in step 3 of the wizard above.
- Pick the port that appeared when you plugged the board in (e.g.
COM8on Windows,cu.usbmodem…on macOS). - On a first install, tick Erase device.
- Wait for the progress bar to finish. It takes about a minute.
Connect to WiFi
The easiest way is right in the installer: after flashing choose Configure Wi-Fi, pick your network and enter the password.
You can also do it later: a dongle without WiFi settings opens the GbbDongle Setup access point. Join it from your phone and the setup page opens by itself.
8DI-8DO: the module has no antenna on the board. WiFi will not work without the SMA antenna screwed on.
Connect Ethernet
Unplug USB, mount the RS485 HAT, and only then connect power.
Plug in the network cable. A PoE switch (802.3af) powers the board; USB or the 7–36 V terminals work too.
Plug in the network cable. A PoE switch or a 5 V supply powers the board.
The dongle gets its IP address from your router (DHCP).
Open the dongle's web panel
Type http://gbbdongle.local
into your browser.
If .local names do not work on your network, look the IP address up in your router’s DHCP list. You can also connect the dongle over USB, open this installer, choose Logs & Console and read the IP address from the log.
Log in as admin / admin and set your own password under System → Panel password right away. The same password protects firmware uploads. Restore factory settings restores all defaults, including the admin password.
Connect to GbbOptimizer
- In GbbOptimizer open Instalacje (Installations), click Popraw (Edit) next to your installation, then Change type or timeslots…, pick Plant with GbbDongle by K.Hajdamowicz and click Change. Until you do, GbbOptimizer talks to the inverter the old way (e.g. through Deye Cloud or GbbConnect2) and the dongle receives nothing.
- On the same page, in the GbbDongle Pairing section, click Generate a new code. The code (e.g.
J-EEH7-ABCD) works once and for 10 minutes. Do not share it. - In the dongle’s panel open the GbbOptimizer cloud tab, paste the code into the Pair with GbbOptimizer card and click Connect.
- Check the installation name and Plant Id the panel shows and click Save and connect. The dongle restarts, and after about fifteen seconds Overview shows “Everything works”.
Generating a code gives the installation a new token. If you use GbbConnect2, the Home Assistant MQTT bridge or chart links with the token in them, enter the new token there afterwards. The pairing guide has screenshots and explains the error messages.
You can also enter the details by hand in the fields below the pairing card: the MQTT server, Plant Id and token from the installation (never post the token publicly), then Save and Apply and restart. Firmware older than 2.3.0, which has no pairing, is set up the same way. If it has the stock ESPHome panel, the fields are MQTT Server, Plant Id and Plant Token, and the button is Apply Settings (Restart).
Add to Home Assistant (optional)
The dongle shows up as Discovered in the ESPHome dashboard next to Home Assistant. Click Adopt, or add it to Home Assistant directly; the API encryption key is created on the first connection.
After adoption your ESPHome dashboard compiles the firmware and updates are up to you. You can go back to the Factory firmware from this installer at any time.
Connect to the inverter
Make the cable from a ready-made Ethernet cable with one plug cut off: the factory-crimped plug goes into the inverter, and the RS485 wires go into the dongle’s A, B and optionally GND terminals. Count pin numbers; do not go by wire colours.
The pinouts section shows which port and which pins to use. The port defaults to 9600 baud, 8N1; you can change it in the panel without a restart.
Check that it works
In GbbOptimizer, in Prognoza baterii (Battery forecast), choose Operacje → Pobierz wszystkie dane z instalacji (download all data from the installation) and watch the dongle’s log. You should see requests from GbbOptimizer and answers from the inverter; a line starting with 01 03 is a read from the inverter at Modbus address 1.
Requests without answers almost always mean wiring: check the cable with a tester and try swapping A and B. More in the FAQ.