Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106284

Automation": define entity_id explicitly

$
0
0

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”:

image

image

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

Read full topic


Viewing all articles
Browse latest Browse all 106284

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>