I currently have an automation that alerts via my google homes if a person moved from pathway to front door areas (in frigate zones), then checks if someone is home, and if they are it speaks on the google homes in the lounge ‘There is someone at the door’ using the Text-to-speech(TTS) service.
Now frigate has face recognition and an entity called ‘sensor.front_door_last_recognized_face’. This is pretty hit and miss however but based on its activity, I can see the entity change from ‘None’ to ‘name’ and then to none again. sometimes it changes to ‘Unknown’ if the face is unknown.
My first question, can I edit the ‘text’ in this service to somehow add the name only if it is not ‘unknown’. As this service just has a message text, I dont think that is possible.
If the text cannot be adapted, is there any other way of doing something like this -
If the sensor.front_door_last_recognized_face changes from None to anything other than ‘unknown’, then say that person (i.e Fred, George or whatever).
Thanks.