Trying to figure out trigger states

Good evening. I admit at the outset that I’m a newbie to HA and to the languages used, though my career is in IT, so not a total non-techie.

I’m playing around with some automations and I’m trying to get HA to notify me via pushbullet whenever the state of the weather (via Dark Sky) changes, and use the trigger.to_state.state variable to to tell me in the message what the weather is. Given the section of code below, I get the following error:

16-10-20 01:34:42 homeassistant.core: Error inside async loop: Task exception was never retrieved

Note…pushbullet is working if I provide all of the data, but nothing happens when trying to use the state variable. Any help would be appreciated.

automation 4:
alias: Weather change
initial_state: True
hide_entity: False
trigger:
platform: state
entity_id: sensor.dark_sky_summary

action:
service: notify.notify
data_template:
title: “Weather changed”
message: >
The weather just changed to {{ trigger.to_state.state }}

I think I may have figured it out. I was testing the automation by manually triggering it within HA itself instead of waiting for the weather to change on it’s own. Overnight while I slept, I got a number of alerts of the variable changing. I’m guessing that when you manually trigger an event, there is no “trigger.to_state.trigger” for HA to read.

Here’s a better formatted version of my automation

automation 4:
  alias: Weather change
  initial_state: True
  hide_entity: False
  trigger:
    platform: state
    entity_id: sensor.dark_sky_precip
  
  action:
    service: notify.notify
    data_template:
      title: "Weather changed"
      message: >
        The weather just changed to {{ trigger.to_state.state }}