Automations No Longer Work for Me

Awhile back I upgraded to 0.61 and my automations stopped working. So I went back to 0.60.1 where they were still working. I was hoping it was an error ant that it would get fixed somehow int 0.62. I have now recently upgraded to 0.63.3 and I am still finding that my automations are not working. I have scanned through the logs briefly and didn’t see any major changes that would cause my automations to not work. The one automation I am trying to get to work is triggered on time but not sure if that matters.

If you can show your yaml, we could help you better, but at some point in there, there was a release that changed some verbiage.

So in my config file this is what I use:

automation: !include_dir_merge_list includes/automation

Then in my kitchen.led.yaml file I have this inside the file:

- alias: "Kitchen Under Cabinet Light Morning On"
  hide_entity: True
  trigger:
    platform: time
    at: '06:40:00'
    
  condition:
    condition: and
    conditions:
      - condition: state
        entity_id: binary_sensor.workday_sensor
        state: 'on'

  action: 
    - service: switch.turn_on
      entity_id: switch.under_cabinet_1_switch

In looking at my configuration, I see that my binary_sensor.workday_sensor is reading off right now and it should be on since it is indeed a workday…or is it because it is President’s day?

Yes you are probably right it doesn’t come on today because of President’s day however I have tried commenting that line out at it still didn’t work for me.

I had some issues, too and found that the items directly inside trigger, condition and action require a hyphen. You could try:

- alias: "Kitchen Under Cabinet Light Morning On"
  hide_entity: True
  trigger:
    - platform: time
      at: '06:40:00'
  condition:
    - condition: and
      conditions:
        - condition: state
          entity_id: binary_sensor.workday_sensor
          state: 'on'
  action: 
    - service: switch.turn_on
      entity_id: switch.under_cabinet_1_switch

Adding the dash seems to work. Thanks for the help

1 Like

You could of course mark my reply as the ‘solution’ to mark it as solved. :wink:

Is that auto-generated or what’s the purpose of a single-condition-and-condition?

I used to have another condition in there but when I removed it I never removed the and statement.