mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-06 18:08:45 +00:00
Move bedside switch automations
This commit is contained in:
@@ -62,6 +62,7 @@ cards:
|
||||
- automation.lighting_master_bedroom_toggle_lights_on_switch_single_click
|
||||
- automation.lighting_master_bedroom_toggle_ambient_lights_on_switch_double_click
|
||||
- automation.lighting_master_bedroom_toggle_lights_on_bedside_switch_single_click
|
||||
- automation.lighting_master_bedroom_toggle_ambient_lights_on_bedside_switch_double_click
|
||||
- type: divider
|
||||
- automation.lighting_kitchen_day_mode_motion_turn_lights_on
|
||||
- automation.lighting_kitchen_day_mode_motion_turn_lights_off
|
||||
@@ -128,7 +129,7 @@ cards:
|
||||
- automation.house_mode_set_to_day
|
||||
- automation.house_mode_set_to_bed
|
||||
- automation.house_mode_set_to_night
|
||||
- automation.house_mode_toggle_on_bedside_switch_double_click
|
||||
- automation.house_mode_toggle_on_bedside_switch_hold
|
||||
|
||||
- type: divider
|
||||
|
||||
|
||||
@@ -25,3 +25,29 @@ automation:
|
||||
{% else %}
|
||||
100
|
||||
{% endif %}
|
||||
|
||||
- alias: Lighting · Master bedroom · Toggle ambient lights on bedside switch double click
|
||||
trigger:
|
||||
platform: event
|
||||
event_type: zha_event
|
||||
event_data:
|
||||
device_ieee: !secret master_bedroom_bedside_switch_ieee
|
||||
command: double
|
||||
action:
|
||||
- service: light.toggle
|
||||
data_template:
|
||||
entity_id:
|
||||
- light.bedside
|
||||
- light.bed_led
|
||||
brightness_pct: 100
|
||||
|
||||
- alias: House mode · Toggle on bedside switch hold
|
||||
trigger:
|
||||
- platform: event
|
||||
event_type: zha_event
|
||||
event_data:
|
||||
device_ieee: !secret master_bedroom_bedside_switch_ieee
|
||||
command: hold
|
||||
action:
|
||||
- service: input_select.select_next
|
||||
entity_id: input_select.house_mode
|
||||
|
||||
@@ -49,14 +49,3 @@ automation:
|
||||
to: "night"
|
||||
action:
|
||||
- service: script.routine_good_night
|
||||
|
||||
- alias: House mode · Toggle on bedside switch double click
|
||||
trigger:
|
||||
- platform: event
|
||||
event_type: zha_event
|
||||
event_data:
|
||||
device_ieee: !secret master_bedroom_bedside_switch_ieee
|
||||
command: double
|
||||
action:
|
||||
- service: input_select.select_next
|
||||
entity_id: input_select.house_mode
|
||||
|
||||
Reference in New Issue
Block a user