-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSL handshake error in Velux component #1
Comments
With regards to: Yes, if you cannot establish a connection due to SSL handshake error you are not able to reboot KLF200. So it would be better to reboot the gateway in advance as long as you have a connection. I tried different things, also a periodical reboot. However sometimes I still had a frozen KLF. Therefore I tried some adjustments which you can check here: Julius2342/pyvlx#49 So unfortunately at the moment I only see the reboot function as an additional function of my custom component. As soon as @Julius2342 will release the current pyvlx master branch the reboot functionality could be integrated into original velux component as a callable service. Within automation everyone can then create an automation via GUI which lets the KLF reboot on homeassistant_stop event. Example:
In my current custom component I activated this in the code, but that's maybe not a good solution for a workaround. |
@pergolafabio: Differences in my code are:
|
Ok cool , does it also survive a reboot of hassos / supervisor instead of a restart? |
Just tested, but yes, the reboot also works on a reboot of hassos / supervisor. |
Ah, just now, or earlier today? Then gonna change too... Hacs would be useful ;) |
The change is simple, just comment line 57 out: Line 57 in e7b2852
|
ok, done by automation now... and commenting that line 57 but seems still issue with my state EDIT : NM, seem state is changing after a while if HA was restarted |
I didn't change that logic, but if you activate the logger you can see all data send to and received from KLF. On first connection the FrameGetAllNodesInformationNotification provides all the information about all nodes (devices/scenes in your io homecontrol network):
|
i only have my velux for 2 days, maybe i didnt notice yet with official component ;) |
I updated this repository to be usable from HACS. |
Great! |
Is it also possible with the API to give a signal to HA when it detected rain? I have a rain sensor on my velux windows, they are closing when it rains... Would be nice to have a sensor in HA when it rains... So I can close/open other things too with an automation |
@pergolafabio: Not directly, KLF200 only reports the state of actuators. The rain sensor is directly coupled with the window. In case the window is open and the rain sensor detects rain, the window will be closed. KLF200 will request information from known actuators, two minutes after boot and then every 15 minutes to 24 hour, depending of actuator type and state. As far as I understand the documentation only actions on actuators are reported. However if the window was closed before then you will not receive any information about rain. Attached the API Documentation: |
Ohh, that's too bad :( |
you can activate the pyvlx debug on logger and simulate rain with a closed window. Not sure what you will see. I don't have a rain sensor, so I could not debug. |
Ok, enabled , will have a look later |
here is some log... the api knows about the rain detector, it knows the windows opener has a rain detector
|
maybe this one needs to be enabled also? seems its disabled by default ... 8.2 Enable or disable House Status Monitor. |
Ok, interested in debug later... Maybe it will pass detection, even when closed... If it's passed in debug... Is it then possible to have a HA rain sensor? |
I don't think that this will work, what should happen if the rain stops?
|
No idea ;) |
uh, the one with the rain sensor is interesting. And idea could be to add a @pawlizio : Julius2342/pyvlx#49 is still a draft, please tell me when it is ready to review ... |
i have logging now enabled, but in weather forecast, no rain here coming days :) |
@pergolafabio : garden hose? :) |
yeah, i can try that, but my velux are on the roof :) , difficult to reach |
hey @Julius2342 so i opened he manually, i dropped a whole glass of water of the rain sensor, not sure if its enought, maybe it needs to rain for like x amount of time i logged this, but i dont see anything special in it ... i think i need to wait for the next rain, to be sure, lets see if we get status when window was open/closed
|
ok , it rained for a few seconds, enough for 1 velux to close = node 3, as you can see around 20.00 in log below i dont think there is more info about rain in debug below? so the only thing i can create is a HA rainsensor, so when current position = 7 , then it started raining or do you guys have a better idea? full log :
|
You can use another hardware like rain bird: https://www.home-assistant.io/integrations/rainbird/#sensor |
Possibly if rain sensor prevents opening the window while it is wet, you can try periodically to open the window. If it opens, rain is over! |
aha, thats an idea! :) thnx |
the only thing i am missing, if my windows were closed, then i dont know it started raining so i am stuck without that hardware option i think, or maybe some zigbee sensor i now have an automation, that when windows were open, when it starts raining => position = 7, the sun covers are opening... i dont want them wet :) ... but thats most of the time not the case anyway |
The interesting thing would be, if your windows are opened - and they are closed by rain, you should see a line:
(mind the We then could build a hook for triggering somethnig else. e.g. send a notification "Your windows were closed by rain sensor". Or close othe windows - e.g. in my house some velux rain sensors are less reliable then others.) |
ah, thats interesting indeed and easier implenent then checking for current position = 7 do you also see that rain stopped? |
or maybe somekind of extra attribute on the cover? |
hey @Julius2342 , some new logs can you see something usefull? maybe there is an ID triggered of the raining process now?
|
i will post some new logs in a few mins when it stops raining |
continued log, raining stopped, i tried opening them both with the velux panels (not ha) , one was opening, the other one not, probably the sensor was still too wet
|
today i also saw this ssl error, a one time only , not sure what could caused it
|
Could you also provide the log after some time? Was pyvlx able to reconnect? |
no more log after , about reconnect or somethign like that, no debug configured right now |
hi @Julius2342 , can you help me with the rain sensor? i have some new logs, this time one velux was open, the other one was closed before raining i think at around, this time it closed by rain, if i look at log : 12:13 => current_position='0xBA00' full log : thnx in advance!!
|
I'll close this here, because this component uses pyvlx from https://github.com/Julius2342/pyvlx |
creating issue here , follow-up of this issue 👍
home-assistant/core#34844
05/08/2020 , i installed custom component, at this moment no error ion Restart HA, and state is properly loaded
The text was updated successfully, but these errors were encountered: