Skip to content
Snippets Groups Projects
Commit 9f11660e authored by jkerdreu's avatar jkerdreu
Browse files

Added YL light



git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2569 b32b6428-25c9-4566-ad07-03861ab6144f
parent 032b07f9
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,8 @@ LAMPS= UUID(['ccc44227-d4fc-46eb-8578-159e2c47da03','ccc44227-d4fc-46eb-8578-15
'ccc44227-d4fc-46eb-8578-159e2c47da06','ccc44227-d4fc-46eb-8578-159e2c47da07','ccc44227-d4fc-46eb-8578-159e2c47da08'])
SPOTS = UUID(['6265eb30-8c59-11e9-98b1-b827ebe99201',])
AMBI = UUID(['e19d5ea8-c838-11ea-82a8-9cebe88e1963'])
# Edisio labo
BTNS = UUID(['743034ca-c2f0-11e8-9485-a40074bcb601','743034ca-c2f0-11e8-9485-a40074bcb603','743034ca-c2f0-11e8-9485-a40074bcb605',
......@@ -77,8 +79,16 @@ def handle_msg(msg):
# btn du milieu / on éteint tout
if msg.source == BTNS[2]:
on_off_light(LAMPS)
#send(SHUTERS,'stop')
ALL = LAMPS + SPOTS + AMBI
r = search_for_light(ALL)
if r:
send(ALL,'turn_off')
else:
send(LAMPS,'turn_on')
# Eclairage d'ambiance
if msg.source == BTNS[3]:
on_off_light(SPOTS+AMBI)
if msg.source in AQUARA:
if on_off_light(LAMPS):
......@@ -97,14 +107,14 @@ def handle_msg(msg):
# "soirée TV"
send([SHUTERS[0]],'down')
send(LAMPS,'turn_off')
send(SPOTS,'turn_on')
send(SPOTS+AMBI,'turn_on')
send([SHUTERS[1]],'down')
if msg.source == SCEN[1]:
# "Début journée"
send([SHUTERS[0]],'up')
send([LAMPS[3],],'turn_on')
send(SPOTS,'turn_off')
send(SPOTS+AMBI,'turn_off')
send([SHUTERS[1]],'up')
if msg.source == SCEN[2]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment