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.
Use variable from 1 flow in another flow
YvesGeffens
Member
Hi
I'm trying to do this:
A call comes in, it's a known number from the phonebook (Fritz)
- I announce this
- A push message is sent to my phone
- I save the name in a variable
When someone else comes home, who wants to know who the last caller was, he/she asks homey 'who was the last caller' and I want homey to say: 'the last caller was ' + contents of variable Lastcaller
How do I fetch that variable in the Say command in the then column?
If that works, It would be nice if I can store the time of the call in the first flow, and also use it in the second flow.
How do I do that ?
I'm trying to do this:
A call comes in, it's a known number from the phonebook (Fritz)
- I announce this
- A push message is sent to my phone
- I save the name in a variable
When someone else comes home, who wants to know who the last caller was, he/she asks homey 'who was the last caller' and I want homey to say: 'the last caller was ' + contents of variable Lastcaller
How do I fetch that variable in the Say command in the then column?
If that works, It would be nice if I can store the time of the call in the first flow, and also use it in the second flow.
How do I do that ?
Comments
{{$LastCaller}} did indeed the trick. I anticipated already on that in the first flow. Only adding it to a second 'say something' in the second flow, was all I needed to do. I used a second say card, just to add 1 second of delay, that's easier to understand.
@JanH
I know, but I'm not the only one using the home phone. So just being alerted when a call comes in is enough for me.
A function as in 'Operator, please call xxx for me', and my DECT phone rings when the other person is on the line, THAT would be great.
@ all
This leaves me with, how do I add the time to this (first flow) ?
That way I can announce not only the caller's name, but also when he/she called.
Anyone ?
Thanks !
I also forgot to explain the BL-variable 'Push Message'.
I just change to value with what I want to push.
Another flow is triggered on the changed value, and pushes a message.
This way I can change push-servers, add extra rules (eg. only push at daytime), and do other tricks.
I'm using this flow in all other flows.
Very basic, but this way I only have to change one flow, and all the other flows can benefit from it.
for instance sort off {{$TIME}} or tijd.
What i try to make is a flow that tells me what time, en what was de laatste melding From the fire department.
Now the laatste melding I got working, but i want to hear also the time when it happend.
Also then i make a flow whitin the timestamp will be read when a person came home.
Someone??
what i found out is that the card tijd / datum has a black label tijd which can be used in a string..
The thing is, I want to store the time when something happens, I don't want to store the time, when I know what the time is (that's what the if-column is used for).
Also, and that will be a Better Logic thing, I want to know the time when a variable is touched for the last time.
Dutch; Ik bedoelde hierboven dat ik niet verder kom dan de IF kolom.
Ik heb al van alles geprobeerd met haakjes, strrings, dubbele haakje tijd time maar niets reageert.