When there are often power failures. My all lamps turn on when the power comes up again. Homey comes up a short while later. How can make one flow if case happend and daytime all light off?
Include all lamps in a group.
The time delay because Homey started all apps.
I would do it like this way:
When…
— Homey has started
Then…
— Start Flow No. 1 with delay of 120 s (more or less)
— Start Flow No. 2 with delay of 125 s
— Start Flow…
Flow No. 1
When…
— This Flow is started
And…
— The time is between 08:00 - 19:00 o’clock
(Or between Sunrise and Sunset)
— Light 1 is on
Then…
— Turn Light 1 off
And so on, and so on…
I got this flow for it.
You have to enable “power user” at experimental settings.
I just start my Away scene, if I’m away or sleeping.
Just in case, I fire that flow again after 15mins.
I also send a push and a email message, so I can check things myself if I don’t trust it
One disadvantage: It does this also when a normal restart is done, or after a restart from an update procedure
EDIT Thinking of it, I now have a confirmation push added Didn’t think of that before
Start Away scene if I’m away or sleeping:
Thanks all, I will try it…
what do you think of such a simple?
Its not only the lamps that “fail”, the status of your variables and virtual devices are also reset after a power failure.
So homey will still behave “weird”
For example I have a variable “its dark”. After power failure it always returns as true.
Which result in weird behaviour after a power failure during daytime.
So also check if if you need to “repair” variables and virtual devices
yes thats true
and like this.?
To which post, to which information are you referring?
There will not be an ultimate solution. Finally, it’s up to you how you want to realize it.
If you want to turn off all lamps at once no matter if you are at home or not.
If you want to create separate flows for each lamp, where each flow checks if the lamp is on.
There are also lamps or switches which returns to their previous state after a power failure for example. So for everyone it will be a little bit different, also because of the used devices.
I just want to turn off all lights if power come back and time is betwen sunrise and sunset, no matter if I at home or not.
Yes, I have understood that. But how you want to realize your requirement, i.e. which flows you want to use for it, is up to you to decide.
As you can see at the 3 examples of @Undertaker, @Peter_Kawa and me, there are different ways to realize your requirements. Probably all 3 solutions work and probably there will be more ways to solve your requirements.
So if the flows you posted are ok for you, then use them. I think they will work also. I personally would separate the lights, but this is my personal opinion.
[quote=“fantross, post:12, topic:47655”]
Hi I tested 3 examples and choice 1 best for me, I many times tested because I have 2 virtual device there was issue, (koogeek switch) that is only works HomeKit and have automataion VD and HomeKit. And now works all lights off when homey restarted… thanks guys