# Homey Google assistant dynamic flow

**URL:** <https://community.homey.app/t/homey-google-assistant-dynamic-flow/59780>\
**Category:** Questions & Help\
**Tags:** flow\
**Created:** [February 5, 2022, 8:19am UTC](https://community.homey.app/t/homey-google-assistant-dynamic-flow/59780 "2022-02-05T08:19:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rasmus\_Justesen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rasmus_justesen/32/48012_2.png) [@Rasmus\_Justesen](https://community.homey.app/u/Rasmus_Justesen)\
**Post date:** [February 5, 2022, 8:19am UTC](https://community.homey.app/t/homey-google-assistant-dynamic-flow/59780/1 "2022-02-05T08:19:11Z")

</div>

Hello,

I want to create a dynamic flow.

I have a Google assistant and Ikea fyrtur blinds in two different rooms. Bedroom and office.

I would like to make a voice command were I say “Ok Google, Blinds”  
This will trigger a flow that toggle the blinds in that room.

I know how to connect the flow to google and run it with voice command.  
My problem is: how do I trigger the command to control the blinds in the room I am in?

So if I say “blinds” in the bedroom then only the blinds in the bedroom opens/closes?

I don’t want to say “bedroom blinds” or “office blinds”

Thanks

---

<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:** [February 5, 2022, 12:30pm UTC](https://community.homey.app/t/homey-google-assistant-dynamic-flow/59780/2 "2022-02-05T12:30:58Z")

</div>

> [@Rasmus\_Justesen](#):
>
> So if I say “blinds” in the bedroom then only the blinds in the bedroom opens/closes?
> 
> I don’t want to say “bedroom blinds” or “office blinds”

That’s possible if you link Ikea with Ghome combined with the Tradfri hub, and the blinds paired with it. But you want to control it by Homey, of course 😬.

There is a way, indeed with a dynamic flow, based on one person moving around:  
After voice command “Okay google, blinds”, this flow set closes the bedroom blinds, if the movement sensor in the bedroom was active most recently.  
If not, it closes the office blinds.  
Use an office movement sensor to determine if the office was active most recently.

Create a logics boolean variable, I called it [In\_Office]  
Then create 3 flows:

1. Flow name: Blinds Office Presence  
If…  
Movement sensor Office became active  
And…  
Logics variable [In\_Office] is equal to NO  
Then…  
Set logics bool variable [In\_Office] to YES

1. Flow name: Blinds Bedroom Presence  
If…  
Movement sensor Bedroom became active  
And…  
Logics variable [In\_Office] is equal to YES  
Then…  
Set logics bool variable [In\_Office] to NO

1. Flow name: _Blinds_  
If…  
Flow is started  
And logics variable [In\_Office] is NO  
Then…  
Close Bedroom blinds  
ELSE…  
Close office blinds ‘front’  
Close office blinds ‘back’

_Make sure …More\>Settings\>Google Assistant is enabled._  
Then, **add this flow “Blinds” to the favourite flows**

In Ghome, create a routine with starter: voice command “blinds”  
As action, select “Adjust scenes”  
Select “Flow Blinds”

 ![Screenshot_20220205-132156_Google](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/d/2d72170308b7e9816440db32311664ee2d03d9bd.jpeg)

 ![Screenshot_20220205-132211_Google](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/f/bf0465c9a12bf50b10d9113ce50615533eb4a720.jpeg)

---

<div class="post-metadata">

**Author:** ![Rasmus\_Justesen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rasmus_justesen/32/48012_2.png) [@Rasmus\_Justesen](https://community.homey.app/u/Rasmus_Justesen)\
**Post date:** [March 7, 2022, 11:05am UTC](https://community.homey.app/t/homey-google-assistant-dynamic-flow/59780/3 "2022-03-07T11:05:55Z")

</div>

Okay thank you Peter!  
So I would have to install some kind of detection in each room (ex. motion sensor) for this to work

---

<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:** [March 7, 2022, 11:47am UTC](https://community.homey.app/t/homey-google-assistant-dynamic-flow/59780/4 "2022-03-07T11:47:57Z")

</div>

YW! Indeed, a motion sensor in both rooms tells the system in which room the blinds should be operated.
