I need this exact same logic for my buzzer and light tower! Following this thread for a https://colorearm.com/.