[enh] Directly power on/off when knife switch change is detected
[fix] attribute and not global var