Automation with darksky not work

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
    - platform: numeric_state
      entity_id: sensor.dark_sky_precip_probability    
      above: 10
  - data:
      message: It will probably rain at home
    service: notify.notifier_telegram
  mode: single

Any idea? Thanks for any help

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?

{{ states('sensor.dark_sky_precip_probability') }}

Hi walrus_park. Thanks for the reply. If I manually launch the automation it works.
the result I get in the models is:

There is no error in the core log related to this automation. I have other automations that work fine.

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.

Hi walrus_parka.
Many thanks for the tip. I will try