Event State Node Sending Output on reboot of HA

I currently have an automation to check if 2 doors in my house are open/closed and to send a notification to the companion app. Everytime I reboot HA they will send out the current status of the doors (open/closed) via a notification. I’m trying to only get a notification send if the state changes not the current state upon booting HA.

I have output on connect turned off for both devices.

Anything i’m missing?

When you reboot HA sensor will come up with state unavailable and then a few seconds later it will get the right state when the answer from the sensors arrive.
Your flow probably reacts to any new state, but you need to modify it so it reacts to only new states coming from specific previous states.