Since I’m standing inside (when testing), opening the front screen door (which opens outwards) will trigger the patio motion detector which is located above the screen door looking down at where visitors would stand when they knock at the door.
Yes, I agree.
Yes, she’s 10 and very responsible. The front door opens onto our hallway which is open plan to our living room. Our Google Home Mini (GHM) is on a coffee table next to the lounge which is against the front wall. In other words, standing just inside the door and I’m only a few feet away from the GHM, so we can definitely hear it if it made the announcement during the testing.
I had done the test and even asked my daughter if she heard anything just in case my ears failed me as she was sitting right next to it and she said it didn’t. I went off to do a few things and the next time I went past, she said that it made the announcement. I confirmed with her that she wasn’t joking and she assured me she wasn’t. She suggested maybe someone came up to the patio, but it’s highly unlikely as we are on a quiet street and we don’t get many visitors, so I’m pretty confident that it would have been a delayed transmission.
fixed.
Yes, it made the announcement.
I copied:
trigger:
platform: template
value_template: "{% if ('states.switch.front_door_15.attributes.device_tripped', 'true') %}true{% endif %}"
onto the left hand side and the right hand side came up as:
trigger:
platform: template
value_template: "true"
Since the action tested ok and the trigger tested ok, I just went out the front door, once again watching the HA front end on my mobile change “Front Patio Motion” from “Off” to “On” and nothing.
Ok, I tried this (I put a quotation mark in from of the open { at the start as we were missing one) but testing didn’t get a response from GHM.
So mine read:
automation:
- alias: 'Someone At The Front Door'
trigger:
platform: template
value_template: "{% if (states.switch.front_door_15.attributes.device_tripped == true) %}true{% endif %}"
# Text to Speech
action:
- service: tts.google_say
entity_id: media_player.living_room_mini
data:
message: 'Motion Detected At The Front Door'
Next I tried:
So mine now reads:
automation:
- alias: 'Someone At The Front Door'
trigger:
platform: template
value_template: “{{ states.switch.front_door_15.attributes.device_tripped }}”
# Text to Speech
action:
- service: tts.google_say
entity_id: media_player.living_room_mini
data:
message: 'Motion Detected At The Front Door'
Result - Nothing from GHM.
When I put it into the trigger tester (whilst Front Patio Motion shows “on” ie tripped = true), it comes back:
trigger:
platform: template
value_template: “True”
I waited until Front Patio Motion shows as “off” (ie tripped = false), and it comes back:
trigger:
platform: template
value_template: “False”
I tested the trigger again in the front end (I’m sitting at a PC in a room at the back of the house) and went to the living room and my daughter said it played.
So it looks like the trigger and action are both working when tested manually, but not in “real life”.
Cheers