The following (simple) working automation started generating errors after upgrade to HA 2025 versions.
alias: "Time: Today's stats"
description: Call script to provide usage stats on water and energy every 3hrs
triggers:
- trigger: time_pattern
hours: /3
conditions: []
actions:
- action: script.todays_stats
metadata: {}
data: {}
mode: queued
development template shows script syntax to be valid as well:
action: script.todays_stats
data: {}
I get this error in Settings page:
The automation "Time: Today's stats" (automation.time_today_s_stats) has an unknown action: script.todays_stats.
This error prevents the automation from running correctly. Maybe this action is no longer available, or perhaps a typo caused it.
I keep hitting ‘submit’ button on settings page to get rid of it, but it keeps popping back up. I’m sure its a simple goof-up but I can’t for the life of me figure it out.
It can’t find this script. So you should not try to fix automations, but look in scripts. Did you rename some script or script entity id? Are there errors in your log showing scripts don’t load properly?
I doubt that is the case.The unique_id is not a required property but used for UI configuration. Also because the changes you make if HA is running get overwritten. Editing storage is not advised if you are not 100% sure you know what you are doing.