I am learning how to do some programming to be able to customize my front end.
I have a garbage sensor, and I would like to create a sensor that contains the Days attribute.
Here is the garbage Sensor:

I tested this in the developer tab, and it works:
This is my sensor:
platform: template
sensors:
days_till_garbage_pickup:
friendly_name: 'Days until garbage pickup'
unique_id: days_till_garbage_pickup
unit_of_measurement: Days
value_template: "{{ state_attr('sensor.garbage_trash', 'Days') }}"
Does not show up. What am I doing wrong please?
