09-09-2023 03:54 PM
I've created an automation to turn on the light if my front door opens because of wyze sense. Nothing happens. Is wyze sense supported?
# ------------------------------------------------------------------------------------------ #
# Lines starting with “#” are comments and will be ignored by the automation.
# Indentation determines hierarchy within the script.
# Visit g.co/home/script-editor-docs for full documentation.
# ------------------------------------------------------------------------------------------ #
metadata:
name: Turn on lights when door open # Choose a short name that summarizes important starters and actions, like “Sunset lights”.
description: Turn on lights when door open # 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.state.OpenClose
state: openPercent
# [available operators: is, isNot, lessThan, lessThanOrEqualTo, greaterThan, greaterThanOrEqualTo]
is: 100
device: Front Door - Front door
# ---- 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”.
#condition:
#type:
# ---- 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.BrightnessAbsolute # Adjust device absolute brightness.
brightness: 100
devices: Kitchen Lights - Kitchen
09-12-2023 09:50 AM
Unfortunately it doesn't look like Google supports any of the Wyze security sensors.
I went here: https://developers.home.google.com/automations/supported-devices and typed "wyze" into the search bar and I don't see anything under security or sensor.
Presumably the starter you are looking for is if your front door entry sensor detects being opened. The "OpenClose" starter you have there seems to be more for garage doors that can sense the percentage of how much they are opened or closed.
A potential work around could be to use the Google Home Presence Sensing to turn on your light when it detects you are home. Looking a little harder at that list it doesn't look like Google supports (or perhaps Wyze doesn't allow access) many useful starters. Only other option I could maybe think of is if Wyze lets you automate turning on/off a camera (if you have any) based on its own home detection. Like, maybe you turn off your indoor camera when your system is disarmed when you get home. Google MIGHT be able to detect that camera going off and then kick off the routine. Google Home Presence is probably easiest, though.
Hope that helps!
01-03-2024 05:35 PM
Hello, you might have the solution already. But my feedback would be to rename the device in the Google Home App so that it is not the same as the room name. Devices and room names need to be unique. I had the same problem. Change it to
device: Front Door Sensor - Front door
Hope that helps!