Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Question

Posted

Is there a way, how to connect Velux KLF200 with HC3?

  • Like 1

Recommended Posts

  • 0
Posted

yes by using the smart implant for the volt free contacts for each velux window

  • 0
  • Inquirer
  • Posted

    That´s clear. I meant using the KLF 200 API.

    • Like 1
    • 0
    Posted

    +1 would be a great add on

    • 0
    Posted

    +1 looking forward to the moment!

    • 0
    Posted

    +1

     

    I have window blind with KUX 100 and now I'm planning to order KLF 200 to have it controlled through HC3 so would be good to know if it works.

    • 0
    Posted (edited)

    I'm using the KLF200 Api with home assistant since not available on hc3. the implementation is awesome if you want to control more than 6 velux devices.

    Edited by MasterB
    • 0
    Posted

    Up: do you know if anyone did a quick app eventually?

    • 0
    Posted

    any news? I'm looking forward to upgrade my windows with Velux and want to control them via Fibaro.

    • 0
    Posted

    No available QuickApp for now, as HC3 does not support SSL over a tcp connection, which is required to establish a connection with KLF-200.

    No news from Fibaro about when this will be available.

    For now, the easiest solution is to go through Home Assistant.

    • 0
    Posted
    6 minutes ago, jyd said:

    No available QuickApp for now, as HC3 does not support SSL over a tcp connection, which is required to establish a connection with KLF-200.

    No news from Fibaro about when this will be available.

    For now, the easiest solution is to go through Home Assistant.

     

    Well, i have a working solution. You only need a rpi4 or other machine to run a small script.

     

    Then with some small code, you can integrate the KLF into the HC3.

    • Like 1
    • 0
    Posted
    On 11/10/2021 at 1:43 PM, ppeterr said:

     

    Well, i have a working solution. You only need a rpi4 or other machine to run a small script.

     

    Then with some small code, you can integrate the KLF into the HC3.

    Sounds great.

    I know it's been a while.
    Could you share some information on that solution? :-)

     

    I have a rpi4 and HC3 in my system...

    • 0
    Posted
    38 minutes ago, Danni said:

    Sounds great.

    I know it's been a while.
    Could you share some information on that solution? :-)

     

    I have a rpi4 and HC3 in my system...

     

    Hey Danni,

     

    It seemed that the solution i worked out, was not that fantastic. It worked, but not stable.

    Every few weeks, the connection dropped. And i had to restart the KLF. So not really usable.

     

    I am doing it totally different now. I migrated all the stuff i use the rpi for to dockers on a synology nas.

    That NAS now also is hosting a HomeAssistant instance. The KLF integration for Homeassistant works

    flawless. You could integrate the homeassistant routines into the HC3. But for my usercase its not needed.

     

    So, maybe try it that way :) Sorry to disapoint you. 

    • 0
    Posted (edited)

    I'm playing with KLF200 integration to HC3 -

    in Lua it works:

    Please login or register to see this code.

     

    but in HC3 it doesn't work

    Error is in waitForResponseFunctionVelux:

    waitForResponseFunctionVelux - error: Operation canceled

     

     

    Please login or register to see this code.

     

    What I don't know exactly - how to correctly re-write for HC3

    1.  mode='client'

    2. protocol='tlsv1_2'

    3. replacing: ssl in ssl.wrap(sock, params) -- maybe it's somehow cover in net.TCPSocket in tls param
    4. replacing: peer:dohandshake()   -- I don't know what this command does

     

    I hope that somebody from Fibaro can help. 😀

     

    Edited by petrkl12
    • 0
    Posted (edited)

    @petrkl12 Great! I cant help you with that error, but if later on you need some additional testing i can do that.

    Edited by ppeterr
    • 0
    Posted

    @petrkl12 Hi, have you been able to progress on that problem ? If not, i can try to help, as i'm also trying to find a solution and have time to investigate

    • 0
    Posted

    thanks but do you have any idea how to solve it?

    • 0
    Posted

    where did you get that piece of code ? wondering where this certificate comes from in fact. Did you try not using it and setting allowunauthorized to true ? also, are you sure that the create_frame function is correct ? 

    to go further and make some test here i would need the code, and so i could try to make it run and investigate further

    • 0
    Posted

    as described in my post - this code is working in pure lua in my PC and I need to rewrite it to hc3 where lua commands are limited ...

    Please login or register to see this code.

     

    I have tried a lot of combination and I think that problem is with hc3 support of tlsv1_2

    • 0
    Posted

     

    Maybe something stupid on my part, but who knows. And you've probably already looked at it that yourself.

    Would it be of any use if I share the data from my custom component for the KLF 200 that I have in my HA with you for some insight?

     

    Of course it's all PY and YALM.

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...