The Velux driver connects to the Velux KLF-200 gateway to control Velux windows, blinds, and shutters. The KLF-200 is a Velux interface that provides network access to io-homecontrol compatible products (roof windows, roller shutters, blinds, awnings).
The driver communicates with the KLF-200 via a TLS-encrypted TCP connection and exposes all registered Velux products as gateway addresses, allowing integration with the building automation system.
This driver needs a licence on the gateway (see Gateways). Without it the driver does not start: the gateway keeps restarting it and its log shows
missing license. Contact support@weble.ch to enable it.
51200).Once connected, all Velux products registered on the KLF-200 are automatically discovered and their addresses are created.
| Label | JSON Key | Description |
|---|---|---|
| Name | name | A descriptive name. |
| Cluster ID | cluster | Cluster identifier. |
| Description | description | Optional description. |
| Host | host | IP address of the Velux KLF-200 gateway. |
| Port | port | TCP port. Default: 51200. |
| Password | password | KLF-200 password. |
| FingerPrint | fingerPrint | Optional TLS certificate fingerprint. |
| Key | pemCertificate | TLS PEM certificate file (upload). |
{
"host": "192.168.1.50",
"port": 51200,
"password": "<password of the KLF-200 label>"
}
Addresses use the prefix %velux: and are created automatically, one group per product registered in the KLF-200. <product> is the product name set in the KLF-200, or its node number if it has no name.
| Address | Access | Description |
|---|---|---|
%velux:<product>/info |
read | All properties of the product as one JSON object. |
%velux:<product>/info/<Property> |
read | One property, for example CurrentPosition, CurrentPositionLive (position estimated every second while the product moves), RemainingTime, NodeID, SerialNumber. |
%velux:<product>/position |
write | Target position as a number between 0 and 1 (for example 0.5 for 50 %). Any other value is rejected with the error value must be between 0 and 1. If your source works in percent, divide it by 100 in the route. |
%velux:<product>/stop |
write | Write 1 (any non-zero value) to stop the current movement. Writing 0 has no effect. |
Positions reported by the driver (%velux:<product>/info/CurrentPosition) use the same 0-1 scale, rounded to 0.01.
| Property | Value |
|---|---|
| Readable | No (values are pushed by the KLF-200) |
| Writable | Only /position (0...1) and /stop |
| Created automatically | Yes, for every product of the KLF-200 |
| Routable | Yes |
| Loggable | Yes |
A BMS or a KNX group address gives the position in percent (0 to 100). Create a route from this address to %velux:<product>/position with a routing function that divides the value by 100:
function toFraction(v, src, dst, options){
var p = Number(v)
if(v === null || v === "" || isNaN(p)) return
return Math.min(Math.max(p / 100, 0), 1)
}
Route %velux:<product>/info/CurrentPosition back to the BMS, multiplied by 100, to show the real position.
| Symptom | Cause | What to do |
|---|---|---|
The gateway stays red; the log shows initial login to <host>:51200 failed |
Wrong Host or Password, or the KLF-200 cannot be reached. | Check the IP address and the password of the label; check that the KLF-200 answers on the network. |
The log shows missing license |
No licence for the Velux driver. | Contact support@weble.ch. |
| A new product has no address | The product list is only read at start and at each full reconnection. | Restart the gateway after pairing the product in the KLF-200. |
Write error object not found |
The product is not paired, or no longer known by the KLF-200. | Check the product in the KLF-200, then restart the gateway. |
Write error value must be between 0 and 1 |
A percentage was written to /position. |
Divide the value by 100 (see 5.1). |
Write error read only |
A value was written to an /info address. |
Write to /position or /stop. |
Log warning position not confirmed on <product> after retries |
The product did not report the target position after four tries (obstacle, radio range, product locked). | Check the product on site. |
To read the driver log, open the menu ☰ of the gateway and choose Logs (see Logs of a gateway).