Observed this a long time ago, have not asked yet.
Consider this automation in yaml:
- alias: "test: super automation"
id: "test_super_super_automation"
description: ''
trigger: []
condition: []
action:
- service: notify.persistent_notification
data:
message: hello
mode: single
The “id” option stands for (Docs):
It is not said here that “id” becomes “entity_id”.
So, the automation becomes “automation.test_super automation”:
Seems that “entity_id” is only generated from “alias”.
(yes, yes, a modern trend to use UI only… no need to know “entity_id”…)
Is there any YAML-way to define entity_id?
Or is it can only be done by composing the “alias”?
(I do know about a possibility to change entity_id in UI)
1 post - 1 participant