Greetings,
I have this automation where I would like if the motion is triggered in the kitchen, use tts to say something if the device is home using netgear tracking.
automation 8:
- alias: Greetings Mom
trigger:- platform: state
entity_id: sensor.kitchen_sensor
to: ‘True’
for:
hours: 0
minutes: 0
seconds: 1 - platform: state
entity_id: device_tracker.androidxxxxxxx
from: ‘not home’
to: ‘home’
condition:
condition: time
after: ‘16:00:00’
before: ‘16:35:00’
action:
service: tts.google_say
entity_id: media_player.vlc
data:
message: say something here
- platform: state
It does work however, it will keep repeating the message whenever someone walks by kitchen sensor (so it seems like the device_tracker is ignored). Also, the reason I put 1 second is in hope it will only trigger once between that time from 4-4:30 and that doesn’t seem to work either.
Do you know how to resolve it? Or, it is not possible with what I would like to achieve?
TIA.