Decoding SolarCity Inverter Radio Data
Updated

My solar setup has a Power-One inverter and a SolarCity monitoring box. The inverter sends its readings over a Digi XBee radio. I wanted those readings on my own machine, so I replaced the monitoring box with a SMLIGHT bridge and Python software.
SolarCity Inverter Radio can take over the original box’s job or listen alongside it. Both modes save readings locally and provide the same JSON API, optional dashboard, and Home Assistant integration.
I used a Power-One PVI-5000-OUTD-US-Z, its existing Digi XBee radio, and a SMLIGHT SLZB-06U in replacement mode. This is the only hardware combination tested so far. Replacement requires the original box’s radio identity and network settings. Pairing with a new coordinator identity remains untested. Passive mode has offline tests but has not been verified on live hardware.
Two ways to collect readings
| Mode | Original SolarCity / Tesla box | What our collector does |
|---|---|---|
| Replacement (default) | Powered off | Maintains the network, answers startup messages, and queries the inverter |
| Passive (experimental) | Powered on and working | Listens to the box’s requests and the inverter’s replies |
Choose the mode with SOLAR_COLLECTOR_MODE in the generated .env:
replacement or passive. The setup guide
covers discovery and configuration for both.
In passive mode, the original box controls which registers are queried and how often. Our collector saves readings only after capturing a complete request and matching reply. It can reassemble supported fragmented replies, but missing requests or fragments leave gaps. It sends no queries or coordinator replies and never switches to replacement mode automatically.
Passive decoding has passed software tests and replay of recorded exchanges, but live measurement capture remains unverified. The official SMLIGHT firmware can omit the required unicast packets. A capture fix is under evaluation; there is no validated passive firmware package yet. Selecting passive mode alone does not fix reception. Testing must also check for unintended hardware acknowledgments.
The network coordination, startup exchange, and polling described below apply to replacement mode. In passive mode, the original box handles those tasks.
Radio protocol
The measurements pass through these protocols:
Python collector
Spinel over TCP
SMLIGHT raw radio
IEEE 802.15.4 / Digi Zigbee
Inverter XBee radio
Serial Modbus RTU
Power-One SunSpec registers
The radio payload contains Modbus RTU register reads and replies. These expose power, exported energy, voltage, current, frequency, temperature, and operating state.
Digi documents its serial-data service under application profile 0xc105, cluster
0x0011, and endpoint 0xe8. Those fields provide the route to the serial data
behind the radio. Digi application profile documentation
The supported network uses legacy stack profile 0 and unencrypted packets.
The replacement collector implements the Digi network and application behavior this
inverter expects; radio hardware compatibility alone isn’t sufficient.
Connecting to the radio
The SLZB-06U exposes its radio through a network serial bridge. That lets the collector run on a machine with no USB connection to the radio.
The tested replacement configuration uses SMLIGHT’s CC2652P OpenThread RCP firmware build
20260304, a 460800 baud serial bridge, and TCP port 6638.
SMLIGHT documents this firmware mode.
Although the firmware is called OpenThread RCP, the project uses it as a raw IEEE 802.15.4 interface. Python supplies the legacy Digi Zigbee frames. There is no Thread network in this arrangement.
In replacement mode, the radio handles transmission, reception, frame checksums, and MAC acknowledgments. Python handles coordinator messages, application acknowledgments, measurement requests, and decoding. The repository pins the Python radio dependency to a specific revision so that another person can reproduce the same interface.
Managing the radio network
The inverter expects a coordinator that advertises the network and answers the messages needed to stay connected.
The implementation handles beacons, association, device announcements, address verification, direct routing, and recovery after the inverter leaves or rejoins. It accepts only the configured inverter and learns its current short address from identifiable traffic. A remembered address alone is not enough to start polling.
The tested XBee has coordinator verification enabled through JV=1. Digi’s
JV documentation
describes this startup check. The separate timer-based network watchdog was
configured as NW=0, meaning disabled.
Startup exchange
The inverter also sends an application-level startup request. The observed exchange is:
Inverter: f4 00 01 01 01
Collector: f5 00 00 00
The collector sends the response on the same Digi profile, serial-data cluster, and endpoints. It uses a fresh APS counter and requests an APS acknowledgment. It also sends the ordinary APS acknowledgment for the incoming request.
A MAC acknowledgment means a radio frame
arrived. An APS acknowledgment confirms delivery at the Zigbee application layer.
The F5 message answers the startup request itself.
The collector reproduces the observed bytes. I haven’t fully decoded the proprietary fields or verified this exchange on other inverter models. An already joined inverter can also proceed to readings without sending this startup message on every reconnect.
Requesting and validating a measurement
A power read in the supported register map asks Modbus unit 1 for five registers
starting at address 40360:
01 03 9d a8 00 05 2b 85
That is a complete Modbus RTU request, including its CRC. It sits inside the Digi radio message. TCP is used between Python and the bridge, but the payload is not Modbus TCP and has no Modbus TCP header.
The response contains a power value and scale factor. For a synthetic example,
a raw value of 5000 with scale -1 means 500.0 W. Register values are
big-endian; the Modbus CRC is sent low byte first.
The replacement collector checks identity, addressing, application fields, expected length, and CRC before accepting a reading. It rejects radio errors and unsupported fragmentation. Missing readings remain gaps in the data.
By default, replacement mode sends one measurement query per minute, with power alternating with energy and diagnostics. Power normally updates every two minutes. Network maintenance continues independently, and packet delivery retries are bounded. The integration reads inverter registers; it does not change inverter operating settings.
Reproducing the setup
The repository includes the collector, decoder, synthetic protocol tests, an optional dashboard, and a single container image with an optional dashboard flag. The detailed setup guide covers the exact configuration fields and startup sequence.
The main steps are:
- Confirm the inverter and radio match the supported legacy setup.
- Configure the SMLIGHT RCP bridge, then use the included
discovery tool
to gather the radio settings and generate
.envwith--write-env .env. - Review the discovered equipment, choose replacement or passive mode, and validate the generated configuration.
- Power off the original box for replacement, or leave it working for passive. After discovery finishes, give the Python collector exclusive access to the SMLIGHT bridge.
- Check fresh readings and saved history. In replacement mode, also observe startup and overnight recovery. In passive mode, check that complete exchanges are being captured.
The setup guide has the commands for running locally or in a container. The
collector’s JSON API is on port 8766. The optional dashboard runs on port 8765,
either separately or in the same container, and reads that API. Both arrangements
work with either collection mode. Home Assistant can use the same API through its REST
sensors; the repository includes a
power and energy example.
Starting or stopping the dashboard does not restart the radio connection, and
API reads do not increase inverter polling frequency.
A capture used to inspect the application exchange needs to include unicast traffic. Stock TI RCP promiscuous reception can miss ACK-requested unicasts, so a quiet capture is not conclusive. An independent, verified sniffer can help during initial characterization. Replacement collection runs without the original box; passive collection depends on that box continuing to query the inverter.
The repository contains fictional identities and synthetic telemetry. Installation configuration, captures, databases, and logs stay out of version control. The collector API and dashboard bind to localhost by default because the data includes information about the local equipment.
Testing and limitations
With the original box powered off, testing covered recovery from a radio reset, a leave/rejoin cycle, and an overnight-to-morning transition on one installation. Independent hardware reproductions and long-term reliability remain unverified.
Passive request/reply matching, fragment reassembly, storage, and reconnect behavior have been tested with synthetic exchanges. Live reception alongside the original box and the radio’s acknowledgment behavior remain unverified.
The included discovery tool can recover candidate settings from inverter traffic and explains the evidence for each value. On an operating replacement network, it recovered all five required radio settings from inverter-originated frames. An inverter that has already left its network may expose less information. Recovering from that state, or teaching it a new coordinator identity, remains unverified.
Related projects
solarcity_sniff records and decodes SolarCity traffic. Other communities have built replacement coordinators for Enecsys and APsystems. Their protocols differ from this inverter’s. More references are in the repository’s sources and credits.