# Let Alexa welcome you home

Alexa Jun 26, 2020

Using Home Assistant and Node Red, I created an automation which not only greets me when I come home, but also tells me who is home and who is away (and how long).

Welcome back, Celine. Dylan and Mom are also at home. Dad left two hours ago.

## The flow

Our imaginary family consists of four persons: Alice and Bob (parents), Celine and Dylan (children). Here is my flow:

### Configuration

The nodes annotated with red letters will require tweaking for your requirements.

C: Filter family

The flow will only greet your family (or any other selected group of people). You need to change the array for your family or completely remove the node if you don't want to filter at all.

D: Front door opened

Change the binary sensor your door sensor (or any other sensor you want to trigger the greeting by)

G: Create message

Here you can change all the texts that are used for the greeting. It should be easy to localize it for your language, and English and German strings are available already.

A really cool feature I think is the relations map. Children normally don't call their parents by name but with "Mom", "Dad", and so on. So with the relation map, you can override the friendly name for the kids.

let relations = {
"person.celine": {
"person.alice": "Mom",
},
"person.dylan": {
"person.alice": "Mom",