Make effects more seamless
This commit is contained in:
@ -41,6 +41,13 @@ script:
|
|||||||
- service: switch.turn_off
|
- service: switch.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: switch.adaptive_lighting_basement_studio
|
entity_id: switch.adaptive_lighting_basement_studio
|
||||||
|
- service: lifx.effect_move
|
||||||
|
target:
|
||||||
|
entity_id: light.basement_led_strip_1
|
||||||
|
data:
|
||||||
|
speed: 0.5
|
||||||
|
direction: right
|
||||||
|
power_on: false
|
||||||
- service: lifx.set_state
|
- service: lifx.set_state
|
||||||
target:
|
target:
|
||||||
entity_id: light.basement_led_strip_1
|
entity_id: light.basement_led_strip_1
|
||||||
@ -85,13 +92,7 @@ script:
|
|||||||
- 30
|
- 30
|
||||||
- 31
|
- 31
|
||||||
color_name: "{{ 'blue' if type == 'police' else 'white' }}"
|
color_name: "{{ 'blue' if type == 'police' else 'white' }}"
|
||||||
- service: lifx.effect_move
|
power: true
|
||||||
target:
|
|
||||||
entity_id: light.basement_led_strip_1
|
|
||||||
data:
|
|
||||||
speed: 0.5
|
|
||||||
direction: right
|
|
||||||
power_on: true
|
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
target:
|
target:
|
||||||
entity_id:
|
entity_id:
|
||||||
@ -108,6 +109,8 @@ script:
|
|||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: light.basement_studio_lights
|
entity_id: light.basement_studio_lights
|
||||||
|
- delay:
|
||||||
|
seconds: 3
|
||||||
- service: switch.turn_on
|
- service: switch.turn_on
|
||||||
target:
|
target:
|
||||||
entity_id: switch.adaptive_lighting_basement_studio
|
entity_id: switch.adaptive_lighting_basement_studio
|
||||||
@ -181,12 +184,17 @@ script:
|
|||||||
scene_id: living_room_alert_restore
|
scene_id: living_room_alert_restore
|
||||||
snapshot_entities:
|
snapshot_entities:
|
||||||
- light.living_room_led_strip
|
- light.living_room_led_strip
|
||||||
- light.living_room_color_1
|
- light.living_room_overhead
|
||||||
- light.living_room_color_2
|
|
||||||
- light.living_room_color_3
|
|
||||||
- service: switch.turn_off
|
- service: switch.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: switch.adaptive_lighting_living_room
|
entity_id: switch.adaptive_lighting_living_room
|
||||||
|
- service: lifx.effect_move
|
||||||
|
target:
|
||||||
|
entity_id: light.living_room_led_strip
|
||||||
|
data:
|
||||||
|
speed: 0.5
|
||||||
|
direction: right
|
||||||
|
power_on: false
|
||||||
- service: lifx.set_state
|
- service: lifx.set_state
|
||||||
target:
|
target:
|
||||||
entity_id: light.living_room_led_strip
|
entity_id: light.living_room_led_strip
|
||||||
@ -239,13 +247,7 @@ script:
|
|||||||
- 38
|
- 38
|
||||||
- 39
|
- 39
|
||||||
color_name: "{{ 'blue' if type == 'police' else 'white' }}"
|
color_name: "{{ 'blue' if type == 'police' else 'white' }}"
|
||||||
- service: lifx.effect_move
|
power: true
|
||||||
target:
|
|
||||||
entity_id: light.living_room_led_strip
|
|
||||||
data:
|
|
||||||
speed: 0.5
|
|
||||||
direction: right
|
|
||||||
power_on: true
|
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
target:
|
target:
|
||||||
entity_id:
|
entity_id:
|
||||||
@ -259,7 +261,11 @@ script:
|
|||||||
sequence:
|
sequence:
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: light.living_room_lights
|
entity_id:
|
||||||
|
- light.living_room_overhead
|
||||||
|
- light.living_room_led_strip
|
||||||
|
- delay:
|
||||||
|
seconds: 3
|
||||||
- service: switch.turn_on
|
- service: switch.turn_on
|
||||||
target:
|
target:
|
||||||
entity_id: switch.adaptive_lighting_living_room
|
entity_id: switch.adaptive_lighting_living_room
|
||||||
|
Reference in New Issue
Block a user