-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add label extensions #3
Comments
For my reference: https://www.home-assistant.io/docs/configuration/templating/#labels I should work on the next minor version of this package once I'm done with v4 of my remote card. |
@codemunkie15 |
Bad news - it turns out the hass object field I was using for a lot of labels logic |
@codemunkie15 have you gotten around to trying this in the custom features project alpha? |
Are you requesting that a Home Assistant template extension be added? Which one?
Extensions for labels
Is your feature request related to a problem? Please describe.
I'm trying to define CSS styles based on a label being attached to an entity.
Describe the solution you'd like
'Presence activated light' in label_entities(config.entity)
Describe alternatives you've considered
I can do this (requires label_id):
'presence_activated' in hass.entities[config.entity].labels
But would prefer to do this (uses label name instead):
'Presence activated light' in label_entities(config.entity)
Many thanks
The text was updated successfully, but these errors were encountered: