MiSchroe / ioBroker.klf200

Adapter for ioBroker to connect to a KLF200 interface and run scenes and products.
MIT License
17 stars 14 forks source link
adapter iobroker iot klf-200 velux

Logo

ioBroker.klf200

Number of Installations Stable version Known Vulnerabilities Test and Release GitHub issues GitHub license

NPM version Downloads

Translation status

gitlocalized gitlocalized gitlocalized gitlocalized gitlocalized gitlocalized gitlocalized gitlocalized gitlocalized

NPM

Donation Button

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 tested the adapter for use with these kind of devices. Nonetheless it should be possible, that these devices could be controlled by this adapter, too.

The adapter works with the official TCP/IP interface of the KLF-200 that was documented with the release of firmware version 2.0.0.71. You don't need to wire the inputs and outputs of the box, but you have to connect the KLF-200 to a LAN using an ethernet cable.

ATTENTION: BREAKING CHANGES!

In case you have an older version of the KLF-200 you have to install the new firmware (at least version 2.0.0.71) to have this adapter work with your KLF-200 interface. Newer versions of the KLF-200 have installed the current firmware, already.

This version of the adapter doesn't work with older firmware versions.

Updating your KLF-200 is strictly at your own risk. In case of a power outage during the update you may loose the functionality of the KLF-200.

User documentation

You can find the user documentation in several languages:

English flag English documentation

German flag Deutsche Dokumentation

France flag Documentation française

Italien flag Documentazione italiana

Netherlands flag Nederlandse documentatie

Poland flag Polska dokumentacja

Portuguese flag Documentação portuguesa

Russian flag Российская документация

Spanish flag Documentación española

Known restrictions

Technical limitations of the KLF-200 itself:

Limitations of the adatper:

Documentation of the data points

Devices

The following devices are defined:

Channels

Gateway

Groups

Info

Products

Note: According to the type of the actuator the raw values will be mapped either to a range of 0%-100% or 100%-0%. This can be irritating especially for the limitation values, where the max limitation value can be lower than the min limitation value. The logic behind is that the min raw value starts at 0 and the max raw value ends at 51200 and a limitation, e.g. from a rain sensor, will be set by setting these raw values internally. If you need it the right way, please use aliases in ioBroker.

Functional parameters and other raw values

The functional parameters control further aspects of the product while moving. Mostly they are used for controlling the speed, but they can be used for different other aspects.

To use the functional parameters you have to set the values according to your need before you change the targetPosition state.

The values of the state provide multiple manipulation modes: Access method Description Range (Decimal) Range (Hex) Notes
Relative 0% - 100% 0 - 51200 0x0000 - 0xC800 Each percent step equals 512. The product moves to that relative value, e.g. 50% open.
+/- -100% - +100% 51456 - 53456 ß0xC900 - 0xD0D0 Each percent step equals 10. The product advances its position by the provided value, e.g. open the window for additional 10%. Not every product supports this method.
Target The target value for the parameter. 53504 0xD100 In case of an already running command the target value could be different to the current value.
Current The current value of the parameter. 53760 0xD200 You can use this value to stop a movement if applicable.
Default The default value for the parameter. 54016 0xD300 Sets the parameter to its default value.
Ignore The parameter won't be provided. 54272 0xD400 The parameter won't be set for the command.

Note: This tables is valid for the targetPositionRaw, too.

Scenes

Changelog

1.3.5 (2024-11-20)

1.3.4 (2024-11-19)

1.3.3 (2024-11-01)

1.3.2 (2024-10-01)

1.3.1 (2024-07-17)

1.3.0 (2024-07-15)

1.2.0 (2024-02-09)

1.1.2 (2023-10-19)

1.1.1 (2023-10-18)

1.0.1 (2020-07-20)

1.0.0

0.9.5

0.9.4

0.9.0

0.0.1

Contribute

To release a new version run the following script:

npm run release major|minor|patch|... [-- --dry]

License

The MIT License (MIT)

Copyright (c) 2018-2024 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.