mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-09 10:14:41 +00:00
Add basic bedroom switch automations
This commit is contained in:
@@ -59,6 +59,8 @@ cards:
|
|||||||
- automation.lighting_living_room_toggle_ceiling_lights_on_desk_switch_single_click
|
- automation.lighting_living_room_toggle_ceiling_lights_on_desk_switch_single_click
|
||||||
- automation.lighting_living_room_toggle_ambient_lights_on_desk_switch_double_click
|
- automation.lighting_living_room_toggle_ambient_lights_on_desk_switch_double_click
|
||||||
- type: divider
|
- type: divider
|
||||||
|
- 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_lights_on_bedside_switch_single_click
|
||||||
- type: divider
|
- type: divider
|
||||||
- automation.lighting_kitchen_day_mode_motion_turn_lights_on
|
- automation.lighting_kitchen_day_mode_motion_turn_lights_on
|
||||||
@@ -97,6 +99,7 @@ cards:
|
|||||||
- automation.media_sonos_put_beam_in_day_mode
|
- automation.media_sonos_put_beam_in_day_mode
|
||||||
- type: divider
|
- type: divider
|
||||||
- automation.music_living_room_play_pause_on_desk_switch_hold
|
- automation.music_living_room_play_pause_on_desk_switch_hold
|
||||||
|
- automation.music_master_bedroom_play_pause_on_switch_hold
|
||||||
|
|
||||||
- type: divider
|
- type: divider
|
||||||
|
|
||||||
|
|||||||
@@ -69,3 +69,37 @@ automation:
|
|||||||
{% else %}
|
{% else %}
|
||||||
100
|
100
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
- alias: Lighting · Master bedroom · Toggle lights on switch single click
|
||||||
|
trigger:
|
||||||
|
platform: event
|
||||||
|
event_type: zha_event
|
||||||
|
event_data:
|
||||||
|
device_ieee: !secret master_bedroom_switch_ieee
|
||||||
|
command: single
|
||||||
|
action:
|
||||||
|
- service: light.toggle
|
||||||
|
data_template:
|
||||||
|
entity_id: light.master_bedroom_main
|
||||||
|
brightness_pct: >-
|
||||||
|
|
||||||
|
{% if is_state('input_select.house_mode', 'night') %}
|
||||||
|
40
|
||||||
|
{% else %}
|
||||||
|
100
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
- alias: Lighting · Master bedroom · Toggle ambient lights on switch double click
|
||||||
|
trigger:
|
||||||
|
platform: event
|
||||||
|
event_type: zha_event
|
||||||
|
event_data:
|
||||||
|
device_ieee: !secret master_bedroom_switch_ieee
|
||||||
|
command: double
|
||||||
|
action:
|
||||||
|
- service: light.toggle
|
||||||
|
data_template:
|
||||||
|
entity_id:
|
||||||
|
- light.bedside
|
||||||
|
- light.bed_led
|
||||||
|
brightness_pct: 100
|
||||||
|
|||||||
@@ -32,3 +32,14 @@ automation:
|
|||||||
action:
|
action:
|
||||||
- service: media_player.media_play_pause
|
- service: media_player.media_play_pause
|
||||||
entity_id: media_player.living_room
|
entity_id: media_player.living_room
|
||||||
|
|
||||||
|
- alias: Music · Master bedroom · Play pause on switch hold
|
||||||
|
trigger:
|
||||||
|
platform: event
|
||||||
|
event_type: zha_event
|
||||||
|
event_data:
|
||||||
|
device_ieee: !secret master_bedroom_switch_ieee
|
||||||
|
command: hold
|
||||||
|
action:
|
||||||
|
- service: media_player.media_play_pause
|
||||||
|
entity_id: media_player.master_bedroom
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ platinum_user: user
|
|||||||
platinum_password: pass
|
platinum_password: pass
|
||||||
|
|
||||||
master_bedroom_bedside_switch_ieee: 00:00:00:00:00:00:00:00
|
master_bedroom_bedside_switch_ieee: 00:00:00:00:00:00:00:00
|
||||||
|
master_bedroom_switch_ieee: 00:00:00:00:00:00:00:00
|
||||||
desk_switch_ieee: 00:00:00:00:00:00:00:00
|
desk_switch_ieee: 00:00:00:00:00:00:00:00
|
||||||
magic_cube_ieee: 00:00:00:00:00:00:00:00
|
magic_cube_ieee: 00:00:00:00:00:00:00:00
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user