cancel
Showing results for 
Search instead for 
Did you mean: 

Public Preview - question on commanding multiple devices

cajoogoo
Community Member

When scripting an automation in the Public Previw for the Google Home app, I want to trigger two switches at the same time.  The only way I found to do it is by using 2 commands as shown below; i there a way to trigger 2 devices on the same line of code?

actions:
- type: device.command.OnOff 
    on: true
    devices: Fan - Play Room
- type: device.command.OnOff 
    on: true
    devices: Light - Play Room

1 REPLY 1

Nes58
Community Member

In m scripts i'm using this:

actions:
- type: device.command.OnOff 
    on: true
    devices:

          - Fan - Play Room
          - Light - Play Room