Edge driver for VELUX ACTIVE with NETATMO (gateway KIX 300). The hub talks to the gateway over HomeKit on your own network: no cloud, no Apple device, no bridge computer.
What you get
- Roof windows: open, close and any position (half open works too), plus an open/closed contact for routines
- Blinds, awnings and roller shutters: open, close and any position
- Climate sensor: temperature, humidity, CO2
- Live updates pushed by the gateway, safety poll every 5 minutes, automatic reconnect
Not available over HomeKit (VELUX limitation): the rain sensor and the departure mode. Both are available with the optional Stoeckie Bridge, see the update below.
Before you start
- The gateway must not be paired with Apple Home or another HomeKit controller (it accepts only one)
- You need the 8 digit HomeKit code from the sticker on the gateway
- Give the gateway a fixed IP (DHCP reservation)
Install
- Enroll your hub: SmartThings. Add a little smartness to your things. (Stoeckie Edge Drivers) and install VELUX ACTIVE (HomeKit local)
- Add device > Scan nearby. A “VELUX Gateway” device appears
- Gateway device > Settings > HomeKit code. Pairing runs once on the hub and takes 1 to 3 minutes, then every window, blind and the sensor appears as its own device
- Not found? Set the gateway IP in the settings (port 5001 is used automatically)
Source and README: GitHub - Stoeckie/smartthings-velux-active-local: Local SmartThings Edge driver for VELUX ACTIVE (KIX 300) windows, blinds and climate sensor over HomeKit. Pure Lua HomeKit controller, no cloud, no Apple device. · GitHub
Developer notes
- There is no HomeKit library on the hub, so the whole controller is in pure Lua: SRP 6a with the 3072 bit group, Ed25519, X25519, ChaCha20 Poly1305, HKDF and TLV8. Tested against RFC vectors, aiohomekit and HAP python. Pairing takes about 2 minutes on a hub, reconnects only a few seconds.
- My gateway answered ping but had no open ports and no mDNS record. A wifi reset of the gateway (gear button until the LED blinks red, press again, wifi setup in the VELUX app) brought HomeKit on port 5001 back. Window pairings stayed.
- The gateway calls every window “Roof Window” and every awning “Awning Blinds”; the driver numbers them, rename them in the app.
Running here on a v3 hub with 3 roof windows, 3 awnings and the sensor. Feedback welcome.
Update: departure mode and rain sensor
HomeKit has no lock, so two things were missing from this driver: the departure mode (all windows and blinds blocked, like the departure switch) and the rain sensor of the gateway. Both only exist in the VELUX cloud, so they now come through the Stoeckie Bridge (small service on a pc that is always on, Windows or Docker):
- VELUX vertrekstand: a lock device. Locked = departure mode on, unlocked = normal use. Works in routines, e.g. everyone left > lock.
- VELUX regensensor: its own rain sensor device (rain detected or not), with the rain icon.
- Both are read every 60 s; adjustable in the settings of VELUX vertrekstand (30 to 600 s).
The windows and blinds keep running locally through this driver; the bridge is optional.
Setup on the bridge setup page: enter the login of the VELUX ACTIVE app. Locking works right away. Unlocking has to be signed with a key from the gateway, so once: click Gateway koppelen, wait until the gateway light flashes and press the gateway button.
Unlock signing and pairing follow the protocol documented by ha-velux-active. Running here with a KIX 300 and three roof windows.
Update (2026-11-01a): offline notification
SmartThings has no routine trigger for “device offline”. The VELUX Gateway device now has a Connection status (Connected or Offline), so you can make a routine:
If VELUX Gateway > Connection is Offline, then send a notification to members.
Short drops (a reconnect or one missed poll) are ignored: Connection only turns Offline after 2 minutes without a connection. Every drop is remembered: when the connection is back the device shows Last drop with the time (UTC), how long it lasted and the reason.
For a device that drops off now and then (like a robot on a weak wifi spot) set “How long does this status last” to a few minutes. The driver updates itself from the channel; the status shows after the next poll. README updated.
Tip: also a “back online” notification
If you made the Offline routine (VELUX gateway device, Connection is Offline, send notification), duplicate it in the app and change the condition to Connection is Connected, with a text like “VELUX gateway is back online”. Then you know the problem is over without opening the app. The device also shows Last drop (when, how long, why).
README updated with the same tip.
Update (build 2026-11-05a), please update
Fix found while building the Honeywell T6 driver, which uses the same HomeKit controller: the connection could hang without anyone noticing. After a request got no answer the session was closed, but the reader kept waiting forever (on the hub, closing a socket does not wake a coroutine that is blocked reading it). Result: no window or blind updates and commands, while the gateway still showed “Connected”. The reader now checks every 20 s and reconnects; a request without answer is logged as “no response from the gateway: reconnecting”.
Update build 2026-11-08a: no more “not all status information updated yet”
The SmartThings app shows that message when an attribute has no value. On a device that never had a connection drop, Last drop was still empty. It now starts with “No drops yet”.
Code: GitHub - Stoeckie/smartthings-velux-active-local: Local SmartThings Edge driver for VELUX ACTIVE (KIX 300) windows, blinds and climate sensor over HomeKit. Pure Lua HomeKit controller, no cloud, no Apple device. · GitHub
Update build 2026-11-08b: no Offline notification for a short network outage
New setting Offline after (minutes), default 5. Connection only turns Offline after that many minutes without contact. Before it was 2 minutes, so a router or network update at night (a few minutes without network) gave an Offline notification even though nothing was wrong. A real outage still gives one.
Also: after a drop the driver now tries again at least every minute (was up to 5 minutes), so it is back sooner once the gateway is reachable again.
Code: GitHub - Stoeckie/smartthings-velux-active-local: Local SmartThings Edge driver for VELUX ACTIVE (KIX 300) windows, blinds and climate sensor over HomeKit. Pure Lua HomeKit controller, no cloud, no Apple device. · GitHub