Schedule disable Automation

A few times it disabled some automation and I wish I could schedule a time to disable or re-enable it.

You can automate this.

trigger:
  - platform: state
    entity_id: automation.foobar
    to: 'off'
    for:
      hours: 12
action:
  - service: homeassistant.turn_on
    target:
      entity_id: automation.foobar

Or:

trigger:
  - platform: time
    at: "23:59:59"
action:
  - service: homeassistant.turn_on
    target:
      entity_id: automation.foobar