I use a lot of notifications across all my automations. I want to make these a lot smarter and easier to update. Some ideas of what I want to accomplish.
Checklist:
[ ] Ability to specify which user to send to (or a group of users)
[ ] Ability to specify which room the notification plays on, if text to speech
[ ] There'd be an input_select.notification_mode which could be Automatic/Full, Text Notifications Only, etc. This could be manually changed by me on the frontend, but would also be automatically changed as well using an automation and phase of day sensor. For example when it becomes night time it'd switch to text only notifications.
[ ] A way to mark notifications as critical, so it'd bypass and ignore the above rules.
[ ] Would be smart enough that if I'm not home, it wouldn't play a TTS alert at home but instead send a push notification my phone. Same for when guest mode is enable, don't play TTS and just route it to my phone instead.
[ ] Save all TTS announcements in a sensor.last_tts_message, so that they can be repeated if asked.
[ ] Add a notifier group for admin-type messages, specifying notify.admin will clean up code
more to come...
Some people have done things like this before so check those out for inspiration and ideas first.
I use a lot of notifications across all my automations. I want to make these a lot smarter and easier to update. Some ideas of what I want to accomplish.
Checklist:
notify.admin
will clean up codemore to come...
Some people have done things like this before so check those out for inspiration and ideas first.
Resources: