User who started the flow as variable?

Is there a way to distinct in a flow which user started it and use this as kind of a variable?

So e.g.
If user A started it → send a push notification to user B
If user B started it → send a push notification to user A

Of course I could to it with multiple flows, but thats not very handy.

Thanks for your help?

Afaik there’s no way to retreive the user who started the flow.
However, that’s not end of story;
When you replace those flows trigger with a virtual knob or switch, the user who pushed the virtual switch is known!
Use this flow card, to monitor the virtual knob / switch:

Explained:

.

To sent push messages to certain users, here’s a way to get user ID’s and save them into reusable variables:
https://community.homey.app/t/the-flow-exchange-r-exchange-your-flows-with-others/68981/25

1 Like

@Peter_Kawa It does not work for me, can you explain which virtual switch?
In the mobile Homey App I pressed a

  • Button in an AVD by Device Capabilities
  • Virtual Device

In both cases the user and client fields are empty.

image

It works for me with an AVD

This is the only settings of the avd:
Screenshot from 2024-01-04 11-12-30

.
Even the device class is not adjusted:
Screenshot from 2024-01-04 11-15-24

.

Flow:

.

Output:
Screenshot from 2024-01-04 11-11-10

Thank you. No luck, fields are empty. I tried with simple flow as well. No clientID and no User.
But I cannot select for “Turned on”, but “OnOff”. Maybe we are using different versions?
Device capabilities v2.15.4 Test
Homey 10.2.0

Class: Other (Default)
image

image

image

image

YW,

‘Turned on’ seemed to be a ‘previous’ value, when I emptied it and selected it again, I also got OnOff as only choice. But that also works here, sorry.

I see we use different DC versions and Homey’s (you probably own the 2023 model?), so that must be the cause here imho
DC: v2.14.9
Homey Pro 2019, v10.0.5-rc.1

1 Like

@Arie_J_Godschalk Is this possible on the HP2023? If yes, I will raise a ticket for you

Yeah, but with the testversion, i have got reports that it indeed is missing the user on the hp2023.

1 Like