Skip to content
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

"Add device" capability #4

Open
iver56 opened this issue May 4, 2022 · 10 comments
Open

"Add device" capability #4

iver56 opened this issue May 4, 2022 · 10 comments

Comments

@iver56
Copy link
Owner

iver56 commented May 4, 2022

With open/close controls and visualization of current state

@iver56 iver56 mentioned this issue May 30, 2022
@filipbech
Copy link

Would you like help with this?

@iver56
Copy link
Owner Author

iver56 commented Dec 12, 2023

Yes, that would be nice

@filipbech
Copy link

Can you point me to the documentation to the api please? Then I’m happy to give it a try and submit a PR. If you have a preference for how you’d like it done, please let me know

@iver56
Copy link
Owner Author

iver56 commented Dec 12, 2023

I am afraid I am not aware of any API documentation. I ported the code from an open source ismartgate client written in Python. Is there any other way I can assist?

@filipbech
Copy link

I guess my main issue is if we can be notified on open/close so we don't have to poll for state. (Since it can also be opened from other sources).

I tried to make a virtual device and create a flow that did the polling and I suspect it hade some side-effects (the gate closed randomly). Haven't debugged enough to see if I did something wrong or where that came from.

What was the python project you were migrating?

Anyway, I'll give it a go.

@iver56
Copy link
Owner Author

iver56 commented Dec 12, 2023

As far as I know, the device does not actively push updates on open/close state. So to achieve such a feature, the homey app would have to poll regularly.

I suspect it hade some side-effects (the gate closed randomly)

That's curious! I cannot immediately understand why that would happen just by polling the current state

What was the python project you were migrating?

If I remember correctly, it was this one: https://github.com/vangorra/python_gogogate2_api

@filipbech
Copy link

I'll take a look maybe over christmas, and see what we can come up with!

@iver56
Copy link
Owner Author

iver56 commented Dec 16, 2023

Sounds good to me. Good luck!

@iver56
Copy link
Owner Author

iver56 commented Jan 30, 2024

@filipbech Any progress thus far?

By the way, I have asked in the homey community how to do the transition without breaking the existing setup people have. The answer can be found here: https://community.homey.app/t/how-to-gracefully-introduce-breaking-change-in-existing-homey-app/101957

@filipbech
Copy link

No, sorry... nothing to report yet. Its still high on my want-to-build list, but time's not easy to find apparently

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants