cancel
Showing results for 
Search instead for 
Did you mean: 

Regrouper des routines

David761
Community Member

Bonjour,

Je n'arrive pas à trouver sur le web comment regrouper plusieurs routines.

Par exemple j'ai créer plusieurs routines pour quand je pars en vacances (allumage et extinction des lumières, ouverture et fermeture des volets), et par conséquent, je dois mettre en route plus d'une dizaine de routines différentes quand je pars, ce qui est un peu long et ennuyeux à faire.

J'ai fait plusieurs routines car les actions sont différentes avec horaires différents pour différents appareils.

J'aimerais bien faire un "groupe de routines" afin de ne faire qu'une seule action sur l'application quand je pars en vacances.

Auriez-vous la solution à mon problème s'il vous plaît ?

Merci par avance et bonne journée, cordialement.

David

1 Recommended Answer

arm_dpe
Solutions Expert
Solutions Expert

Thanks for reaching out. For Google Home, the best way to group your routines is indeed the "Master Routine" method, although it requires a simple workaround using a custom voice command action.

Google Home Routines do not currently have a direct "Run another routine" action in the standard menu. Instead, you use a Custom Action to tell the Google Assistant to start the other routines.

Here are the step-by-step instructions for creating your master "Vacation Mode" routine:

 

Creating a Master Routine in Google Home

You will create one new routine (the master) and use the custom command feature to trigger your existing routines (the sub-routines).

1. Create a Master Routine (e.g., "Vacation Mode")

  • Open the Google Home app on your phone.

  • Tap the Routines icon (or go to Settings > Routines).

  • Tap + New Routine (or New). You should create a Household Routine since it affects shared devices like lights and shutters.

2. Set the Starter Action

This is how you will manually launch the group of routines.

  • Under "How to start," tap Add starter.

  • Select When I say to Google Assistant.

  • Enter the voice command you want to use. For example:

    • Start vacation mode

    • I'm leaving for vacation

  • Tap Done, then Add starter.

3. Add Your Existing Routines as Actions

This is where you chain your 12+ existing routines together.

  • Under "This Routine will," tap Add action.

  • In the action search bar, type the name of your first routine exactly as it appears in the Google Home app (e.g., "Living Room Light Schedule").

  • You will see an option pop up that says Try adding your own (or Custom command). Tap that.

  • In the text field, type the command to start your first routine:

    Run [Name of your first routine]

    Example: Run Living Room Light Schedule

  • Tap Done, then Add action.

4. Repeat for All Routines

  • Repeat Step 3 for every single one of your 12+ individual vacation routines. Each one must be its own separate custom action.

    Action # Custom Command
    1 Run Living Room Light Schedule
    2 Run Bedroom Shutter Schedule
    3 Run Patio Light Timer
    ... ...
    12 Run Final Lock Check

5. Save the Master Routine

  • Review all your actions to make sure the names are correct.

  • Tap Save at the bottom.

Execution

Now, instead of manually launching 12 routines, you only need to do one action:

  • Voice Command: Say, "Hey Google, start vacation mode" (or whatever phrase you chose).

  • App Launch: In the Google Home app, you can simply tap the "Vacation Mode" routine to run it immediately.

View Recommended Answer in original post

3 REPLIES 3

arm_dpe
Solutions Expert
Solutions Expert

Thanks for reaching out. For Google Home, the best way to group your routines is indeed the "Master Routine" method, although it requires a simple workaround using a custom voice command action.

Google Home Routines do not currently have a direct "Run another routine" action in the standard menu. Instead, you use a Custom Action to tell the Google Assistant to start the other routines.

Here are the step-by-step instructions for creating your master "Vacation Mode" routine:

 

Creating a Master Routine in Google Home

You will create one new routine (the master) and use the custom command feature to trigger your existing routines (the sub-routines).

1. Create a Master Routine (e.g., "Vacation Mode")

  • Open the Google Home app on your phone.

  • Tap the Routines icon (or go to Settings > Routines).

  • Tap + New Routine (or New). You should create a Household Routine since it affects shared devices like lights and shutters.

