07-27-2023 07:56 AM
Hi, I bought tuya smart sensor for door/Window. I successfully connected sensor to tuya smart app but, and successfully connected tuya app with my Google Home app.
But when I try to create routines for turning lights with options "When device does something" I can't find my door sensor.
Can u help me with this?
Kind regards,
Cristiano
Answered! Go to the Recommended Answer.
07-27-2023 01:55 PM
The Automations Script Editor is found here: https://home.google.com
Language Basics: https://developers.home.google.com/automations/schema/basics
Supported starters, conditions, and actions: https://developers.home.google.com/automations/starters-conditions-and-actions
Example scripts: https://developers.home.google.com/automations/example-scripts
07-27-2023 12:18 PM
Contact sensors are not yet available as automation starter devices from within the GH app. You will need to use the script editor before you will be able to select contact sensors as a starter device.
07-27-2023 01:45 PM
Tks a lot. Any suggestion how to start in this script? (Sites, video, any specif index? 'google script'?)
07-27-2023 01:55 PM
The Automations Script Editor is found here: https://home.google.com
Language Basics: https://developers.home.google.com/automations/schema/basics
Supported starters, conditions, and actions: https://developers.home.google.com/automations/starters-conditions-and-actions
Example scripts: https://developers.home.google.com/automations/example-scripts
07-27-2023 02:21 PM
Thanks a lot!
10-05-2023 08:46 PM
Found a workaround... You'll need a Tuya smart plug to do so.
Create a scene on Tuya app when door sensor is open it turns on smart plug.
And when door sensor is closed it turns off smart plug.
Now in Google Home, create a routine with the smart plug as the starter, whether on or off.
04-27-2024 05:39 PM
You can do the same thing by creating a virtual device.
tuto: https://thingsboard.io/docs/user-guide/integrations/tuya/