Get Temperature from weather.home in Node red?

Breaking change. Weather is now a service, the old attributes have been removed.

https://community.home-assistant.io/t/update-from-using-weather-attributes-with-the-new-service-weather-get-forecasts/702736

For what it is worth, the following bit of sensor config works nicely for me (and I had to change weather provided too).

######################### to call weather forecast service to get hourly into a new entity Dec 2023 ################
  - trigger:
      - platform: time_pattern
        hours: "/1"
    action:
      - service: weather.get_forecasts
        data:
          type: hourly
        target:
          entity_id: weather.forecast_home
        response_variable: hourlyforecast
    sensor:
      - name: "Forecast Home Hourly"
        icon: mdi:weather-cloudy-clock
        state: "{{ now().isoformat() }}"
        attributes:
          forecast: "{{ hourlyforecast['weather.forecast_home']['forecast'] }}"

There are other ways to fix this, and much discussion regarding the change.

https://community.home-assistant.io/t/petition-dont-delete-the-forecast-attribute/609298

1 Like