Keep gate status green even if it missed a check-in

I don’t want the status of the pin to change to red unless the gate is open, but it shows red with the gate closed when it misses a check-in due to power conservation. How can I keep it green?

Hi @mark5534 you may be able to do that using a script on Analysis. How are doing setting the status of the Pin today?