Motion Sensor Google Announcment


#1

I am a newbie. Now that’s clear need some help on my first piston.

I have a piston built that states if there is motion on a multisensor then make my google home speakers state :Motion Detected:

This works perfectly. However, how do i put a cooling off period afterwards. Otherwise it just keeps going off every single time the motion is detected.


#2

Post your piston, click the Green Camera icon to generate the anonymized image.


#3

Google Motion Doorbell
Status
This piston is currently active and humming happily.

Piston Category

Quick Facts
Piston state: false

Last executed: 7/24/2018, 3:40:36 PM

Next scheduled: never

Subscriptions: 1 event, no controls

Devices used: 1

Memory used: 2% (2029 bytes)

External URL: (click to open/execute)

Automatic Backup
Automatic backup enabled.

Click the box to reveal your backup bin code. Make a note of this code as you may use it later to restore a deleted piston.

apvka

Do NOT share this code with anyone.

Script

//
/* Google Motion Doorbell */
/
/
/* Author : John Carter /
/
Created : 7/24/2018, 3:24:20 PM /
/
Modified : 7/24/2018, 4:16:53 PM /
/
Build : 2 /
/
UI version : v0.3.105.20180628 */
/**************************************************************/

execute
end execute;

Logs
The log is empty
Logging level
Variables
Local variables
(no variables defined)
Global variables
(no variables defined)
System variables
dynamic$argsnull
integer$day24
integer$dayOfWeek2
string$dayOfWeekNameTuesday
device$deviceLocation
device$devicesLocation
integer$hour4
integer$hour2416
string$httpContentType
integer$httpStatusCode
boolean$httpStatusOk
integer$iftttStatusCode
boolean$iftttStatusOk
dynamic$incidentsnull
decimal$index
dynamic$jsonnull
datetime$localNow1532450790496
device$locationLocation
string$locationModeHome
integer$mediaSize0
string$meridianPM
string$meridianWithDotsP.M.
datetime$midnight7/24/2018, 12:00:00 AM
integer$minute46
integer$month7
string$monthNameJuly
string$nameGoogle Motion Doorbell
datetime$nextMidnight7/25/2018, 12:00:00 AM
datetime$nextNoon7/25/2018, 12:00:00 PM
datetime$nextScheduledTimeInvalid Date
datetime$nextSunrise7/25/2018, 6:06:00 AM
datetime$nextSunset7/24/2018, 7:54:00 PM
dynamic$nflnull
datetime$noon7/24/2018, 12:00:00 PM
datetime$now7/24/2018, 4:46:30 PM
dynamic$placesnull
decimal$random0.4669030923387165
string$randomColor#696969
string$randomColorNameWhite Smoke
integer$randomHue266
integer$randomLevel73
integer$randomSaturation77
dynamic$responsenull
integer$second30
boolean$shmTrippedfalse
string$state(not set)
datetime$sunrise7/24/2018, 6:06:00 AM
datetime$sunset7/24/2018, 7:54:00 PM
string$time4:46 P.M.
string$time2416:46
datetime$utc1532468790525
string$versionv0.3.105.20180628
dynamic$weathernull
integer$year2018
Evaluation Console

Enter a value to evaluate and hit Enter
Statistics


#4

Well that’s not a snapshot lol… use the green snapshot button to generate an image you can share.


#5

sorry about that, look back at the original post. Its there.


#6

Right now you have it announcing anytime that the motion status changes. So, you will get the announcement when motion is detected and also when it clears.

I’m guessing that you want it to announce when motion sensor one changes to ACTIVE.

That is still probably too often, but it will give you a start.


#7

Thanks HAL, Do any of you guys have experience with google home integrations? I setup cast-web in GitHub so that my homes are all active in smart things. Right now I have it setup on a smart app but would rather web core do everything. Is there a piston out there for that. I said this one was working but its very hit and miss