So I got android wallpannel from thetimewalker, and use mqtt command “speak” to announce for when e.g. the washing machine or the vacuum robot downstairs is finished or anything else happens in the house that is annoying but not obvious, like the irrigation system was switched on manually and is x minutes later still on, or a server is not reachable anymore, or such stuff.
However, for maintaining the … its imperative it does not start talking in the middle of the night, and we had just that happen yesterday in lieu of me building a new HA instance and moving everything over. My wife presented me with a vid of it talking in the middle of the night, and i looked into the traces for that automation, zilch, last run was yesterday evening, not this night at 3 am, i presume there was some sort of old mqtt message that made it through at that time…
How ever, the boss mandates, i put a filter before the output.
so in stead of configuring this in each automation, where a global change woudl be a mess, i want to have a script, that i call in the automations, and hand over the text to speak… (also want this for notifications to the companion app)
then the script will check if its inside or outside of DND and if outside, will go ahead and publish the speak command to my tablet. while during DND it will wait till end of DND (do not disturb) and amend the text by "at {date/time} i wanted to say: “text”, but was in DND!
and if a second message comes in, that should be handled like
at {date/time} i wanted to say: “text” and at {date/time} i wanted to say: “text2”… but I was in DND!
How ever, ive been reading through the posts here and through
and i cant make head nor tail from from it. especially how to queue the messages.
Im sure im not the only one that has a wife that does not want to be bothered in the middle of the night by HA informing (and wakening up every one) about a finished washing machine or an offline Kodi or what not.
how do you fix it?
or any suggetions how i can get what I described further up?
thanks
Manny