void user_init() { } void user_loop() { } void virtual_interrupt_user_callback(int pin, int state) { //Automation: Light Switch } void timer_tick_callback() { //Automation: Night Light }