Open pa-wills opened 3 years ago
Implementation / design thoughts:
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.
Structure:
This is a good solid start.