#I am struggling for no good reason here... what am I doing wrong.

1 messages · Page 1 of 1 (latest)

wide sphinx
#

I cannot seem to pull any values from states.
In my configuration.yaml I have:
template: !include_dir_merge_list config/templates/

That reads in a file that has this:
`- sensor:

  • name: cc_temperature
    state: "{{ state_attr('person.cchmura','id') }}"
    unit_of_measurement: °F
  • name: cc_humidity
    state: "{{ state_attr('weather.tomorrow_io_home_daily','humidity') }}"`

The cc_temperature does in fact show up in my developer states, but no matter what I do its not able to populate a state from anything.

Just unknown.

I did change the name to make sure it was not configuring somewhere else and I can see the change.

I read the template doc, looks like my format is correct...

Thanks for any help!

quick dust
#

grabbing the id for a person and treating that as a temperature is pretty weird

#

it looks like this: 186f0adeb5d9463ca0c4311cce2566c2

wide sphinx
#

Sorry, lol, that was the last one I tried

#

just to get anything besides unknown

quick dust
#

I'm sure that will give you "unknown"

#

it matters waht you provide

wide sphinx
#

lemme flip it back to the temp one i was trying originally

#

Dangit, it works now. I think what happened is that I was reloading HA, but not doing a refresh on my browser

#

But, I am perplexed why the person one was not giving me back something. It does have an attribute of id...

#

Maybe it was the same thing... not refreshing

quick dust
#

Because it's not a numeric value

#

It's a long hex value