Check if power is negative

In an automation I want to trigger a boolean to know if my main counter is negative. I used this automation but it doesn’t work. Any help?
alias: Bepalen teller draait terug
description: ‘’

  • platform: numeric_state
    entity_id: sensor.power_total_2
    below: ‘0.0’
    hours: 0
    minutes: 0
    seconds: 10
    milliseconds: 0
    condition: []
  • service: input_boolean.toggle
    entity_id: input_boolean.teller_draait_terug
    mode: single

Please format your post correctly.

What is the state of sensor.power_total_2 now?

What happens if you use,

below: 0

Hi, the power_total_now = -2785.0
The use of below: 0 is the same.

The power has to go from above 0 to below 0 to trigger.

And please format your post correctly.

That can be the reason. Thanks a lot. Sorry that my post isn’t correctly. I must read the format conditions, It’s my first post.