[minutes] is an invalid option for... Error

Since I updated to 0.88.1 I get this error. After debugging a while with no results, I changed my config to the example from the doc:

automation:
alias: “Exterior Lighting on when dark outside”
trigger:
platform: numeric_state
entity_id: sun.sun
value_template: “{{ state.attributes.elevation }}”
# Can be a positive or negative number
below: -4.0
action:
service: switch.turn_on
entity_id: switch.exterior_lighting

And I still get this error

Invalid config for [automation]: [minutes] is an invalid option for [automation]. Check: automation->trigger->0->minutes. (See ?, line ?). Please check the docs at https://home-assistant.io/components/automation/ Invalid config for [automation]: [minutes] is an invalid option for [automation]. Check: automation->trigger->0->minutes. (See ?, line ?). Please check the docs at https://home-assistant.io/components/automation/ Invalid config for [automation]: [minutes] is an invalid option for [automation]. Check: automation->trigger->1->minutes. (See ?, line ?). Please check the docs at https://home-assistant.io/components/automation/

Any automation that uses “hours” “minutes” or “seconds” in the trigger should now be “time_pattern” instead of just “time” … it was a breaking change a few versions ago.

Automations that use “00:00:00” are still just “time”

2 Likes

And since your example does not use time or time pattern, the error must be somewhere else.

1 Like

He is clearly showing the wrong automation or the one he changed it to as he said… somewhere in his automations.yaml are automations using that… notice it doesn’t have a line number in the error…