Weather.com (The Weather Channel) Custom Integration

I tried adding this template through the UI, but that doesn’t seem possible, so I added it to configuration.yaml, but I’m not sure I know how to determine if it is working. It doesn’t show up under helpers or entities so I’m not sure where to see that it exists or is doing what it is supposed to do.

It needs to be added to configuration.yaml - as far as I know it’s not possible to add it through the UI. Once it’s added you may need to restart Home Assistant before the new entities will be created, then you should see them in your list of entities. Here’s how I’m doing it in my configuration.yaml:

template:
  - trigger:
    - platform: state
      entity_id: weather.home
    action:
      - service: weather.get_forecasts
        data:
          type: daily
        target:
          entity_id: weather.home
        response_variable: daily
    sensor:
      - name: "Weather Forecast Min Temp Today"
        unique_id: "5bb863b7-5225-464f-ba27-534c4ab3a73c"
        state: >-
          {{ daily['weather.home'].forecast[0].templow }}
      - name: "Weather Forecast Precipitation Probability Today"
        unique_id: "7efa2450-7215-4d60-bf8e-0a825599f023"
        state: >-
          {{ daily['weather.home'].forecast[0].precipitation_probability }}
      - name: "Weather Forecast Precipitation Quantity Today"
        unique_id: "e0b5c4cf-0227-4214-b12f-69e48dc0e08a"
        state: >-
          {{ daily['weather.home'].forecast[0].precipitation }}
2 Likes

Got it. So I need to add sensors for as far out as I want the forecast to go. Thanks.
Now to figure out if I accidentally created some sensors, and if they go away when the configuration.yaml is updated and the sensors are removed.

@jaydeethree it looks like the templow value is wrong, can you check these?
in homeassistant he say 10C online is 2C

It looks correct to me. Can you provide more info about the problem that you’re seeing? Thanks!

i screen it next time, now it looks good. :sweat_smile:
maybe a sync mistake