Numeric trigger

Hi,
I have a question about numeri state trigger
Why my simple automation doesnt start? Where im wrong ?

I need to power off the shelly where I have attached the car charger, when the solar sensor tell me there is not production
I want charge the car only when I have the right solar production

  • alias: disable car charge when no solar power
    description: β€˜β€™
    trigger:

    • platform: numeric_state
      entity_id: sensor.solar_production_Watt #shelly em
      below: 1000

    condition:

    action:

    • service: switch.turn_off
      data:
      entity_id: switch.shelly_shsw_25_10521c07a3ff_2
2 Likes
1 Like