pilotak / homeassistant-attributes

Breaks out specified attribute from other entities to a sensor
Apache License 2.0
101 stars 11 forks source link

extraction of value from attribute not working #42

Closed Berni1983 closed 10 months ago

Berni1983 commented 11 months ago

Dear all.

i use the following code in the config file, but the new created sensor shows no value. what do i wrong. Thanks for your help.

sensor:

image

pilotak commented 11 months ago

your indetion is wrong, and try to wrap the attribute as string because it includes space

- platform: attributes
  friendly_name: "el.cost.allin.12-13"
  attribute: "Hour 12-13"
  unit_of_measurement: "ct/kWh"
  entities:
    - sensor.epex_spot_price_allin
pilotak commented 10 months ago

seems resolved