HomeSeer HS4 Hub
- HS4 4.2 or later on Windows or Linux (Mono); the same package serves both.
- Running on ControlZ's Linux lab hub. Windows hub reports are welcome.
- Files only inside the HomeSeer folder; settings in
Data/CzLightning/registry.json.
ControlZ Lightning Monitor brings live lightning data from Lightning Monitor, ControlZ's own Mac app for Boltek LD-350 and LD-250 detectors, into a HomeSeer HS4 hub through the app's read-only local API. One status-only HomeSeer device reports strike rates, the last and nearest strike, storm cells and the detector's Close and Severe alarms, updated as strikes happen.
No cloud is involved: the hub reads the Mac on your home network, and the plugin can't change Lightning Monitor or the detector.
Version 1.0.0.8 · Ready to submit to the HomeSeer Plugin Store · Free · HS4 4.2 or later on Windows and Linux
ControlZ Lightning Monitor is ready to submit to the HomeSeer Plugin Store. The store build is staged but hasn't been submitted yet, so it can't be downloaded.
How it works
The Boltek detector feeds Lightning Monitor on the Mac. The hub reads Lightning Monitor's local API and turns it into one HomeSeer device.
In Lightning Monitor open Settings › Integrations › Local API, turn on Serve a local API and click Generate to create a token. The API is off until you do this.
Enter the Mac's host name, port 8787 and the token in the plugin's Settings, then click Save & connect.
On first contact a Lightning Monitor device appears on floor Lightning Monitor, room Weather, with the Sensors and ControlZ categories.
The live event stream updates HomeSeer as each strike happens, and a full state read every 60 seconds corrects counts and covers any gaps.
Features
Every value is a native HomeSeer feature, ready for ordinary value-change Events.
Strikes, close strikes and noise per minute, plus the number of strikes today.
Distance, bearing, compass direction (N to NNW), type (−CG, +CG, −IC or +IC) and time, updated the moment Lightning Monitor reports a strike.
Distances to the nearest strike and storm, the number of storm cells, and the nearest storm's intensity (Very weak to Severe) and trend.
Alarm / Clear features that follow the detector's close and severe alarms.
Know when the detector or the Mac has dropped off. The device summary says so too.
For example "announce when lightning is close" or "unplug the pool pump when the severe alarm sounds".
The device shows a short summary such as "12 strikes/min · nearest 19.3 km", or "Detector disconnected" or "Unreachable" when something is wrong.
A live table of every feature and the connection status, with Reconnect and Repair HS devices.
Checks the address and token without changing the running connection. A wrong token, the API being off and an unreachable Mac each get a plain message.
Reconnects back off from 5 seconds to 5 minutes, and each distinct problem is logged once rather than filling the HomeSeer log.
The device is keyed on Lightning Monitor's permanent instance id, so it survives address changes. Missing features are re-added on start.
The Sensors and ControlZ categories mean the ControlZ Export plugin can show the device in the ControlZ app through your own hub.
Lightning Monitor's local API never includes the station position, so HomeSeer only ever sees bearing and distance.
Compatibility
The plugin reads Lightning Monitor; it doesn't talk to the detector itself.
Data/CzLightning/registry.json.In HomeSeer
A status-only Lightning Monitor device with no controls. Values of −1 or 0 mean "none" where noted.
100 Connected or 0 Disconnected.
100 Alarm or 0 Clear, for Events on alarm changes.
Strikes, close strikes and noise per minute; strikes today; storm cells.
Last strike distance, nearest strike and nearest storm, in kilometres (−1 = none).
Last strike bearing in degrees (−1 = none) and direction from 1 N to 16 NNW (0 = none).
Type 1 −CG, 2 +CG, 3 −IC or 4 +IC (0 = unclassified or none). Time in Unix seconds, shown as the hub's local date and time; it changes on every strike.
Intensity from 1 Very weak to 6 Severe, and trend 1 weakening, 2 steady or 3 intensifying (0 = none).
Screenshots
The image prepared for the HomeSeer Plugin Store listing.
Screenshots of the plugin's Home and Settings pages haven't been captured yet. The store artwork is a storm cloud and lightning bolt drawn by ControlZ. For the app itself, see the Lightning Monitor screenshots.

The artwork staged with the store kit.
HomeSeer Plugin Store · 500 × 500Technical details
Three read-only requests to the Mac on your network. Nothing else.
GET /api/v1 for the instance id and app version, GET /api/v1/state for a full snapshot, and GET /api/v1/events for the live event stream. State and events need the token as a Bearer header.
A state read at start and every 60 seconds. The event stream sends state every 15 seconds, plus strike, alarm and detector messages as they happen. No data for 60 seconds counts as a dead connection.
Close alarm becomes Alarm: announce, flash a light or unplug equipment. Last strike time changes: runs on every strike. Nearest storm in the range 0 to 20: a storm within 20 km.
The token is stored only on your hub and never shown back on the Settings page; leave the field blank to keep it. Generate a new one in Lightning Monitor to revoke it. No telemetry, no cloud and no inbound ports on the hub.
Read-only, so no settings or alarm changes from HomeSeer. One Lightning Monitor installation per hub. You type the Mac's host name or address; there is no discovery yet. No strike map or coordinates.
Plain HTTP on your local network to the Mac you name, with the token in the Authorization header. The hub needs no internet access for this plugin.
Requirements
A Lightning Monitor station and a HomeSeer hub on the same network.
HS4 version 4.2.0.0 or later, on Windows or Linux.
With Local API turned on and an API token generated.
An LD-350 or LD-250 connected to Lightning Monitor.
The hub must be able to reach the Lightning Monitor Mac, on port 8787 by default.
Setup
Once listed, the plugin installs from the HomeSeer Plugin Store. During the beta the same package installs from a ControlZ lab package.
In Lightning Monitor: Settings › Integrations › Local API, turn on Serve a local API and click Generate. The token is copied to the clipboard.
In HS4 open Plugins → Add, search for "ControlZ Lightning Monitor" and install it, then enable it in Plugins → Manage.
Open Plugins › ControlZ Lightning Monitor › Settings, enter the Mac's host name (for example your-mac.local), port 8787 and the token, then click Save & connect.
Open Home to watch the values, then build an Event, for example announce when Close alarm becomes Alarm.
The plugin is ready to submit to the HomeSeer Plugin Store and will be free. Use the contact form to ask about the beta or to be told when the listing goes live. To try Lightning Monitor itself, ask to join its TestFlight beta on the app page.
Boltek, LD-350 and LD-250 are trademarks of their owner and are named only to describe compatibility.