Hi On the node red is it possible to get a temperature from the weather on home assistant? When I ask for a status on the weather it only sends back “sunny”, is there a way to change it so it will give me the temp reading instead?
Any luck? I just got to this problem too
Found it, Replace the XXXX with your friendly Name and weather entity name.
- platform: template
sensors:
weather_temperature:
friendly_name: "XXXX"
unit_of_measurement: 'degrees'
value_template: "{{ state_attr('weather.XXXX', 'temperature') }}"
thanks @123
Can you please explain a bit more? I would need that when DarkSky weather changes to rainy, it will trigger some action
change temperature to forecast:condition i miss read initial post for a temperature thing
- platform: template
sensors:
weather_temperature:
friendly_name: "XXXX"
value_template: "{{ state_attr('weather.XXXX', 'forecast:condition') }}"