Help with setting up a flow

Post your questions and help other users.

Moderator: Martin

Post Reply
klevermonicker
Posts: 2
Joined: 26 Mar 2014 17:09

Help with setting up a flow

Post by klevermonicker » 26 Mar 2014 17:23

I’m looking set up a flow that welcomes me home verbally or welcomes me to work verbally once…this is important. Right now I have it setup that I trigger based on the cell towers that I’m connected too, then I turn on wifi and see if I’m connected to work or home’s wifi - then verbally says “Welcome to the salt mines” or “Welcome home”. Right now, when the flow(s) execute they speak to me every time the flow is executed. I’ve tried to setup a small flow that just speaks based on the SSID I’m connected to using the execute counter with a delay of 8 hours which I don’t like, and it still execute. Has anyone done this before or can you point me in a direction for something like this? Of course the flow does more...volumes things and what not but that's not the logic I'm having trouble with. I can post my existing flows if that will help.

ZSasha
Posts: 103
Joined: 11 Oct 2013 03:48

Re: Help with setting up a flow

Post by ZSasha » 26 Mar 2014 20:37

Make two flows - one for home and one for work.
Now when "work" flow executes the first time it should disable itself after saying "hello..." and enable flow "home".

Flow "Home", in turn, once executed and saying "welcome home" should siable itself and enable flow "work".

The drawback is that it would only work if you go from work to home and then back to work etc... if you, let's say, leave home to go walking it won't greet you again.
If this is a strictly requirements I assume more complex flow(s) may be required.

klevermonicker
Posts: 2
Joined: 26 Mar 2014 17:09

Re: Help with setting up a flow

Post by klevermonicker » 06 Apr 2014 20:18

I know it's usually bad form to do this - but I did want to say thank you, this was exactly what I was looking for. I just kept forgetting to log back in and do it.

User avatar
bichlepa
Posts: 148
Joined: 04 Mar 2014 18:29
Location: Germany
Contact:

Re: Help with setting up a flow

Post by bichlepa » 07 Apr 2014 18:45

I'm doing it an other way.
When enter the area near to my home, it turns on wifi.
When wifi is connected it checks whether the global variable global_whether_at_home is "true". If not it sets global_whether_at_home to "true", welcomes me home and performs other things.
When I leave the area near to my home and global_whether_at_home is "true", it sets global_whether_at_home to "false" and performs other things.

This has the advantage that it does not welcome me home again after wifi connection was interrupted.
The little disadvantage is that I need three flows for that.

Post Reply