Page 1 of 2

New release supporting Windows and Window Coverings

PostPosted: Tue Jul 12, 2016 11:33 pm
by webdeck
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.

Re: New release supporting Windows and Window Coverings

PostPosted: Wed Jul 13, 2016 2:45 am
by durosity
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 :)

Re: New release supporting Windows and Window Coverings

PostPosted: Wed Jul 13, 2016 8:31 am
by webdeck
No, it only supports binary on/off mapped to open/closed.

Re: New release supporting Windows and Window Coverings

PostPosted: Wed Jul 13, 2016 10:18 am
by DGJ
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.

Re: New release supporting Windows and Window Coverings

PostPosted: Wed Jul 13, 2016 10:46 pm
by webdeck
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.

Re: New release supporting Windows and Window Coverings

PostPosted: Wed Jul 13, 2016 10:54 pm
by webdeck
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.

Re: New release supporting Windows and Window Coverings

PostPosted: Sat Jul 16, 2016 2:34 am
by davinci
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.

Re: New release supporting Windows and Window Coverings

PostPosted: Sat Jul 16, 2016 8:52 am
by webdeck
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.

Re: New release supporting Windows and Window Coverings

PostPosted: Sat Jul 16, 2016 12:37 pm
by davinci
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.

Re: New release supporting Windows and Window Coverings

PostPosted: Sat Jul 16, 2016 1:13 pm
by webdeck
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.

Re: New release supporting Windows and Window Coverings

PostPosted: Sat Jul 16, 2016 2:24 pm
by durosity
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?

Re: New release supporting Windows and Window Coverings

PostPosted: Sat Jul 16, 2016 3:28 pm
by webdeck
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?

Re: New release supporting Windows and Window Coverings

PostPosted: Sat Jul 16, 2016 4:41 pm
by durosity
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? ;)

Re: New release supporting Windows and Window Coverings

PostPosted: Sun Jul 17, 2016 2:58 am
by davinci
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.

Re: New release supporting Windows and Window Coverings

PostPosted: Sun Jul 17, 2016 4:39 am
by durosity
Yeah I wasn't sure about the wiring.. 50/50 chance of getting it right!!