-
I just wanted to ask how I can modify the standard prompt to also take aliases into consideration for a device instead of just looking for the id or name. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
If you have an alias created for an entity, it is passed as a "duplicate" entity in the It looks like this in the default prompt (with the alias being
I think I want to add another variable to the devices block |
Beta Was this translation helpful? Give feedback.
-
Ah okay, thanks for the clarification. Was just wondering because AI once responded with cannot find this device even it was called exactly like that as an alias. |
Beta Was this translation helpful? Give feedback.
If you have an alias created for an entity, it is passed as a "duplicate" entity in the
devices
template variable with theentity_id
being the same for the duplicate entity, but thename
field will be set to the alias's name.It looks like this in the default prompt (with the alias being
Dan's Lights
)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.