08-18-2023 06:35 PM
I have 5 Nest Protects in my house that I want to use with my Home automation.
Ever since I got my devices 2 years ago there is still no option to use my devices for automation.
I have Google Home and Athom Homey Pro in my house, and I want to be able to use my smoke detection to trigger alarms and routines when it is happening.
This is however not possible after Google migrated the devices over to google platform.
When will the users be able to get a Nest Protect API to use smoke detection, movement in rooms etc to automate our smart house? You are still selling tons of these devices every day, and the community hear nothing from you regarding this issue. You would sell even more devices if you provided this feature, it is one of the moste wanted devices for protecting your house, still people are not buying because you do not provide solutions in this regard.
08-19-2023 02:30 AM
You can create some automations now with the script editor, which is part of Public Preview for the Google Home app.
Create advanced home automations with the script editor - Google Nest Help
Supported starters, conditions, and actions | Automations Script Editor | Google Home Developers
I'll include an example below for Nest Protect to flash the lights when high smoke level is detected.
metadata:
name: Smoke detection lights
description: When smoke level is high, flash the lights.
automations:
starters:
- type: device.state.SensorState
device: Device Name - Room Name
state: currentSensorStateData.SmokeLevel.currentSensorState
is: high
actions:
# Only works for lights that support Pulse effect
- type: device.command.LightEffectPulse
devices:
- Light Name - Room Name
- Light Name - Room Name
duration: 5min
08-19-2023 07:36 AM - edited 08-19-2023 07:40 AM
- type: device.state.SensorState
device: Device Name - Room Name
state: currentSensorStateData.SmokeLevel.currentSensorState
is: high
It should also be mentioned that if you have not added a 'Label' to the Protect from within the Nest app, the script editor will display the Protect only as "Room Name - Room Name". After adding a label, the script editor will display the Protect as "Room Name(Label) - Room Name". Like this:
device: Bedroom(Protect) - Bedroom
A label is especially useful if you have more than one device of the same type in your household. The instructions on how to add a 'Label' is here:
09-12-2023 11:51 AM
Is this just a sign of things to come and is Google going to remove all 3rd party Home Automation systems (account linking and or API) to force people into using Google Home? I thought the idea behind Matter is cross-compatibility. Those of us who were happy with the Nest Protect until Google forced a migration and broke this functionality are still waiting on Google to fix it. Next think I'll find out is that my Nest thermostats are on the chopping block.
04-25-2024 02:08 AM
Hi David,
So we are able to use script editor for Nest Protect triggers and actions?
If so, could you list the available triggers and actions for Nest Protect?
04-25-2024 07:20 AM
The only starter that's currently supported is the sensorstate example I gave above.
Nest Protect has no supported actions currently.
Supported devices | Automations Script Editor | Google Home Developers
05-18-2024 12:50 AM
I wrote this automation using YAML on Home.google.com and it used to flash all my lights red and blue and then stay red (Philips Hue). It also turned of the relay connected to smart plug to cut power to my electric stove/oven. One month ago (April 20th 2024?) the automation broke. Going through debug /execution log.
rote this routine 3 months ago and it was performing well. Everytime Someone burnt their toast or cooked with too much smoke the routine WOULD Flash the Hue lights red and blue for several minutes and cut off power. Something happened 2-3 weeks ago and this routine no longer works. Maybe a software update broke the routine?
Looking at the execution logs for the script. I get..
Automation started by: [device not found] because [home.graph.traits.SensorState/current_sensor_state_data[0].name] [string_value: "SmokeLevel"].
03/05/2024 02:48:21
[INFO] Automation started by: [device not found] because [home.graph.traits.SensorState/current_sensor_state_data[0].current_sensor_state] [string_value: "smoke detected"].
03/05/2024 02:48:21
[INFO] Automation started by: [device not found] because [home.graph.traits.SensorState/current_sensor_state_data[0].alarm_state] [string_value: "ALARM"].
03/05/2024 02:48:21
[INFO] Automation started by: [device not found] because [home.graph.traits.SensorState/current_sensor_state_data[0].alarm_silence_state] [string_value: "ALLOWED"].
03/05/2024 02:48:21
[INFO] Automation started by: [device not found] because [home.graph.traits.SensorState/current_sensor_state_data[1].name] [string_value: "CarbonMonoxideLevel"].
03/05/2024 02:48:21
[INFO] Automation started by: [device not found] because [home.graph.traits.SensorState/current_sensor_state_data[1].current_sensor_state] [string_value: "no carbon monoxide detected"].
03/05/2024 02:48:21
[INFO] Automation started by: [device not found] because [home.graph.traits.SensorState/current_sensor_state_data[1].raw_value] [float_value: 0.0].
Somehow the Kitchen alarm is registering as [Device not Found] instead of KitchenSmokeAlarm or something. Anyways please suggest or help