09-07-2023 07:47 PM
I'm not sure why it isn't working, I get no errors. When i manually start it, the lights will turn on and off but the motion won't start the automation. Any suggestions?
metadata:
name: Untitled # Choose a short name that summarizes important starters and actions, like “Sunset lights”.
description: Scripted automation # Write a detailed description that includes everything the automation does, like “At sunset, on weekdays, close blinds, turn on lights to 50%, and play the sunset playlist on certain speakers.”
automations:
# “starters” and “actions” are required; “conditions” are optional.
# Use Ctrl + Space to see autocomplete suggestions.
# ---- STARTERS ---- #
# Starters describe events that will start the automation.
# To add more than one starter, duplicate the "- type" section under "starters".
# If you add multiple starter events, any one of them happening will start the automation.
starters:
- type: device.event.MotionDetection # Motion has been detected by the device.
device: Downstairs(Smoke Detector) - Downstairs
# ---- CONDITIONS ---- #
# Conditions are optional. Delete this section if it’s empty.
# Conditions will prevent an automation from starting if the conditions aren’t met.
# See g.co/home/script-editor-docs for documentation about how to use logical operators like “and”, “or”, and “not”.
# ---- ACTIONS ---- #
# Actions will start when a starter event takes place and all conditions are met.
# Actions will start in the order they appear in the script and with any delay specified.
# To add more than one action, duplicate the "- type" section under "actions".
actions:
- type: device.command.OnOff # Turn the device on or off.
on: true
devices: Hall Way - Lights
- type: time.delay
# Adjust duration as needed. Supported units: sec, min, hour
for: 1min
- type: device.command.OnOff # Turn the device on or off.
on: false
devices: Hall Way - Lights
09-08-2023 05:34 AM
Same here... my Nest Protect smoke detectors won't trigger device.event.MotionDetection.
09-22-2023 10:32 AM
Only wired Nest Protect send MotionDectection status...
It's written in the Google Home/Away specs.
09-22-2023 11:51 AM
Mine are all wired the, same problem, no device.event.MotionDetection event detected by automation.
metadata:
name: Foyer Motion # Choose a short name that summarizes important starters and actions, like “Sunset lights”.
description: Foyer light on when motion
automations:
starters:
- type: device.event.MotionDetection # Motion has been detected by the device.
device: Foyer - Downstairs
actions:
- type: device.command.OnOff # Turn the device on or off.
on: true
devices: Foyer lamp - Foyer
09-22-2023 03:20 PM
I only have wired Nest Protects, so that could not be the reason. Did you manage to get it to work, Hollen_ar_mor?
09-23-2023 03:42 AM
@jeroendk wrote:I only have wired Nest Protects, so that could not be the reason. Did you manage to get it to work, Hollen_ar_mor?
I only have battery ones... But I saw wired Nest Protect can trigger Home/Away status. So I though they could be able to work with MotionDetection.
In Automation, there is "autotext". For each "type" of starter, action or condition, there is a list of compatible devices. And when you choose "MotionDetection", my battery Nest Protect are proposed.
But the trigger doesn't work.
So I don't know if it's a bug or a Google limitation...
09-24-2023 12:34 PM
@Hollen_ar_mor wrote:So I don't know if it's a bug or a Google limitation...
I guess that means there's a double bug: (1) non-wired protects shouldn't be proposed through autotext and (2) even if wired devices are used in the script it doesn't trigger any action.
09-24-2023 01:50 PM
Yes mine is wired as well, when selecting motion detection it gives me the option to choose the smoke detector.
10-20-2024 07:36 PM
Still broken a year later.
10-21-2024 10:35 AM
And no official answer from Google...