The Velux plugin is now published!
https://forums.homeseer.com/forum/hs...200-pseudocode
(btw I switched to a different forum username)
rge
Announcement
Collapse
No announcement yet.
Velux Integra KLF200 control
Collapse
X
-
Originally posted by rge View Post
Does your device look like this KLF200:
I think you have the Velux Active, not the KLF200, which unfortunately my plugin doesn't support.
Leave a comment:
-
Originally posted by rge View PostI have a plug-in ready to go based on the scripts I shared, just in final stages of testing. I’ll publish it asap.
Leave a comment:
-
Velux Active is different to the KLF200 - as far as I can see they haven't published the API for it, which is a shame as it's a cheaper option.
Leave a comment:
-
I have a plug-in ready to go based on the scripts I shared, just in final stages of testing. I’ll publish it asap.
- Likes 1
Leave a comment:
-
Originally posted by alexbk66 View PostIf there's sufficient interest in Velux plugin, I could create it
https://shop.homeseer.com/search?typ...uct&q=alexbk66
Leave a comment:
-
The KLF 200 in the US is around $300, not cheap, but allows HA integration. RGE vbs script worked very well and uses the API to talk over the LAN and control the devices.
Using the API allows much more granular control and feedback of current open state. Relays from what I found needed timing loops to judge how open or closed and no feedback . Unless you just want open/close which was simple.
Due to other integration I went the Node Red route and that has a Velux node that you can send commands to open and close with a value between 0 and 100% with two decimal places if you want. i.e. 41.18% This is very similar to RGE script, however I needed logic for the suns position (Solar Noon) and that started me on the path with Node Red and HS4.
Has been working well for over a year ventilating the house during the day.
Setting up the automation is pretty straight forward, getting the devices registered with the KLF as HSAccord states is a PIA. See KLF Setup
Leave a comment:
-
Originally posted by langenet View PostHow are you controlling your velux with relays? I've been thinking of doing this with a dry contact closure device and my spare remote. Just looked at the price of the KFL200 and at $650 for my one skylight and blind, it's kinda hard to justify.
Leave a comment:
-
Originally posted by langenet View PostHow are you controlling your velux with relays? I've been thinking of doing this with a dry contact closure device and my spare remote. Just looked at the price of the KFL200 and at $650 for my one skylight and blind, it's kinda hard to justify.
Leave a comment:
-
How are you controlling your velux with relays? I've been thinking of doing this with a dry contact closure device and my spare remote. Just looked at the price of the KFL200 and at $650 for my one skylight and blind, it's kinda hard to justify.
Leave a comment:
-
Originally posted by alexbk66 View PostIf there's sufficient interest in Velux plugin, I could create it
https://shop.homeseer.com/search?typ...uct&q=alexbk66
Cheers
Scott
- Likes 1
Leave a comment:
-
Originally posted by ScottRennie View PostI know this is quite an old thread, but I have just come across it! It's probably me, but I can't see how to control the devices - If I want to open a Window or close a blind, what is the command I would need?
In the past I was using a stack of Fortrezz mimolites via the momentary switch wiring on the KLF to trigger open/close. This time I wanted to avoid using the mimolites, since they often required that I powercycle the KLF in order for them to work.
So after an entire weekend of f*&king around, here's what worked:
1) I paired all the devices (four windows, two blinds) with the KLF 200.
2) In the interface of the KLF I recorded a few programs to position the various windows and blinds. Worth noting that the interface for creating programs is a disaster, with confusing progress bars and a lack of good feedback. Trust that it's working even though it looks like it's stuck.
3) These programs are named things like "Loft_Open", "Loft_Close", etc.
4) On the Homeseer PC I borrowed and modified a python script that uses the pyvlx library, replacing the scene (program) names with the ones I created.
5) These scripts are called via the "Run Another Program" event in homeseer: e.g. "Launch /pyscripts/loft_open.py"
6) There is one script per program/scene.
As I'd already installed python on the HSPC for other purposes, this required only installing the new library. And now I have four mimolites to use elsewhere.
Downside is that I use virtual HS devices to track the state of the Velux devices, but don't read those values directly from the KLF. I assume that if I run a program/scene, the devices respond as intended. I think there is a way to use PyVlx to read state, but I don't bother. It works very reliably as is.
The python script looks like:
import asyncio
from pyvlx import PyVLX, Position
async def main(loop):
pyvlx = PyVLX(host="your KLF IP Address here", password="your_klf_wifi_password_here", loop=loop)
await pyvlx.load_scenes()
await pyvlx.scenes["YOUR_SCENE_NAME_HERE"].run()
await pyvlx.disconnect()
if __name__ == '__main__':
LOOP=asyncio.get_event_loop()
LOOP.run_until_complete(main(LOOP))
LOOP.close()
- Likes 1
Leave a comment:
Leave a comment: