Help with setting up a flow
Moderator: Martin
-
- Posts: 2
- Joined: 26 Mar 2014 17:09
Help with setting up a flow
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.
Re: Help with setting up a flow
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.
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.
-
- Posts: 2
- Joined: 26 Mar 2014 17:09
Re: Help with setting up a flow
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.
Re: Help with setting up a flow
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.
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.