This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Approach on advanced automated lighting
![Baron](https://secure.gravatar.com/avatar/72ee2ba2e4aa2a3b3ef52bb643566c76/?default=https%3A%2F%2Fvanillicon.com%2F72ee2ba2e4aa2a3b3ef52bb643566c76_50.png&rating=g&size=50)
I need some help to better construct my flows for my automation of the lighting at home.
Atm, it's working fine, but the flows that triggers everything is a total mess, and it is a hopless road of trail and error when i want to change something.
I have about 50 hue bulbs at home, they are installed in the following rooms
- Hallway
- Kitchen
- Livingroom
- TV-room
- Bedroom
- Windows lights
- garden lightning
All of these bulps are automated with homey, based on mainly multi-geo-fencing, the sun, and some events ( sleeping, TV turned on, alarm goes of, smokedetector etc). And this works very well.
What I want to do, is build a flow, that I can use to restore the lightning after a event, AND also use based on the sun/geo-fencing.
With this I can always just trigger the "set lighning flow" when a event has ended, when someone came home or the sun went down etc.
Example of flows that would be using this "set lighting flow".
- First person came home -> set lighting
- Last person left home -> set lighting
- sunset starts -> set lighting
- sunrise ends -> set lighting
Also, for example when special events are running, for example sleeping, or "looking at TV", it should reset to "set ligtning flow".
So after a long introduction, i'm not sure what the best approach and structure of flows would be to achieve this, here is a flow chart of the chain that should occur when "set lighting flow" is triggered.
![Image: https://forum.athom.com/uploads/editor/an/6fuvrgayj9dd.png](https://forum.athom.com/uploads/editor/an/6fuvrgayj9dd.png)
the important benefit of this, is that I would only have ONE place to adjust when "daytime" should be triggered, or what scenes that will be triggered etc. Today, if I want to change the standard scene in the kitchen and living room, I need to look through loads of flows setting the scenes of different conditions.
I cannot think of a way to construct this "set lighting flow" in less than 7 flows. Some one that have a better idea?
Flow1 | set ligting flow triggered > home? > yes, else no
Flow2 | Flow1 YES > daytime? > yes, else no
Flow3 | Flow1 NO > daytime? > yes, else no
Flow4 | Flow2 YES -> turn all ligths of
Flow5 | Flow2 NO -> set standard lighting for home and dark outside
Flow6 | Flow3 YES -> turn all ligths of
Flow7 | Flow3 NO -> set standard lighting for not home and dark outside
The ability to nest if and else if would make the so much less painful
.
PS. this was a very long post on a quite simple question, guess you'll understand why I have such of a problem keeping my flows nicely constructed.
Atm, it's working fine, but the flows that triggers everything is a total mess, and it is a hopless road of trail and error when i want to change something.
I have about 50 hue bulbs at home, they are installed in the following rooms
- Hallway
- Kitchen
- Livingroom
- TV-room
- Bedroom
- Windows lights
- garden lightning
All of these bulps are automated with homey, based on mainly multi-geo-fencing, the sun, and some events ( sleeping, TV turned on, alarm goes of, smokedetector etc). And this works very well.
What I want to do, is build a flow, that I can use to restore the lightning after a event, AND also use based on the sun/geo-fencing.
With this I can always just trigger the "set lighning flow" when a event has ended, when someone came home or the sun went down etc.
Example of flows that would be using this "set lighting flow".
- First person came home -> set lighting
- Last person left home -> set lighting
- sunset starts -> set lighting
- sunrise ends -> set lighting
Also, for example when special events are running, for example sleeping, or "looking at TV", it should reset to "set ligtning flow".
So after a long introduction, i'm not sure what the best approach and structure of flows would be to achieve this, here is a flow chart of the chain that should occur when "set lighting flow" is triggered.
![Image: https://forum.athom.com/uploads/editor/an/6fuvrgayj9dd.png](https://forum.athom.com/uploads/editor/an/6fuvrgayj9dd.png)
the important benefit of this, is that I would only have ONE place to adjust when "daytime" should be triggered, or what scenes that will be triggered etc. Today, if I want to change the standard scene in the kitchen and living room, I need to look through loads of flows setting the scenes of different conditions.
I cannot think of a way to construct this "set lighting flow" in less than 7 flows. Some one that have a better idea?
Flow1 | set ligting flow triggered > home? > yes, else no
Flow2 | Flow1 YES > daytime? > yes, else no
Flow3 | Flow1 NO > daytime? > yes, else no
Flow4 | Flow2 YES -> turn all ligths of
Flow5 | Flow2 NO -> set standard lighting for home and dark outside
Flow6 | Flow3 YES -> turn all ligths of
Flow7 | Flow3 NO -> set standard lighting for not home and dark outside
The ability to nest if and else if would make the so much less painful
![:# :#](https://forum.athom.com/resources/emoji/grimace.png)
PS. this was a very long post on a quite simple question, guess you'll understand why I have such of a problem keeping my flows nicely constructed.
Comments
Flow 1:
is someone home, and is it dark? [THEN]> turn lights on home
[ELSE]> flow 2
Flow 2:
is no one home, and is it dark? [THEN]> turn lights on away
[ELSE]> turn lights off
I think this approach will work very well, thank you caseda.