Yup it’s only possible to use “set relative dim level to x% or -x%”
and repeat that until the “button is released” trigger is fired.
Knut_Peder_Abrahamse:
Also in Futurehome I set a variable when outdoor lights are turn on due to motion. So the script looks something like this: IF after sunset AND before sunrise AND motion AND status not = SLEEP AND lamp is off, THEN set variable = auto-on + turn lamp on, WAIT 5 minutes, IF lamp is on AND variable = auto-on, THEN turn off lamp + set variable to auto-off.
The purpose here is if someone has turned on the light manually, the lamp should not be turned off automatically.
This is a start, combine the 2 flows below and add the “sleep” condition:
This flow triggers a light when a motion sensor triggers, or a person enters the home location.
With both events, the light turns off after 5 minutes, IF there’s no motion detected in the mean time.
When you have, say, a garage with (a) motion sensor(s), and (a) (garage)door sensor(s), the light should turn on for 3 minutes after a motion event, or an opened garagedoor;
While there’s movement, lights stay on;
When the button gets pushed, lights should turn on, and stay on until the button is pushed again.
.
Homey has built-in Home/Away and Sleep/Awake statusses
To create a Vacation status, you can create a virtual switch or a variable, and add it as condition to certain flows you do or don’t want to run during vacation.
I use virtual switches for several statusses
Translated
Home / Away / Someone is home
Longer from home / Rise / Sleep