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

Velux KLF200 integration in HC3


JanoS.

Question

Recommended Posts

  • 0

+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.

Link to comment
Share on other sites

  • 0

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
Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0
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
Link to comment
Share on other sites

  • 0
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...

Link to comment
Share on other sites

  • 0
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. 

Link to comment
Share on other sites

  • 0

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
Link to comment
Share on other sites

  • 0

@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
Link to comment
Share on other sites

  • 0

@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

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

 

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.

Link to comment
Share on other sites

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...