#Trigger from YAML automation get's disabled automatically

1 messages · Page 1 of 1 (latest)

vocal sand
#

So I do my automations via YAML and for some reason with my newest automation the trigger just get's disabled for no reason. And I can't enable it either since the automation comes from the YAML. The logs don't show anything either.

Naturally, it doesn't trigger either so it's not a UI bug. Any ideas here?

finite skiff
#

Have you tried just creating the trigger through the UI and seeing if that works?

vocal sand
#

after duplicating the automation so i can edit it via the UI the trigger does not seem disabled

vocal sand
#

creating a new automation with the same content or just the trigger doesn't work either

#

(via YAML)

vale moon
#

That usually means that you have a syntax error somewhere in your configuration that prevents HA from setting up the trigger

vocal sand
#

it looks fine to me and i also didn't get any repairs or errors but maybe i'm just missing something

alias: Holiday Shopping Notification
description: >-
  Checks daily if I plan to go shopping the next day. It will
  send a notification, if there's a holiday on that day so I
  can do the shopping before that.

id: 019a67f2-b6fc-7993-971c-90f8d11ae491
mode: single

triggers:
  - trigger: time
    at: "06:30:00"

conditions:
  - condition: template
    value_template: |-
      {% from "calendar.jinja" import event_is_coming_up %}

      {% set calendar_entity = "sensor.calendar_events_tomorrow" %}
      {% set events = state_attr(calendar_entity, "data") %}

      {# check upcoming event by the name #}
      {{ bool(event_is_coming_up(events, "Einkaufen")) }}

  - condition: template
    value_template: |-
      {% from "calendar.jinja" import event_is_coming_up %}

      {% set calendar_entity = "sensor.calendar_events_tomorrow" %}
      {% set events = state_attr(calendar_entity, "data") %}

      {# check upcoming event by the description #}
      {{ bool(event_is_coming_up(events, "", "Rheinland-Pfalz")) }}

actions:
  - action: script.send_notification
    data:
      platform: [pc, smartphone]
      message: >-
        Be aware that there's a holiday tomorrow when you want
        to go shopping. You might want to go today instead :)
vale moon
#

I'm not sure why it says "(Disabled)" for the triggers in the UI. All of mine do, but they all work fine

#

Including the time-based triggers. I just had one trigger this morning, just as it does every day

#

It only shows that for automations that aren't in automations.yaml for me, but doesn't seem to have any bearing on whether they trigger. Seems like just a cosmetic bug

#

I created a simple automation in the UI and it doesn't say "(Disabled)", then moved it to my second YAML file, and it said "(Disabled}", but the time trigger triggered as expected

vocal sand
#

huh weird UI bug then maybe but weirdly enough the automation doesn't trigger still

#

the trigger looks fine to me and the automation is enabled