That’s not using the alarm as a trigger, but a condition.
Either add a state condition listing all other possible states, or a template condition that is true if the alarm is not in night mode.
If you want further help, we need to see the automation you have (as correctly-formatted YAML) and the state and attributes for your alarm entity.