[logic]
active = ph_button@no_energy

[ph_button@no_energy]
anim = off
tooltip = laba_x16_no_energy
on_press = ph_button@no_energy
on_info = {+yan_labx16_switcher_1_on} ph_idle@nil
on_info2 = {+lab_x16_general_voltage_used} ph_button@active

[ph_button@active]
on_info = {+yan_labx16_switcher_1_on} ph_idle@nil
anim = off
tooltip = tips_labx16switcher_press
on_press = ph_button@deactivate %=yan_gluk%

[ph_button@deactivate]
anim = idle
on_timer = 500 | ph_idle@nil %+yan_labx16_switcher_1_on =turn_on(lab_x16_lamp_number_908) =turn_on(lab_x16_lamp_number_912) =turn_on(lab_x16_lamp_number_911) =play_sound(lab_x16_swither_on)%

[ph_idle@nil]