So I know this is possible with a template helper, but it would be nice if there was a helper that made it super easy to make a new entity who’s value is based on an attribute of another entity. Attributes are nice because they reduce the number of entities in your entity list but sometimes you want a particular attribute as an entity and looking up how to do this using templates is annoying.
As I understand it, one current goal is to have integrations move away from providing entities that have attributes that could otherwise be states. Instead, that data will be provided in individual entities, many of whom may be disabled by default. This is being done both to alleviate the need for users to extract them and to reduce some issues they cause with the DB.
All that to say, it seems unlikely a non-template option to extract attributes would be added any time soon.
Similar WTH: WTH - Just...WTH Attributes!
In any entity dialog where attributes are listed. You should be able to click the attribute to get a dialogue for creating an entity of the attribute.
Are you suggesting how this could work, or are you saying that it already works this way?
It seems a suggestion as that is not how it currently works in 2024.12.x and previous.
Not a bad suggestion either. Has caveats but probably how most would expect it to work. Or with a listing in the create helper dialog that asks for an entity then gives a similar list…
It is extremely easy to set up a template to do this.
As it’s not allowed in core, I made one which is available in hacs GitHub - gjohansson-ST/attribute_as_sensor: Home Assistant use an entity's attribute as a new sensor helper
Is there a reason why it is not allowed?
I posted this as my own WTH suggestion but someone merged the posts. So basically, we are in agreement.
Can you clarify why you believe this isn’t allowed in core?