I am trying to get a message to notify me when the probability of rain exceeds a certain threshold. The sensor I use is: sensor.dark_sky_precip_probability.
the automation I wrote is:
- id: rain_forecast
alias: Rain Forecast
trigger:
- platform: numeric_state
entity_id: sensor.dark_sky_precip_probability
above: 10
action:
- data:
message: It will probably rain at home
service: notify.notifier_telegram
mode: single
Your automation looks pretty straightforward. Do you have anything in the logs? Have you manually triggered to make sure the action is working? What do you get when pasting the following in the Template section of the Developer Tools?
I created a similar automation and the documentation mentions this behavior. The numeric_state triggers only when crossing the defined threshold. The sensor would need to go below 10 and then above 10 to trigger the automation. You might want to consider a different trigger. For example, a time pattern trigger with a numeric state condition.