Help Creating Sensor from attribute

I am trying to create an entity card from the current temperature attribute from a climate device. It looks like I need to create a sensor template. This is what I have in my configuration.yaml, but it won’t validate.

template:
  - sensor:
    - name: "Aquarium Temperature"
      unit_of_measurement: "°F"
      value_template: "{{ state_attr('climate.itc_306a', 'current_temperature') }}"
    

Replace value_template: with state:

You’ve mixed up the old and new options.

1 Like