How the PV system, the Enphase batteries and the solar-thermal collectors fit together, and why we chose microinverters
Continue readingCategory Archives: Photovoltaic
AC-coupling an Enphase IQ8 system with a 3-phase Victron ESS
What we built, why it is wired the way it is, and the pitfalls we met on the way — notes from a retrofit in Luxembourg
Continue readingRenew enphase JWT token
I am fetching my PV data over web calls; my openhab system (webcalls and enphase binding) requests these data from the local enphase gateway. In order for this to work, you need a JWT token from your enphase account. This token is valid exactly 1 year.
Step 1: open a Terminal and get a session ID from Enlighten:
SESSION=$(curl -s -X POST https://enlighten.enphaseenergy.com/login/login.json? \
-F "user[email]=my@email.com" \
-F "user[password]=YOUR_ENLIGHTEN_PASSWORD" | jq -r '.session_id')
echo "Session: $SESSION"This returns a session ID like for example: bd998gh582w15h598b124a65745zz3wl.
Step 2: Exchange session for a JWT. For this you need your Envoy serial number. Get it with this command:
curl -sk https://IP.OF.LOCAL.ENVOY/info | grep -o '<sn>[^<]*</sn>'This will return your Envoy serial number <sn>123456789012<s/n>.
Step 3: Get your JWT token:
ENVOY_SERIAL="your_serial_here"
TOKEN=$(curl -s -X POST https://entrez.enphaseenergy.com/tokens \
-H "Content-Type: application/json" \
-d "{\"session_id\": \"$SESSION\", \"serial_num\": \"$ENVOY_SERIAL\", \"username\": \"my@email.com\"}")
echo "Token: $TOKEN"Step 4: Verify that it works by querying your Envoy:
curl -sk -H "Authorization: Bearer $TOKEN" \
https://IP.OF.LOCAL.ENVOY/production.json?details=1 | jq '.production[0].wNow'It should return a wattage.
Now replace the password in openhab by the JWT token value.
2025 solar production & energy consumption
(for full analysis on 2025, click here)
Our micro inverter based solar installation (panel power: 16.46 kWp, AC output power: 12.2 kWp) runs since February 2025. (open picture in new tab to zoom in)






