I have Velux Integra solar-powered roof awnings and a KLF200 controller which communicates with them.
The following scripts allow me to control the awnings through HomeSeer devices (which I then use to do a bunch of scheduling and sunshine/weather related scripting).
To link the HomeSeer and Velux devices, they must have the same name as seen in the HomeSeer and Velux web interfaces.
velux-common.vb
common functions for Velux KLF200 - included by the other scripts
velux-device.vb
Does the positioning when required. Set an event so this is called when the HomeSeer device changes. It takes three parameters (comma separated) - KLF200 IP address, password, and the device reference.
e.g.
192.168.0.30,password,252

velux-check.vb
Checks the Velux positions against HomeSeer devices and updates HomeSeer if necessary (e.g. if you used the manual controls). Set an event to call this every 15 minutes, it takes 3 or more parameters - KLF200 IP address, password, and device references of all Velux devices.
e.g.
192.168.0.30,password,252,253,289
I have my devices set up like this:

The icons are also attached.
It has ONLY been tested with roof awnings - if you have any other devices I'd be interested to see the debug output, you can get this by editing velux-common.vb and setting "debug = true" near the end. Output goes to the log and shows the data of the commands sent and received.
The following scripts allow me to control the awnings through HomeSeer devices (which I then use to do a bunch of scheduling and sunshine/weather related scripting).
To link the HomeSeer and Velux devices, they must have the same name as seen in the HomeSeer and Velux web interfaces.
velux-common.vb
common functions for Velux KLF200 - included by the other scripts
velux-device.vb
Does the positioning when required. Set an event so this is called when the HomeSeer device changes. It takes three parameters (comma separated) - KLF200 IP address, password, and the device reference.
e.g.
192.168.0.30,password,252
velux-check.vb
Checks the Velux positions against HomeSeer devices and updates HomeSeer if necessary (e.g. if you used the manual controls). Set an event to call this every 15 minutes, it takes 3 or more parameters - KLF200 IP address, password, and device references of all Velux devices.
e.g.
192.168.0.30,password,252,253,289
I have my devices set up like this:
The icons are also attached.
It has ONLY been tested with roof awnings - if you have any other devices I'd be interested to see the debug output, you can get this by editing velux-common.vb and setting "debug = true" near the end. Output goes to the log and shows the data of the commands sent and received.
Comment