My automations stopped working after 0.46 update

Edit: Nevermind. I figured it out. As part of playing around with the configuration editor, I inadvertently renamed my automations directory to ‘automation’…

I updated to 0.46.0 and my automations stopped working. I haven’t really debugged it but after searching here, I tried changing:

automation: !include_dir_list automations

to:

automation old: !include_dir_list automations

But that didn’t seem to make a difference. The most easily tested automation is this one:

alias: Turn on recirculation pump after 5AM, if we're here
trigger:
  - platform: state
    entity_id: device_tracker.tr60
    state: 'home'
action:
  - condition: and
    conditions:
      - condition: time
        after: '05:00:00'
      - condition: time
        before: '23:00:00'
  - service: switch.turn_on
    entity_id: switch.recirculation_pump

I know that the conditions are correct but the recirculation pump is not turned on. I can turn it on/off manually by asserting it in my hadashboard.

I find the automation syntax somewhat arcane so I’ve spent many hours trying to get stuff working in the past… Now I’m essentially at a loss because it was working great before I updated.

(also, tried to convert everything to the automation editor but that was a separate disaster).

There were some breaking changes in the last couple of releases. Try:

alias: Turn on recirculation pump after 5AM, if we're here
initial_state: 'on'
trigger:
  - platform: state
    entity_id: device_tracker.tr60
    to: 'home'
condition:
  - condition: time
    after: '05:00:00'
  - condition: time
    before: '23:00:00'
action:
  - service: switch.turn_on
    entity_id: switch.recirculation_pump

Thanks. I’ll give it a shot next weekend when I’m back out there. I figured there must have been something syntactically incorrect with mine as I managed to get it into the new automations.yaml and show up in the automation editor but the editor brought up a blank screen when I clicked on the automation.

Looks like that fixed it. Thanks.

So I guess the conditions under ‘condition:’ are an implicit ‘AND’