diff --git a/scripts/btn_relay_labo.py b/scripts/btn_relay_labo.py index b40b2c1411653c29910fbc0d9e42d36a9fca19e9..99a51279b393796d0770ca6552a057530e61f23c 100644 --- a/scripts/btn_relay_labo.py +++ b/scripts/btn_relay_labo.py @@ -58,10 +58,10 @@ def search_for_light(lamps): def on_off_light(lamps): if search_for_light(lamps): - send(lamps,'off') + send(lamps,'turn_off') return False else: - send(lamps,'on') + send(lamps,'turn_on') return True def handle_msg(msg): @@ -96,15 +96,15 @@ def handle_msg(msg): if msg.source == SCEN[0]: # "soirée TV" send([SHUTERS[0]],'down') - send(LAMPS,'off') - send(SPOTS,'on') + send(LAMPS,'turn_off') + send(SPOTS,'turn_on') send([SHUTERS[1]],'down') if msg.source == SCEN[1]: # "Début journée" send([SHUTERS[0]],'up') - send([LAMPS[3],],'on') - send(SPOTS,'off') + send([LAMPS[3],],'turn_on') + send(SPOTS,'turn_off') send([SHUTERS[1]],'up') if msg.source == SCEN[2]: