Simple motion detector flow now working, looking for guidance

Hey all,

Just getting into Homey and running into an issue. I want to make an simple flow to make a motion detector turn on a light after a certain time in the evening but before sunrise, but it does not work. What am I doing wrong with this?

Thank you.

  1. Are your location and time correct?
  2. Does the motion sensor trigger at all? You can send a (push) notification in the AND section to verify that.
1 Like

Just start by the simplest flow by deleting the AND cards and replace the WHEN card by a notification to the time line. If that works as expected, add extra cards one by one.

1 Like

Say there’s motion at 5:00. That is before sunrise but not after 23:00

Try ‘it’s between 23:00 and 12:00’

i tested this flow getest at 10:45. ‘It is between 23:00 and 12:00’ is true. ‘it’s before sunrise’ is false. So the ‘else’-card is executed.

2 Likes

This seems to be the most logical answer.
Before sunrise would mean between 04:30 PM and 8:30 AM
But your other codition is AFTER 11PM, so it will never trigger during the hours of 12 AM and sunrise since they are not after 11PM and thus it won’t go through.
(Assuming time after is only 23:00-00:00)

1 Like

Whatever you think it is, or what I think it is, or the developer thinks it is, one has to test it to be sure how it has been implemented.:grinning:

1 Like

Thank you everyone for your suggestions! I think I have found the solution, as well as understand more on how Homey works. It looks like that the cards are based per day, so when 12:00am hits, that’s the end of the card. So with this flow I needed to add an “OR” statement to also make up for the next day, as shown.

Thank you! Hope this helps others.

2 Likes