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.
FLow based on motion detection.. light on and off?
Korneel
Member
All;
I'm trying to accomplish the following:
during the night, if the motion detector detects someone, I want the light in the hall on at 20 percent and the bathroom light on at 20 percent. after 10 minutes I want the light to be turned off again.
this is what I did:
put in qubino zwave plus flush dimmer in the bathroom and the hallway
put in motion sensor in the hallway
created a flow
when the motion alarm turned on
the time is between 10PM and 5 AM
set brightness of light A to 20 percent
set brightness of light B to 20 percent
turn off light A with a delay of 300 second
turn off light B with a delay of 300 seconds.
the problem I have is when I turn on the light with the button the next day, it does not go to 100 percent, but only stays at 20 percent..
my questions
1)is my flow correct or can it be simpler?
2)how can I get my light to just turn to 100 percent when I use the lightswitch (connected to I1)
I'm trying to accomplish the following:
during the night, if the motion detector detects someone, I want the light in the hall on at 20 percent and the bathroom light on at 20 percent. after 10 minutes I want the light to be turned off again.
this is what I did:
put in qubino zwave plus flush dimmer in the bathroom and the hallway
put in motion sensor in the hallway
created a flow
when the motion alarm turned on
the time is between 10PM and 5 AM
set brightness of light A to 20 percent
set brightness of light B to 20 percent
turn off light A with a delay of 300 second
turn off light B with a delay of 300 seconds.
the problem I have is when I turn on the light with the button the next day, it does not go to 100 percent, but only stays at 20 percent..
my questions
1)is my flow correct or can it be simpler?
2)how can I get my light to just turn to 100 percent when I use the lightswitch (connected to I1)
Comments
I'd say make a flow that triggers on the light switching on and evaluate the time, between 5 AM and 10 PM set dimlevel to 100%
Imo setting a dimlevel should not turn a light on, that way the dimlevel can be set for specific timeslots and when turned on it would always be the desired dimlevel. Some devices in homey work that way, guess the Qubino dimmer doesn't.
Setting brightness to 100% would turn the lights on again, right? ;-)
Use 'relative dim'. So, prior to the On action, use relative dim card to dim down with x%. After the timer has finished do the opposite... Increase dim to +x% and switch off.
That way the light level will always be the same whether the flow was triggered or not.
If changing the dimlevel would not turn the light on you could use a 'state' night/day and set a dim level to multiple lights at the state change and just turn the light on when there is movement regardless of time because the state would have set the desired dimlevel.
In the middle I have a virtual switch as condition which puts to bed on or off. This could also be a variable which you set differently. Based on to bed is on you set the lights to e.g. 10% and once to be is off you set it to 100%.