I have hundreds of automations that now need to be changed to support the new format. Will this be an automatic merge process like many other merges have been?
You can poke around and find info on how to adapt, from the repair, documentation and forums - but I haven’t found a single place yet with total information. Here is how I modified my notify.send_gmail type actions:
If you edit an action using the developer tools in UI mode, you can select an existing target from the dropdown list. Switch to yaml mode and copy the entity_id – or just search your states for a notify. entity.
Unfortunately, from what I see in here, all of this is useless. It does not give you any suggestions on “how to fix this” without me having to go through hundreds of automations.
ohh, i didn’t know
I have another Integration " Tibber " which supports “notify” ( To the Tibber Phone-App ), so no need for smtp, or open an email-app
And as i hate “notification-pop-ups” this is only for “Emergency Warnings” … gives one a little “kick” also then, when it’s triggered
For anything I do commonly in my automations more than a few times, like notifications, I use a script. Consider that when updating your automations. Scripts are flexible in how you call them, you can add features over time when needed, and then all your actual notification code lives in once place so much easier to update in the future. I also create wrapper scripts if I want to simplify parameters passed and provide defaults.
Step 1: search and replace all notify actions with send_message.
Step 2: copy the target: block from a test action in the developer tools.
Step 3. search all notify.send_message actions and paste in the target block.
I had 38. Yes it’s a pain, everyone gets it. Your choice is stay on the version you’re running, it will work as is forever as long as you don’t upgrade anything else as well. Or, upgrade and maintain – it’s the development model HA has chosen, for better or worse.
Yes, I know this is doable. I support all of my family’s Home Assistant. For me over 600 automations that need to be changed across 6 installs.
I have been slowly working on it and ran into an issue with html in the message body.
Someone correct me if I am wrong, but it appears that html is not a documented standard field of notify.send_message. I have many automations using html in the message body.
For example:
html: >
Todays Forecast Summary:
Condition:{{ states('sensor.condition') }}
Detail: {{ states('sensor.forecast').split('Wind')[0] | trim }}
Yes, I know smtp.send_message supports html. Unfortunately I didn’t know notify.send_message had issues with html in the message body. So, Now the hundred or so that I have done need to be done over… Not Happy…
Anyone know of any potential issues/conflicts that I need to look out for in smtp.send_message