Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR]: Support for "object" attributes #256

Open
ildar170975 opened this issue Jul 17, 2022 · 2 comments
Open

[FR]: Support for "object" attributes #256

ildar170975 opened this issue Jul 17, 2022 · 2 comments

Comments

@ildar170975
Copy link

An entity may have an "object" attribute usually accessed in jinjia templates as:

state_attr("sensor.some_entity","some_object_attr").subattr

It would be great to have a possibility to access them like:

attribute: some_object_attr:subattr

or

attribute: some_object_attr.subattr
@quammy
Copy link

quammy commented Nov 12, 2022

+1

@loovanloon
Copy link

loovanloon commented Nov 21, 2022

+1

I would like to have this feature as well.

As for the syntax: In automations I think the following syntax is used (but I am not sure):
trigger.zone.attributes.friendly_name

In my oppinion it would be preferable to keep the syntaxes alike.

Example: https://community.home-assistant.io/t/automation-for-entering-and-leaving-zones/265000/4?u=loovanloon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants