Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106043

Trying to get a simple notification based on temperature

$
0
0

@kalto wrote:

Hi everyone!

I just started playing with HA and I am trying to get a notification sent to a mobile device when a temperature sensor get over a certain temperature. My automation is based mostly on this post:

Here is what it looks like in my automation.yaml file:

  alias: Notify over 11C
  description: ''
  trigger:
  - platform: template
    value_template: '"{{ states.sensor.netatmo_home_outdoor_temperature.state | float
      > 11 }}"'
  condition: []
  action:
  - data:
      message: Notification works!
      title: Temp over 11C
    service: notify.mobile_app_pnote10

I’ve executed the automation manually and I received the notification which means this part works. I also tested the template statement in the template editor to see if the statement was working using different values and it returns true or false as it should depending on the tested value vs the reported temperature of the sensor.

But, I am not getting any notification whenever the temperature gets over 11C. I guess I am missing something but so far I couldn’t find what in the forums.

Any idea?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 106043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>