You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

115 lines
6.0 KiB

6 years ago
![Logo](admin/klf200.png)
# yunkong2.klf200
[![Travis CI](https://travis-ci.org/MiSchroe/yunkong2.klf200.svg?branch=master)](https://travis-ci.org/MiSchroe/yunkong2.klf200)
[![Build status](https://ci.appveyor.com/api/projects/status/t28nlps5c99jy5v7/branch/master?svg=true)](https://ci.appveyor.com/project/MiSchroe/yunkong2-klf200/branch/master)
[![GitHub issues](https://img.shields.io/github/issues/MiSchroe/yunkong2.klf200.svg)](https://github.com/MiSchroe/yunkong2.klf200/issues)
[![GitHub license](https://img.shields.io/github/license/MiSchroe/yunkong2.klf200.svg)](https://github.com/MiSchroe/yunkong2.klf200/blob/master/LICENSE)
[![NPM version](https://img.shields.io/npm/v/yunkong2.klf200.svg)](https://www.npmjs.com/package/yunkong2.klf200)
[![Downloads](https://img.shields.io/npm/dm/yunkong2.klf200.svg)](https://www.npmjs.com/package/yunkong2.klf200)
[![NPM](https://nodei.co/npm/yunkong2.klf200.png?downloads=true)](https://nodei.co/npm/yunkong2.klf200/)
This adapter is for controlling a VELUX® KLF-200 interface. This adapter is neither an official VELUX product nor is it supported by the company that owns the VELUX products.
The main intention of this adapter is to control electric roof windows and/or electric blinds or roller shutters. Though the KLF-200 interface is able to connect to further devices like lights, switches, canvas blinds etc. I haven't developed the adapter for use with these kind of devices. Thus, it could be possible, that these devices could be controlled by this adapter, too.
The adapter works with the internal REST API of the KLF-200 interface and you don't need to wire the inputs and outputs of the box.
## User documentation
You can find the user documentation in several languages:
![English flag](img/united-kingdom-flag-round-icon-16.png) [English documentation](docs/en/ReadMe.md)
![German flag](img/germany-flag-round-icon-16.png) [Deutsche Dokumentation](docs/de/ReadMe.md)
![France flag](img/france-flag-round-icon-16.png) [Documentation française](docs/fr/ReadMe.md)
![Italien flag](img/italy-flag-round-icon-16.png) [Documentazione italiana](docs/it/ReadMe.md)
![Netherlands flag](img/netherlands-flag-round-icon-16.png) [Nederlandse documentatie](docs/nl/ReadMe.md)
![Poland flag](img/poland-flag-round-icon-16.png) [Polska dokumentacja](docs/pl/ReadMe.md)
![Portuguese flag](img/portugal-flag-round-icon-16.png) [Documentação portuguesa](docs/pt/ReadMe.md)
![Russian flag](img/russia-flag-round-icon-16.png) [Российская документация](docs/ru/ReadMe.md)
![Spanish flag](img/spain-flag-round-icon-16.png) [Documentación española](docs/es/ReadMe.md)
## Known restrictions
* The interface is restricted by storing a maximum of 32 scenes in total.
* The REST API doesn't provide any feedback of a scene to be finished, therefore each scene is supposed to run at least 30 seconds.
* Currently, only single product scenes are supported to control from the product side. Thus, it is always possible to create scenes with several products and control them from the scenes part.
* The REST API doesn't let me read the current status of a product. Therefore the current level of a product is always what was set last and defaults to 0% on initialization of the adapter. This also means, that further logic implemented in other adapters won't work if you e.g. open or close your window with the original remote control.
## Documentation of the data points
### Devices
There are two devices: "products" and "scenes". The products device lists all registered products wether they are used in a scene or not. The scenes device lists all scenes that you have created in the interface.
#### Products
* productsFound - number of products registered in the interface
* 0...n - channel for each registered product
* category - name of the category, e.g. Window Opener, Roller Shutter
* scenesCount - number of scenes the product is used in
* level - This data point is only available when the product can be controlled from a scene.
You can set a value to run a scene that will drive the product to that specific value.
#### Scenes
* scenesFound - number of scenes found in the interface
* 0..n - channel for each scene
* productsCount - number of products that are controlled through this scene
* silent - true/false if the scene will run in silent mode (only, if the product supports it).
Currently, you can only read this information.
* run - true/false set to true to run the scene. Will change to false again after the scene has finished
## Changelog
#### 0.9.5
* (Michael Schroeder) Bug fixes
#### 0.9.4
* (Michael Schroeder) Compatible to Admin 3, add documentation
#### 0.9.0
* (Michael Schroeder) Initial public beta release
#### 0.0.1
* (Michael Schroeder) Initial developer release
## License
The MIT License (MIT)
Copyright (c) 2018 Michael Schroeder <klf200@gmx.de>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
------------------------------------------------------------------------------
VELUX and the VELUX logo are registered trademarks of VKR Holding A/S.