mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-15 17:12:59 +00:00
Properly turn on isparkle
This commit is contained in:
@@ -109,8 +109,8 @@
|
||||
- title: Christmas lights
|
||||
- type: entities
|
||||
entities:
|
||||
- rest_command.isparkle_on
|
||||
- rest_command.isparkle_off
|
||||
- script.isparkle_on
|
||||
- script.isparkle_off
|
||||
- input_select.isparkle_color
|
||||
- input_select.isparkle_fade
|
||||
- input_number.isparkle_brightness_1
|
||||
|
||||
@@ -955,7 +955,7 @@ cards:
|
||||
show_state: false
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: rest_command.isparkle_on
|
||||
service: script.isparkle_on
|
||||
- type: custom:button-card
|
||||
template: v3_button
|
||||
name: "Off"
|
||||
@@ -963,7 +963,7 @@ cards:
|
||||
show_state: false
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: rest_command.isparkle_off
|
||||
service: script.isparkle_off
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
|
||||
@@ -28,6 +28,24 @@ input_number:
|
||||
min: 0
|
||||
max: 10
|
||||
|
||||
script:
|
||||
isparkle_on:
|
||||
sequence:
|
||||
- service: rest_command.isparkle_on
|
||||
- delay: 00:00:01
|
||||
- service: rest_command.isparkle_on
|
||||
- delay: 00:00:01
|
||||
- service: rest_command.isparkle_on
|
||||
- delay: 00:00:01
|
||||
isparkle_off:
|
||||
sequence:
|
||||
- service: rest_command.isparkle_off
|
||||
- delay: 00:00:01
|
||||
- service: rest_command.isparkle_off
|
||||
- delay: 00:00:01
|
||||
- service: rest_command.isparkle_off
|
||||
- delay: 00:00:01
|
||||
|
||||
automation:
|
||||
- alias: Christmas lights change
|
||||
trigger:
|
||||
|
||||
@@ -44,11 +44,10 @@ script:
|
||||
- media_player.living_room_tv
|
||||
- switch.cadmium
|
||||
- group.all_radiators
|
||||
- switch.kitchen_outlet
|
||||
|
||||
- service: script.browsers_low
|
||||
|
||||
- service: cover.close_cover
|
||||
entity_id: cover.living_room
|
||||
- service: script.living_room_candle_off
|
||||
- service: rest_command.isparkle_off
|
||||
- service: script.isparkle_off
|
||||
|
||||
@@ -24,7 +24,8 @@ script:
|
||||
entity_id:
|
||||
- light.living_room_ambient
|
||||
|
||||
- service: rest_command.isparkle_on
|
||||
- service: script.isparkle_on
|
||||
entity_id: switch.kitchen_outlet
|
||||
- service: script.open_living_room_cover
|
||||
- service: script.shield_screensaver
|
||||
|
||||
@@ -36,8 +37,8 @@ script:
|
||||
- condition: state
|
||||
entity_id: input_boolean.guest_bedroom
|
||||
state: "off"
|
||||
- wait_template: "{{ is_state('input_boolean.sarah_talking', 'off') }}"
|
||||
timeout: 00:02:00
|
||||
# - wait_template: "{{ is_state('input_boolean.sarah_talking', 'off') }}"
|
||||
# timeout: 00:02:00
|
||||
# - delay: 00:00:00
|
||||
# - service: script.say
|
||||
# data:
|
||||
|
||||
Reference in New Issue
Block a user