Skip to content

Add window support (2) #1636

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

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

esadrian
Copy link

As discussed on #766

The functionality would be really useful but there have been no follow-ups since 2021...

This entirely escaped my knowledge, but I tried to do it without duplicating window_covering.

Can @rojer @markirb confirm it works as expected?

Thanks in advance and sorry if there are any inconveniences. I have little to no idea what I'm doing.

@markirb
Copy link
Collaborator

markirb commented Mar 19, 2025

It seems to go in the right direction. But it seems to be missing code on how to set this via webinterface?

@esadrian
Copy link
Author

I pushed new changes as best as I could.

If anything is missing could you complete it?

Thanks @markirb

@markirb
Copy link
Collaborator

markirb commented Mar 24, 2025

Judging by the looks only this seems okay. Did you test this?

Can you share screenshots of the HomeApp?

@esadrian
Copy link
Author

Managed to get it working!

Used "Display as" to switch between Roller Shutter and Window, just below name settings.
If the value is changed then Homekit pairing must be reset too.

Here is the screenshot when it's added as a Window.

Homekit-Add-Window

I can now tell Siri to close/open my windows or blinds separately 😄

@markirb
Copy link
Collaborator

markirb commented Mar 25, 2025

Very cool, thank you.

I will review and try it in the next days hopefully and give it a short spin before this will be merged.

@markirb markirb changed the base branch from master to develop March 25, 2025 19:56
@@ -59,6 +63,7 @@ WindowCovering::WindowCovering(int id, Input *in0, Input *in1, Output *out0,
pm_open_ = pm1;
pm_close_ = pm0;
}
set_primary(true);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this really needed? If so why?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it because it is a security device? if so can you please make this conditional only for the window and not the cover

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

Successfully merging this pull request may close these issues.

2 participants