Removing the condition and adding the not_from option resulted in the trigger to be triggered when the addon was shutting down instead of booting. So I also added
not_to: unavailable
That seems to have fixed the issue. @jhol-byte thanks for the solutions. @censay can you implement this in the blueprint for others to use?