No. Not yet.
Wait until you have updated to 2024.10.
Replace the word action:
with actions:
first. Then replace service:
with action:
If you don’t do it in this order it becomes difficult to distinguish the changes required:
e.g easy:
- id: c6ff67b4-ea6a-4953-b3b5-d4a369f33f1c
alias: 'Solar Forecasst Message'
trigger:
- platform: sun
event: sunrise
action: #### <- Change to "actions:" first #####
- service: notify.telegram_general #### <- then change these to "action:"
data:
title: '☀️ <b>Solar Forecast</b>'
message: >
Today: {{ states('sensor.todays_solar_forecast') }} kWh
Tomorrow: {{ states('sensor.solcast_forecast_tomorrow') }} kWh
difficult if you have already replaced “service:”:
- id: c6ff67b4-ea6a-4953-b3b5-d4a369f33f1c
alias: 'Solar Forecasst Message'
trigger:
- platform: sun
event: sunrise
action: #### <- Change to "actions:"
- action: notify.telegram_general #### <- uh-oh don't change these ones to "actions:"
data:
title: '☀️ <b>Solar Forecast</b>'
message: >
Today: {{ states('sensor.todays_solar_forecast') }} kWh
Tomorrow: {{ states('sensor.solcast_forecast_tomorrow') }} kWh
This can only be done after updating to the October release.
So in short do not change service:
to action:
just yet. Wait until you can change action:
to actions:
after updating to the October release. Only then it is safe (easy) to update service:
.