Toggle switch when battery level = 100%

I want to toggle a switch to prevent that the battery of my tablet continiously is charged.
So I use an “event. state” node to check the value of the battery level.
I think I don’t use the correct syntax, tried several notations : string and numeric but nothing works.
Hope you can tell me what the correct syntax is.

State type should be numeric and value 100 without " ?

Tried that too, but did not help.

Have you put a Debug node after the event.state node to see what message it is actually outputting?

Change State Type back to string and set the value to 100

Sorry for my late response, short holiday.
Works now, I did not realize I had to wait for a **CHANGE ** of state