Skip to content

How can you incorporate the usage of aliases #160

Closed Answered by acon96
Mugga6315 asked this question in Q&A
Discussion options

You must be logged in to vote

If you have an alias created for an entity, it is passed as a "duplicate" entity in the devices template variable with the entity_id being the same for the duplicate entity, but the name field will be set to the alias's name.

It looks like this in the default prompt (with the alias being Dan's Lights)

light.ceiling_lights 'Ceiling Lights' = on;sandybrown (255, 164, 81);70%
light.ceiling_lights 'Dan's Lights' = on;sandybrown (255, 164, 81);70%

I think I want to add another variable to the devices block is_alias to allow you to either filter aliases or handle them differently in the prompt.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Mugga6315
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants