Automations turns to disabled itself

I have tens of working automations and never had the problem them automatically being disabled. But few weeks back I made 2 simple ones with iPad using non yaml mode (first time using iPad to make automation) and they end up turning disabled daily. I enable them and next day they are disabled.

Finally I deleted them and created them again copy pasting it in yaml editor keeping the same name and other one was already disabled after saving it. I deleted them again and changed their names to be sure they are different from the perspective of Home Assistant and next day they were disabled again.

When they are enabled they work fine. The device and entity ids are right. Can’t find anything in log about this. History shows device being switched on/off when automation is enabled. Can’t understand how to solve this.

These are the automations:

alias: Asunto 1 - Lumiaallon huone PK 1.1.12.1 - Yövalo sammuta
description: “”
trigger:

  • platform: time
    at: “23:30:00”
    condition: []
    action:
  • type: turn_off
    device_id: a869bcd3f0748d2c4d84e0a7a8f1d1e2
    entity_id: switch.lumiaallon_huone_pk_1_1_12_1
    domain: switch
    mode: single

alias: Asunto 1 - Lumiaallon huone PK 1.1.12.1 - Yövalo sytytä
description: “”
trigger:

  • platform: time
    at: “21:00:00”
    condition: []
    action:
  • type: turn_on
    device_id: a869bcd3f0748d2c4d84e0a7a8f1d1e2
    entity_id: switch.lumiaallon_huone_pk_1_1_12_1
    domain: switch
    mode: single

Home Assistant version is 2023.5.4 (updated twice during the problem occuring) on Docker.
Device is on Zigbee2MQTT latest version also on Docker and physically is Ikea’s power socket controller.
In Zigbee2MQTT everything is fine also.
Mosquitto also latest version running on Docker.
Also I have other identical devices using automations and they all work fine.

Can anybody give some directions how to fix this?

You don’t remember fiddling with enabling/disabling automations?

I know I have only being enabling these automations many many times during past few weeks, never disabling.

If you find your automation on the list of automations then go to Information on the 3 dot menu. Then go to History (little graph button). Here you can see what disabled your automation and when.

It took a while to figure out the cause. I have card for all the lights that are on and it has an entry:
- name: /PK/
state: ‘on’
not:
domain: light
This adds then also these automations as they contain “PK” when they are enabled in addition to actual device when it’s on. When switching all the lights off, also the automations get disabled. Have to figure out how to make the card ignore the automations.

Thanks for pointing me in right direction!

1 Like