Skip to content

mctofu/velux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

velux

A go library and cli for interacting with Velux Active devices using the HomeKit protocol. It can be used to read data from and control windows.

This sits on top of mctofu/homekit to provide an easier interface to deal specifically with windows.

CLI Usage

Installing

go get github.com/mctofu/velux/cmd/velux

Initialize

For now you first need to create and pair a controller using the homekit cli (https://github.com/mctofu/homekit). Once you've paired with the Velux Active gateway you need to import the pairing.

$ velux import
Imported controller and 1 pairings

Read status

The status command retrieves environment measurements and window positions

$ velux status
Temperature: 75.2F
Relative Humidity: 36.0
CO2 PPM: 623
1234567890abcdef (Roof Window): 65 (65)
2234567890abcdef (Roof Window): 20 (20)
3234567890abcdef (Blinds): 0 (0)

Setup friendly identifiers (Optional)

Assign a short code and descriptor to a window for easier usage

velux setup --serial 1234567890abcdef --code fwin --desc "front window"
$ velux status
Temperature: 75.2F
Relative Humidity: 36.0
CO2 PPM: 626
front window (fwin): 65 (65)
2234567890abcdef (Roof Window): 20 (20)
3234567890abcdef (Blinds): 0 (0)

Set window positions

Set all window positions or filter by serial, type or code

$ velux set -c fwin -p 25
Updated windows:
front window (fwin): 65 (25)

About

A go library and cli for interacting with VELUX ACTIVE devices.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages