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

Attribute Support Help #83

Open
tet024 opened this issue Jul 9, 2021 · 1 comment
Open

Attribute Support Help #83

tet024 opened this issue Jul 9, 2021 · 1 comment

Comments

@tet024
Copy link

tet024 commented Jul 9, 2021

Hello,

For the solar_power_entity I have an Attribute within the entity how can i configure that please. Basically for all the required entities I have one Entity then they are all sub attributes to that entity.

Help would be greatly appreciated.

Thanks,
Etienne

@gurbyz
Copy link
Owner

gurbyz commented Jul 10, 2021

You can convert attributes of entities to their own entities using template sensors. In this way you can create a new sensor entity that is based on one of the attributes of another entity.

Here's an example of such a sensor created in yaml specification:

sensor:
  - platform: template
    sensors:
      this_is_my_new_entity:
        friendly_name: 'My beautiful entity'
        unit_of_measurement: 'kW'
        value_template: >-
          {{ state_attr("climate.my_old_entity", "the_name_of_the_attribute") }}

Pls try to find more help on template sensors in the documentation of Home Assistant or on the forum of Home Assistant.

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

2 participants