2. Set the Starter Action

This is how you will manually launch the group of routines.

  • Under "How to start," tap Add starter.

  • Select When I say to Google Assistant.

  • Enter the voice command you want to use. For example:

    • Start vacation mode

    • I'm leaving for vacation

  • Tap Done, then Add starter.

3. Add Your Existing Routines as Actions

This is where you chain your 12+ existing routines together.

  • Under "This Routine will," tap Add action.

  • In the action search bar, type the name of your first routine exactly as it appears in the Google Home app (e.g., "Living Room Light Schedule").

  • You will see an option pop up that says Try adding your own (or Custom command). Tap that.

  • In the text field, type the command to start your first routine:

    Run [Name of your first routine]

    Example: Run Living Room Light Schedule

  • Tap Done, then Add action.

4. Repeat for All Routines

  • Repeat Step 3 for every single one of your 12+ individual vacation routines. Each one must be its own separate custom action.

    Action # Custom Command
    1 Run Living Room Light Schedule
    2 Run Bedroom Shutter Schedule
    3 Run Patio Light Timer
    ... ...
    12 Run Final Lock Check

5. Save the Master Routine

  • Review all your actions to make sure the names are correct.

  • Tap Save at the bottom.

Execution

Now, instead of manually launching 12 routines, you only need to do one action:

  • Voice Command: Say, "Hey Google, start vacation mode" (or whatever phrase you chose).

  • App Launch: In the Google Home app, you can simply tap the "Vacation Mode" routine to run it immediately.

David761
Community Member

Bonjour,

merci beaucoup pour votre réponse.

Malheureusement, je ne trouve pas la barre de recherche d'action.

Pourriez-vous corriger ce script pour paler à ma demande de base SVP ?

metadata:
name: Vacances
description: Simulation de présence
automations:
- starters:
- type: assistant.command.OkGoogle
- is: On part en vacances
actions:
- type: schedule.command.OnOff
- schedule: run allumer entrée schedule
- schedule: run éteindre entrée schedule
- schedule: run fermeture volet parents schedule
- schedule: run ouverture volet parents schedule
- schedule: run allumer mezzanine schedule
- schedule: run éteindre mezzanine schedule

Merci par avance, cordialement,

David

arm_dpe
Solutions Expert
Solutions Expert

Thanks for clarifying. So you are using Google Home Script Editor, not home automations on mobile.

Could you please try this script below:
metadata:
name: Vacation Master Mode
description: Triggers all individual presence simulation routines for when we leave.
automations:
- starters:
# This is the single voice command you will use when you leave
- type: assistant.command.OkGoogle
eventData:
query: We are leaving for vacation
actions:
# Trigger the first scheduled routine
- type: assistant.command.OkGoogle
okGoogle: run turn on entry schedule
# Trigger the second scheduled routine
- type: assistant.command.OkGoogle
okGoogle: run turn off entry schedule
# Trigger the third scheduled routine
- type: assistant.command.OkGoogle
okGoogle: run close parents' shutters schedule
# ... continue adding all other routines ...
- type: assistant.command.OkGoogle
okGoogle: run open parents' shutters schedule
- type: assistant.command.OkGoogle
okGoogle: run turn on mezzanine schedule
- type: assistant.command.OkGoogle
okGoogle: run turn off mezzanine schedule
# Optional: Add a final voice confirmation so you know it worked
- type: assistant.command.OkGoogle
okGoogle: Tell me that vacation mode is now active

The YAML snippet you provided was very close, but the schedule command type is used to execute a specific device action at a future time. To trigger another Routine by its voice command, you need to use the assistant.command.OkGoogle action, as shown in the solution above.

Please make sure each of your existing, individual vacation routines (e.g., the one that closes the shutters, the one that turns on the lights on a schedule, etc.) is started by a unique and very simple voice command.

  • Example 1 Routine Starter: Hey Google, run turn on entry schedule

  • Example 2 Routine Starter: Hey Google, run close parents' shutters schedule