New release supporting Windows and Window Coverings

Posted on
Tue Jul 12, 2016 11:33 pm
webdeck offline
Posts: 348
Joined: May 07, 2005

New release supporting Windows and Window Coverings

I have added support for windows and window coverings with new configs - treatAsWindowIds and treatAsWindowCoveringIds.

To get the new version, just update:
Code: Select all
sudo npm update -g homebridge
sudo npm update -g homebridge-indigo
and restart your instance of homebridge.

This update also fixes a bug where the state of doors and garage doors were not updating their displayed state in HomeKit if you opened or closed them.

Posted on
Wed Jul 13, 2016 2:45 am
durosity offline
User avatar
Posts: 2933
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: New release supporting Windows and Window Coverings

Does it support % open? When I set it to say 10% open it seems to just toggle between 0% and 100%? (It may be a iOS 10 bug, I'll test it on a non updated device later :)

Computer says no.

Posted on
Wed Jul 13, 2016 8:31 am
webdeck offline
Posts: 348
Joined: May 07, 2005

Re: New release supporting Windows and Window Coverings

No, it only supports binary on/off mapped to open/closed.

Posted on
Wed Jul 13, 2016 10:18 am
DGJ offline
Posts: 20
Joined: Feb 06, 2014

Re: New release supporting Windows and Window Coverings

I've updated and included my curtains in the config file & all seems well, running Sierra & iOS10.
The only issue is that my curtains are "on" when closed & "off" when open, so back to front at the moment.

Posted on
Wed Jul 13, 2016 10:46 pm
webdeck offline
Posts: 348
Joined: May 07, 2005

Re: New release supporting Windows and Window Coverings

DGJ wrote:
The only issue is that my curtains are "on" when closed & "off" when open, so back to front at the moment.


I had a 50/50 chance of the on=open off=closed mapping being the right way for everyone. :) If you can't flip it in Indigo, then you'll need to create a virtual device that acts the opposite way for now.

Posted on
Wed Jul 13, 2016 10:54 pm
webdeck offline
Posts: 348
Joined: May 07, 2005

Re: New release supporting Windows and Window Coverings

FYI, I just pushed version 0.2.14 which has a minor bug fix so that a lock's display gets updated when you change the state of a lock.

Posted on
Sat Jul 16, 2016 2:34 am
davinci offline
Posts: 195
Joined: Feb 14, 2015

Re: New release supporting Windows and Window Coverings

Thanks for adding support.

Do you think it's possible to ask Siri if the coverings are open or closed? Also it would be nice to use the brightness as a command as well.

Posted on
Sat Jul 16, 2016 8:52 am
webdeck offline
Posts: 348
Joined: May 07, 2005

Re: New release supporting Windows and Window Coverings

davinci wrote:
Thanks for adding support.

Do you think it's possible to ask Siri if the coverings are open or closed? Also it would be nice to use the brightness as a command as well.


HomeKit is able to query if they are open or closed, so it should be possible to ask Siri, but I don't know if it's in Siri's vocabulary. Does it work if you try?

I just pushed version 0.2.15 that adds the ability to partially open windows, doors, and window coverings if the underlying Indigo device supports dimming.

Posted on
Sat Jul 16, 2016 12:37 pm
davinci offline
Posts: 195
Joined: Feb 14, 2015

Re: New release supporting Windows and Window Coverings

Hmm if I set it to 15 % ist just opens to 100%. Might be a bug, I guess?

Maybe I don't know the syntax for asking Siri but she always tells me there are not devices..

Thanks for the improvements.

Posted on
Sat Jul 16, 2016 1:13 pm
webdeck offline
Posts: 348
Joined: May 07, 2005

Re: New release supporting Windows and Window Coverings

davinci wrote:
Hmm if I set it to 15 % ist just opens to 100%. Might be a bug, I guess?

Maybe I don't know the syntax for asking Siri but she always tells me there are not devices..

Thanks for the improvements.


Did you update homebridge-indigo and restart it?

Does the device you're using in Indigo support dimming? If it doesn't, then there is no way to set a percentage through the RESTful API. I tested it with a switchlinc dimmer and it worked correctly - I don't have any real blind/window/door devices to test with.

Posted on
Sat Jul 16, 2016 2:24 pm
durosity offline
User avatar
Posts: 2933
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: New release supporting Windows and Window Coverings

Works perfectly for mine, although like DGJ mine shows as closed when it's open and open when it's closed! Don't think I can make a virtual device for that as I don't think they support % do they?

Computer says no.

Posted on
Sat Jul 16, 2016 3:28 pm
webdeck offline
Posts: 348
Joined: May 07, 2005

Re: New release supporting Windows and Window Coverings

durosity wrote:
Works perfectly for mine, although like DGJ mine shows as closed when it's open and open when it's closed! Don't think I can make a virtual device for that as I don't think they support % do they?


HomeKit defines door/window/window covering position as a percentage between 0% and 100%, with 0% meaning fully closed and 100% meaning fully open. I mapped that directly to brightness, so fully closed is 0% brightness (off) and fully open is 100% brightness (fully on).

So do your devices interpret it the opposite way, where 0% means fully open and 100% means fully closed?

Posted on
Sat Jul 16, 2016 4:41 pm
durosity offline
User avatar
Posts: 2933
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: New release supporting Windows and Window Coverings

Yeah, although it'd be a very simple fix to rewire the motors to the inverse of what they currently are. My only concern would be if Indigo 7 contains definitions of devices like blinds and would then show the opposite of that! What's the word matty boy? ;)

Computer says no.

Posted on
Sun Jul 17, 2016 2:58 am
davinci offline
Posts: 195
Joined: Feb 14, 2015

Re: New release supporting Windows and Window Coverings

I guess I was still on the old version, even though I updated over Terminal.

I reinstalled and it works!

I also updated Node.js, maybe this was related.


Btw. The wiring is defined by your module and the motor. So there has to be a wiring issue. I would just change the wires on the module to fix this properly.

Posted on
Sun Jul 17, 2016 4:39 am
durosity offline
User avatar
Posts: 2933
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: New release supporting Windows and Window Coverings

Yeah I wasn't sure about the wiring.. 50/50 chance of getting it right!!

Computer says no.

Who is online

Users browsing this forum: No registered users and 2 guests