Turn off input Boolean when no lightning (wwlln)

I have set up a wwlln map. The map is part of a conditional card and is turned on and off with an input Boolean

I have set an automation to turn on the input Boolean when lightning in my area is triggered.

Is there a way to turn off the input Boolean when there are no more active lightning entities.