Cloud coverage trigger

Hello frome a beginner. I would like to make an automation that is activated when the cloud cover is below a certain threshold, using openwheathermap.
But do not start…
My code

- id: ''
  alias: pool
  description: ''
  trigger:
  - platform: template
    value_template: '{{ states.sensor.openweathermap_cloud_coverage.state <= 25 }}'
  condition:
  - condition: time
    after: '11:30:00'
trigger:
  - platform: template
    value_template: "{{ states('sensor.openweathermap_cloud_coverage') | int(0) <= 25 }}"
1 Like

You don’t need a template.

  trigger:
  - platform: numeric_state
    entity_id: sensor.openweathermap_cloud_coverage
    below: 25.01