How to get a device attribute in Node Red render template node

I have flow that I use to turn a fan on and off depending on the value of some temperature sensors. I want to change it to use the AccuWeather sensor. The problem is the AccuWeather sensor doesn’t store the temperature in the state, but rather an attribute. How can I modify the below template to find the attribute of the weather.home sensor instead of the sensor.outside_temperature state?

{%- if states('sensor.office_temperature') | float  < 65 
    or states('sensor.office_temperature') | float  < states('sensor.outside_temperature') | float + 1  %}
    Stop Cooling
{%- elif states('sensor.office_temperature') | float  > states('sensor.outside_temperature') | float + 2  %}
    Start Cooling
{% endif -%}