Trying to set a reminder for a later time

Hi,

Im trying to set a reminder if the fish was not fed in the morning to remind me in the afternoon. at around 600pm. I am using a vibration sensor as it would detect when the food is picked up.

I would like to do: if no vibration from 900am-1100am then notify me at 600pm to feed the fish.

I changed the times to 1min to test but was not able to trigger the automation not sure if this is the right way or if I need to change the When card to something else.

Thanks

I would use a yes / no variable, default value no

Flow 1 when vibration sensor and time between 9am and 11am set yes no variable to yes

Flow 2 when time is 6pm and yes / no variable is no send message. Reset the variable to no when it’s yes (for the next day)

Hi,

im absolutely not good with variables but would give it a try later today and post a photo of the flow to see if I made any mistakes.

thank you!

Let’s say the sensor’s alarm is only turned on when you pick up the foodcontainer.

And let’s say you forgot to feed the fish this morning so you did it this evening at 700pm.
Then the card ‘sensor alarm turned off for 120 minutes’ is triggering only at 900pm this evening.

Like @Anoniemand already suggested:
Create a YES/NO-variable ‘the fish is fed today’

WHEN
it’s 0:00
THEN
set ‘the fish is fed today’ to NO

WHEN
sensor alarm turnes on
THEN
set ‘the fish is fed today’ to YES

WHEN
it’s 11:00am
or 6:00 pm
AND
‘the fish is fed today’ is NO
THEN
send notification

WHEN
It’s 6:10 pm
AND
‘the fish is fed today’ is NO
THEN
send critical notification

1 Like

While lives are at stake here:

You should realise the onboard delays don’t survive a restart. This is undocumented.

This means, when Homey crashes or when the power dies, the flow doesn’t continue when Homey is running again.
There won’t be a notification until the flow is triggered again.

I use the delays only for a delay of a few minutes max.

I use the Chronograph app timers for instance, these timers count up towards a predefined timestamp.
When Homey is restarted, they’ll continue until the timestamp is reached.

1 Like

Hi,

I tried following your example for #3 I was not able to find the or 600pm flow card.

I saw another flow card in the Better Logic Library App and not sure if I used the right flow card for the variable, the other one highlighted the variable.

I guess I have to wait until tomorrow afternoon to see if this work, I dont know how to test this type of flow with multiple When cards.

Also do you know when the Start is used?

Thank you!

You’ve made some good progress :flexed_biceps:

In the final flow (The time is 18:00) you’ll need to verify if the yes/no variable has a specific value, not set it. So replace it with this card (waar = true):

You can right click this card to “invert” it so it says “fish is fed is false”.

Also I would have removed the “The time is between 09:00 and 11:00 in the second flow.

I’m guessing your vibration sensor is only used for this feeding process?
So you would like to set the “Fish is fed today” variable to yes everytime the vibration sensor detects motion?
If no, and the sensor also register other vibrations I would keep it like you have it.

This is how I would make the flow:

(Let my motionsensor be your vibrationsensor.)

When vibration is detected the fish is fed. So the variable is set to yes. The time is logged on your timeline.

If the fish is fed before 11:00 you will not get a reminder.

As long as the fish isn’t fed you will get a reminder at 11:00, 18:00, 18:15 and 18:30.

If somehow the sensor isn’t working you can set the variable to yes by starting the flow.

Peter_Kawa - was not aware of that it seem now is fixed with the new suggestions

Anoniemand - thank you that make sense, I still have a hard time understanding logic and variables

Ovyvind_Lileberg - I was trying to only get notified if the sensor did Not trigger during that time. If the sensor for some reason was trigger at 100pm I still wanted to get notified at 600pm. But if the sensor trigger between 900-1100 then no further notifications.

Win_Post - thanks for the flow chart I believe I copy it the same, I have a question for the Timeline there are two similar do you know the difference?

If the sensor triggers let say at 1130am would I still get the notifications at 600pm?

Thanks

The orange will post ‘YES’ on the timeline. The other one ‘the fish is fed today’

No. The variable is changed to ‘YES’ at 1130am. So the flow will stop at ‘variable is equal to NO’.

Yeah that info about the onboard delay is not published anywhere
Once I informed about it, the response was “true, but Homey doesn’t restart in normal conditions”.

Well, first of all it does after unannounced automatic firmware updates.
Second, Homey sometimes can restart without a logged or explained reason.

.

Logic and variables/tags is a something to play with to get “the how”.
Look at those as virtual tiny thumbdrives, which can save pieces of information for you.
The so called ‘tags’ are variables as well, albeit you are only allowed to read the stored information. Tags are provided and managed by apps and Homey itself.
Variables are user managed.

Here’s a nice KB article
https://support.homey.app/hc/en-us/articles/4410240765586-Using-Homey-Logic-in-Flows

In that case how could it be modified to only be active from 900am-1100am for the variable to change only during that time, not if triggered outside that time.

As those are the only times the Light comes on so that why is the only time they get fed.

Peter thanks for the link I have read it a few times and still cant really understand how this work, I have to do more hands on with different flows to see if I can finally understand them better.

for example: if the sensor triggers _X_ times then notify.

Now I understand that only vibration between 9 and 11 means that the fish is fed. Outside those hours it can mean something else.

Then you have to add a condition ‘it’s between 9 and 11’ before ‘set variable to YES’

But how to detect feeding automatically outside these hours?

You could replace the notification with a confirm-card and set ‘the variable to YES’ when the answer is YES.

yes, outside those hours I dont want it to do anything.

I did not moved the sensor today and I got the alerts at 1100 and the afternoon.

Tomorrow I would move the sensor and see if I dont get the alerts in the afternoon.

I would try to add the condition.

That is a great Idea if vibration outside those hours to send me a notification with a confirm card, when the answer is Yes.

I would try to also add that in the flow.

I would report back.

Thank you!