Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

d4gli

macrumors regular
Original poster
Jun 15, 2016
136
57
Zurich, Switzerland
Hey,

for my smarthome I only used my self build system controlled by an raspi with my own shell/perl scripts with dependencies and conditions (like enabling whole ambient lightning at sunset only when my iphone is at home).

With HomeBridge I moved everything to Apples native HomeKit which works very smooth - even with sharing the permissions to other people. To get rid of my old shell/perl scripts (scanning for BT MAC ID, checking sunsets, ...) I want to use the native automations - my old ATV3 doesn't support this, but before buying a newer one I want to check, if conditions are possible to use. So is it possible to do:

#1:
Enable all lightning, only when [my iphone OR my wifes one is at home] AND sunset?

#2:
Disable all lights every weekday at 10pm

If possible, how many if conditions are possible?

Thanks!
 
As far as I'm aware your second scenario can easily be setup in the home app. The first scenario however can't be at the moment. The home app only allows one condition at a time.
 
As far as I'm aware your second scenario can easily be setup in the home app. The first scenario however can't be at the moment. The home app only allows one condition at a time.

Thanks for you answer! So there's no reason for me to switch to an ATV4 :-(
 
Thanks for you answer! So there's no reason for me to switch to an ATV4 :-(
I gave you false information. Turns out you can have it set such that lighting will come on when you arrive home AND it's after sunset. I don't know how this will work for you and your wife though, I assume that if you're both listed in the home app it should work for both of you.
I'm picking up some homekit lighting today and I'll be setting up a similar automation to what you described. I'll update you on how effective it is if you like.
 
I gave you false information. Turns out you can have it set such that lighting will come on when you arrive home AND it's after sunset. I don't know how this will work for you and your wife though, I assume that if you're both listed in the home app it should work for both of you.
I'm picking up some homekit lighting today and I'll be setting up a similar automation to what you described. I'll update you on how effective it is if you like.
cool thanks!
 
So after setting up my hue lighting I've tried some automations. I set it so that the lights come on when I arrive home AND it's after sunset. The problem is I can't seem to find a way to automate the case where I'm ALREADY home before sunset and then the lights come on once it's sunset, which I think is what your first scenario is? I can easily set them to come on at sunset independent of my location but I don't want them coming on if I'm not in. I googled and can't seem to find a way to do it yet.
 
Thanks a lot! Sounds like I still need to do some of my automations with my RasPI that both scenarios should work. Looks like Geo-Location will only trigger this with ATV4 by entering... :-(
 
So after setting up my hue lighting I've tried some automations. I set it so that the lights come on when I arrive home AND it's after sunset. The problem is I can't seem to find a way to automate the case where I'm ALREADY home before sunset and then the lights come on once it's sunset, which I think is what your first scenario is? I can easily set them to come on at sunset independent of my location but I don't want them coming on if I'm not in. I googled and can't seem to find a way to do it yet.

Did you have it set for Geolocation on the Home app? If so, I don't think they'll come on if you are not at home, at least mine don't.
 
Did you have it set for Geolocation on the Home app? If so, I don't think they'll come on if you are not at home, at least mine don't.
I've got geolocation on and they come on after sunset when I arrive home after sunset, but I'd also like them to come on automatically when I'm already home and then it's sunset.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.