How to switch an Automation on/off with an automation?

Okay, found my misstake, i used the wrong entity_id.

Test Automation to turn on/off:

- id: 'TestAutomation01'
  alias: Test-Automation 01

NOT working:

- service: automation.turn_on
  entity_id: automation.TestAutomation01

NOT working:

- service: automation.turn_on
  entity_id: 'automation.Test-Automation 01'

WORKING:

- service: automation.turn_on
  entity_id: automation.TestAutomation_01
1 Like