-
Notifications
You must be signed in to change notification settings - Fork 27
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
RollerShutter position w/o previous set_postion() / stop() #19
Comments
isnt it updated automatically? That is dependent on if the house_status_monitor has send the current position already. (To find out, trigger a velux scene, then the house monitor sends the current positions and the nodes are updated without a position is sent). But: to get to the center of your question, i do not know how to trigger the busmonitor to send the positions. Iirc it does it every x minutes, but I did not try this out. My solution is to keep pyvlx running as a daemon. |
Hi Julius, thanks for your quick response. I read on several sites that the KLF200 has a tendency to crash if not operated in pulling mode (+ monitor disabled). The monitor will report at an interval of 15min to 24h (to preserve battery). Considering that the TCP connection will be closed after 15min idle, it may not be the the optimal solution for mains powered blinds ;) My plan is to write a glue-program between your lib and mqtt. Similar to that one: https://github.com/3s1d/ow2mqtt . I'd like to have an update rate of 30sec or so... Cheers, |
|
Sure thanks. I'll do so. The problem is if somebody uses an original remote to change the blind's position. The manipulation will take up to 15min to be detected by my system. |
If pyvlx is connected, you should get the position update immediately. |
Hi, here's my test code: await pyvlx.load_nodes()
await pyvlx.nodes['Buero EG Nord'].stop()
while True:
print(pyvlx.nodes['Buero EG Nord'].position)
time.sleep(10) I started the deamon, the position was reported correctly. Then I changed the position using a remote and waited for 20min. The position was not updated. I restarted the deamon and the correct current position was shown. .stop() seems to get the current position w/ a lag of 10-20sec (=prefect). However w/o I had no success. Cheers, |
you should use the async version of sleep ... |
Thanks! Works a treat... Position changes arrive within 90sec, which is acceptable. |
uh, thats still a big delay. May you enable logging to see if you see the position changes on the packet stream...? |
Ahm not sure how to accomplish that... Please note:
|
|
Thanks. I can confirm that there is a 90sec delay between changing the position using the remote and being reported to pylvx (if I don't do stop() or something else actively). Right after I receive this (90sec after the actual manipulation) the node is updated.
Please note that I do not have any Velux products other than the KLF200. I am using Somfy blinds. The reason for using the KLF200 rather than the Somfy original (Tahoma) is that it can only be controlled using a cloud service API, which I am no fan of (due to privacy and other reasons). The vlx2mqtt project will be available on my GitHub account and will be based upon pyvlx. Thanks a lot! |
If you made a vlx2mqtt repo I'll send you a kiss. I still not get time to test anything until the new API is implement. Would it allow command as well? Know it's not the right place to ask but couldn't wait :) |
It seems like this was closed without resolution. I'm still seeing this issue in Home Assistant. Is it ok to re-open this ticket? |
Hi,
I'm probably blind, but what is the proper way to get/update the current shutter position?
I tried .stop() followed by printing .position. This seems to work most of the time. But is there a better way? .stop() could potentially interrupt a movement.
Cheers,
Juergen
The text was updated successfully, but these errors were encountered: