# Homey Pro - Flow - How exchange variable values with Alexa

**URL:** <https://community.homey.app/t/homey-pro-flow-how-exchange-variable-values-with-alexa/67657>\
**Category:** Questions & Help\
**Tags:** flow, homey-pro\
**Created:** [August 20, 2022, 5:42pm UTC](https://community.homey.app/t/homey-pro-flow-how-exchange-variable-values-with-alexa/67657 "2022-08-20T17:42:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fra](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fra/32/57783_2.png) [@Fra](https://community.homey.app/u/Fra)\
**Post date:** [August 20, 2022, 5:42pm UTC](https://community.homey.app/t/homey-pro-flow-how-exchange-variable-values-with-alexa/67657/1 "2022-08-20T17:42:54Z")

</div>

Hi all, I recently purchased a Homey Pro and I’m starting to use it in advanced mode. I’m trying to find a solution to this scenario: there is a bathroom with two doors, when both are closed, it’s supposed that the room is occupied. I wish to ask Alexa anytime something like “Alexa, how’s the bathroom?” and Alexa should somehow answer “It’s vacant” or “It’s occupied”.  
My possible solution could be to put two door sensors and check their status with a flow. Then, with another flow I can check if both are closed, and thus put True value into a variable.  
I did some experiments with variables and virtual devices, but I couldn’t find out how to make Alexa reading Homey’s variables.  
Is there someone of you that can help me to find a solution? What is the best practice to achieve this kind of results?  
Bye  
Francesco

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [August 20, 2022, 5:58pm UTC](https://community.homey.app/t/homey-pro-flow-how-exchange-variable-values-with-alexa/67657/2 "2022-08-20T17:58:11Z")

</div>

I use google, which is somewhat similar.  
But, does Alexa tell you the state of a light? Or a lock?  
If so, you can use a [virtual lock](https://homey.app/en-gb/app/com.arjankranenburg.virtual/Virtual-Devices/).

When…  
-door1 is closed  
And…  
-door2 is closed  
Then…  
-set virtual lock “bathroom” to locked  
Else…  
-set virtual lock “bathroom” to unlocked

When…  
-door2 is closed  
And…  
-door1 is closed  
Then…  
-set virtual lock "bathroom"to locked  
Else…  
-set virtual lock “bathroom” to unlocked

When…  
-door1 is opened  
Then…  
-set virtual lock “bathroom” to unlocked

When…  
-door2 is opened  
Then…  
-set virtual lock “bathroom” to unlocked

---

<div class="post-metadata">

**Author:** ![Fra](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fra/32/57783_2.png) [@Fra](https://community.homey.app/u/Fra)\
**Post date:** [August 21, 2022, 6:36am UTC](https://community.homey.app/t/homey-pro-flow-how-exchange-variable-values-with-alexa/67657/3 "2022-08-21T06:36:16Z")

</div>

Hi, yes I tried homey’s virtual devices and other different virtual devices from the app you suggested, but no, I could’t find any way to make Alexa reading virtual device status. By the way, neither Alexa routines nor Homey flows seem to allow “else” part in their conditional logic. Is that right or am I missing something? Any more hint?  
Thanks  
Francesco

---

<div class="post-metadata">

**Author:** ![Joka](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@Joka](https://community.homey.app/u/Joka)\
**Post date:** [August 21, 2022, 8:29am UTC](https://community.homey.app/t/homey-pro-flow-how-exchange-variable-values-with-alexa/67657/4 "2022-08-21T08:29:04Z")

</div>

Another way is to use favorite flows. A favorite flow will detect as a device from alexa. Then you have to configure a alexa routine with your question which triggers the flow. The flow checks the state of your door sensors and let alexa say what you want if the doors are both closed.

The AND cards (condition part) has an or function. You find else in the THEN cards. For both features you have to shift the cards a little bit more down until or/else become visible.

---

<div class="post-metadata">

**Author:** ![Fra](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fra/32/57783_2.png) [@Fra](https://community.homey.app/u/Fra)\
**Post date:** [August 21, 2022, 12:34pm UTC](https://community.homey.app/t/homey-pro-flow-how-exchange-variable-values-with-alexa/67657/5 "2022-08-21T12:34:56Z")

</div>

Thank you for your suggestion. I tried with favorite flows, as for virtual devices, I got the way of triggering but nothing more. I stucked at 'let alexa say what you want". I still don’t know how to drive Alexa with Homey. Alexa can get input from Homey via devices (flows or virtuall), but how can Homey send output to Alexa?  
Bye  
Francesco

---

<div class="post-metadata">

**Author:** ![Joka](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@Joka](https://community.homey.app/u/Joka)\
**Post date:** [August 21, 2022, 1:23pm UTC](https://community.homey.app/t/homey-pro-flow-how-exchange-variable-values-with-alexa/67657/6 "2022-08-21T13:23:12Z")

</div>

You have to use the alexa app of course 😉:

> **[Amazon Alexa](https://homey.app/de-de/app/com.amazon.alexa/Amazon-Alexa/)**
>
> Control your amazon devices from Homey.

---

<div class="post-metadata">

**Author:** ![Fra](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fra/32/57783_2.png) [@Fra](https://community.homey.app/u/Fra)\
**Post date:** [August 21, 2022, 2:16pm UTC](https://community.homey.app/t/homey-pro-flow-how-exchange-variable-values-with-alexa/67657/7 "2022-08-21T14:16:14Z")

</div>

Yo man! I didn’t know there was an Alexa App for Homey, I thought there was just Homey skill to install in Alexa. This makes myself stupid, but now I have a new wolrd to explore.  
Thank you very much for your support!  
Bye  
Francesco

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [August 21, 2022, 2:23pm UTC](https://community.homey.app/t/homey-pro-flow-how-exchange-variable-values-with-alexa/67657/8 "2022-08-21T14:23:25Z")

</div>

Ah… I assumed you installed it 😬🤪
