Configuring Temperature Sensor - HELP!

Hi,
I am trying to read the temperature from a Philips Hue Sensor. I’ve followed https://github.com/robmarkcole/Hue-sensors-HASS and have the following in my yaml files.

groups.yaml

default_view:
  view: yes
  entities:
    - group.Hue

Hue:
  entities:
    - sensor.downstairs_study_motion_sensor
    - sensor.downstairs_study_temperature

and

configuration.yaml

sensor:
 - platform: ring
 - platform: bom
   name: Adelaide
   station: IDS60901.94648
 - platform: huesensor
 
 - platform: template
   sensors:
     downstairs_study_temperature:
       friendly_name: 'Study Motion Sensor'
       value_template: '{{state_attr("sensor.downstairs_study_temperature", "temperature")}}'
       unit_of_measurement: °C

The Sensor appears on the front screen however is not picking up the temperature. I assume this is because my attributes are incorrect, how do I tell?

Telling us what the problem is.

Just updated original post with more of a description

- platform: template
   sensors:
     downstairs_study_temperature:
       friendly_name: 'Study Motion Sensor'
       value_template: '{{state_attr("sensor.downstairs_study_temperature", "temperature")}}'
       unit_of_measurement: °C

You are creating a sensor called downstairs_study_temperature, that to get it’s reading is trying to get the temperature attribute of itself. (note the 3rd and 5th line of my quote)

The entity_id in the value_template needs to be that of the sensor you want to get the the temperature information from.