How can I get notify.mobile_app to show temperature from darksky?

Hi there!

I want to add the temperature to a push notification. I have the app push me a message every morning when my porch light shuts off at sunrise. I’d like it to also tell me what the temperature is outside in the same message. What do I need to include in the message under service data?

Thank you

You need some templating in your notification. Something like:

action:
  - service: notify.your_notifier
    data_template:
      message: >-
        It is currently {{ state_attr('weather.dark_sky','temperature') }} degrees outside

You are a legend! I have a lot of reading to do. The snippet you supplied worked perfectly. Thank you!

1 Like