Automation not working at trigger

I want to turn on the lights at 19:00 when my solar power is below 1000 watt.

For this I configured:

alias: Licht aan zonder zon
description: ""
trigger:
  - platform: time
    at: "19:00:00"
condition:
  - condition: numeric_state
    entity_id: sensor.envoy_122148065690_current_power_production
    value_template: "1000"
    below: sensor.envoy_122148065690_current_power_production
action:
  - type: turn_on
    device_id: 1266735eccdc65326106ed2449f9a8ce
    entity_id: light.woonkamer_hoek
    domain: light
  - type: turn_on
    device_id: e44fbdf0b7319c63a18f3eb8062c95aa
    entity_id: light.woonkamer_links_voor
    domain: light
  - type: turn_on
    device_id: 2609eea364dd9780767f980e520860f9
    entity_id: light.woonkamer_rechts_voor
    domain: light
mode: single```


However it doesn't work.
Did I miss anything?

Your value_template is effectively setting the value of sensor.envoy_122148065690_current_power_production to be 1000. I’m pretty sure that’s not what you wanted.

condition:
  - condition: numeric_state
    entity_id: sensor.envoy_122148065690_current_power_production
    below: 1000

With that correction, your automation will trigger at 19:00, check the solar power, and only if it’s below 1000W turn the lights on.

If the solar power is above 1000W then drops below 1000W after 19:00, nothing will happen. Is that what you want?

Or