5 ms·
I'm doing this with HomeKit, Homebridge and Nanoleaf A19 bulbs. It's cool having my basement office lighting switch to evening mode (they dim slightly), have t
by js2 4y ago
I'm doing this with HomeKit, Homebridge and Nanoleaf A19 bulbs.
It's cool having my basement office lighting switch to evening mode (they dim slightly), have the color temp adjust, all at the same time my Mac switches from light mode to dark mode.
HomeKit is pretty powerful if you're willing to bolster it with Homebridge and use an alternate app for configuring it (I use Controller for HomeKit).
For example: I have an automation that opens/closes my garage door as I arrive/depart as long as my phone is in CarPlay mode. Yes, I could push the button on my rear view mirror, but it's one less thing to do. Glueing this together required a Personal Automation that updates a Homebridge dummy switch which tracks my phone's CarPlay status. Then I could make a HomeKit automation which triggers on my phone's location but only when the switch that track its CarPlay status is on.
That said, as a developer, I do sometimes wonder why I'm not just using Home Assistant.
- azinman2 4y agoHow do you know if it should open or close the garage? Does it open when you start the car? How quickly does it open the garage when you get home? I’d be very interested to see the actual code of this as I’d like something similar. That said, CarPlay gives me a button to open/close the garage (which I have linked via Homebridge to my garage door opener, works 70% of the time). I just wish it was better tied to the alarm system.
- js2 4y ago> How do you know if it should open or close the garage? I just have the automation to open when I arrive home and to close when I leave home. Arrive and leave are built-in HomeKit triggers for automations. > Does it open when you start the car? Nope, for that I press the button on the wall inside my garage as I'm walking to my car. I want the garage door open before I start the car. > How quickly does it open the garage when you get home? Based on using "when I arrive home" the door opens when I'm about 30 seconds away, maybe 500 yards? HomeKit also has location based triggers where you can draw the circle different sizes. I just used the canned "arrive home" and "leave home" triggers. > That said, CarPlay gives me a button to open/close the garage (which I have linked via Homebridge to my garage door opener, works 70% of the time). The point of this was to avoid interaction, otherwise I'd use the button on my rear-view mirror which on my Mazda is more accessible than the CarPlay button on the Mazda display. > I’d be very interested to see the actual code of this I've got a pair of dummy switches in Homebridge: 1. "Phone CarPlay Status" 2. "Garage Door Trigger" I have two personal automations (via the Shortcuts app) on my iPhone: 1. When CarPlay connects -> Set "Phone CarPlay Status" to On 2. When CarPlay disconnects -> Set "Phone CarPlay Status" to Off. I have the following HomeKit automations: 1. When I Arrive Home and Phone CarPlay Status is On, set Garage Door Trigger to On. 2. When I Leave Home and Phone CarPlay Status is On, set Garage Door Trigger to Off. 3. When Garage Door Trigger Turns On set Garage Door Target Door State Open 4. When Garage Door Trigger Turns Off set Garage Door Target Door State Closed. The last two automations (3) and (4) are needed because a door is a secure accessory and those require confirmation if added directly to an automation. But if you trigger them via a dummy switch, you can avoid the confirmation. I used the Meross Garage Door Opener to make my 2004 Wayne Dalton openers HomeKit aware. I'm running a pair of garage doors off of it actually.