|
@@ -27,17 +27,17 @@ def state_goto_all_on():
|
|
|
task.unique('state_goto_py')
|
|
|
cs = getCurrentState()
|
|
|
log.info(f"********* ALL ON *********** State: " + str(cs) )
|
|
|
- light.turn_on(entity_id='light.tradfri_bulb')
|
|
|
- switch.turn_on(entity_id='switch.matsal')
|
|
|
+ light.turn_on(entity_id='light.tradfri_bulb') # Stora flyglampan
|
|
|
+ #switch.turn_on(entity_id='switch.matsal')
|
|
|
for x in range(2):
|
|
|
switch.turn_on(entity_id='switch.group_button_all')
|
|
|
task.sleep(0.5)
|
|
|
- light.turn_on(entity_id='light.liv_room_table_lamp',brightness='1')
|
|
|
- task.sleep(0.5)
|
|
|
+ #light.turn_on(entity_id='light.liv_room_table_lamp',brightness='1') # Temp disable when high energy prices
|
|
|
+ #task.sleep(0.5)
|
|
|
light.turn_on(entity_id='light.liv_room_corner_lamp',brightness='1')
|
|
|
task.sleep(0.5)
|
|
|
|
|
|
- pyscript.handle_bedroom_light()
|
|
|
+ #pyscript.handle_bedroom_light() # Temp disable when high energy prices
|
|
|
|
|
|
|
|
|
@service
|
|
@@ -113,13 +113,13 @@ def state_goto_all_off():
|
|
|
cs = getCurrentState()
|
|
|
log.info(f"********* ALL OFF *********** State: " + str(cs) )
|
|
|
light.turn_off(entity_id='light.tradfri_bulb')
|
|
|
- switch.turn_off(entity_id='switch.matsal')
|
|
|
- switch.turn_off(entity_id='switch.tradfri_outlet') # Sovrum OFF
|
|
|
+ #switch.turn_off(entity_id='switch.matsal') # Temp disable when high energy prices
|
|
|
+ #switch.turn_off(entity_id='switch.tradfri_outlet') # Sovrum OFF # Temp disable when high energy prices
|
|
|
for x in range(2):
|
|
|
switch.turn_off(entity_id='switch.group_button_all')
|
|
|
task.sleep(0.5)
|
|
|
- light.turn_off(entity_id='light.liv_room_table_lamp')
|
|
|
- task.sleep(0.5)
|
|
|
+ #light.turn_off(entity_id='light.liv_room_table_lamp') # Temp disable when high energy prices
|
|
|
+ #task.sleep(0.5)
|
|
|
light.turn_off(entity_id='light.liv_room_corner_lamp')
|
|
|
task.sleep(0.5)
|
|
|
input_boolean.movie_mode = 'off'
|