Use something like this in the Google Script Editor (you need to join
the public preview if you haven't already).metadata: name: Bed 10
description: Turn on bedroom light for 10 minutes automations: -
starters: - type: assistant.event.OkGoogle eventD...
You can do this by using the same starter twice (make sure you use the
hyphen in front of the starters as indicated in the following
example:metadata: name: Light on/off with same command description:
Light on/off same command automations: - starters...
There actually is a way to do an If-then-else. You put the same starter
in the script twice. You can also put it in a third time (or more) to
create a part that executes regardless of the If-then-else. It would
look something like this:metadata: name...
It's the dash in front of the type in the condition. That indicates an
array. Just drop it. Something like this:metadata: name: Bedroom Heater
Control description: Turn on bedroom heater when the temperature drops
below a set threshold. automations: ...
SmartThings allows you to create virtual switches through their new web
site my.smartthings.com/advanced (no API access necessary). Yes, you can
control the virtual switches through Google Home, Google Script Editor,
and Alexa. And yes, both Google H...