pa-wills / Home-Assistant-Config

This is my Home Assistant config repo. Just yamls at this very early stage.
0 stars 0 forks source link

TTS greeting when Pete enters home, and home becomes occupied #113

Open pa-wills opened 3 years ago

pa-wills commented 3 years ago

Structure:

This is a good solid start.

pa-wills commented 3 years ago

Implementation / design thoughts:

pa-wills commented 3 years ago

Hmmm, reviewing the existing code - I already have a robust way to get the House into "Just Arrived". So, trigger off this transition and then check whether I am home and Emma is not.

Upon that Just Arrived and Pete being the one arriving home - activate the state - which we will call welcomeHomeBriefingArmed.

A callback handler for that ought to create the briefing text, ready for TTS. And then trigger a downstream callback that waits for the combination of entry sensors to trip (which we may simplify with a Group).

Upon that secondary callback being tripped - we invoke the TTS, and then set welcomeHomeBriefingArmed to False, and reset back to where we were when the house was empty.