From 756a33999df9255deb1c08a443a5621d94da0126 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 9 Apr 2023 21:17:59 +0400 Subject: Fixes, multi-room sounds, motion tracking in rooms --- custom/scripts/sleep-and-wake.yaml | 26 ++++++++++++++++++++++++-- custom/shell.yaml | 2 ++ 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 custom/shell.yaml (limited to 'custom') diff --git a/custom/scripts/sleep-and-wake.yaml b/custom/scripts/sleep-and-wake.yaml index a71518a..c8e180d 100644 --- a/custom/scripts/sleep-and-wake.yaml +++ b/custom/scripts/sleep-and-wake.yaml @@ -42,6 +42,9 @@ sleep_and_wake: - service: switch.turn_off target: entity_id: switch.living_lights_right + - service: input_boolean.turn_on + target: + entity_id: input_boolean.mode_office_sleep - conditions: - condition: template @@ -61,6 +64,12 @@ sleep_and_wake: - service: switch.turn_off target: entity_id: switch.living_lights_right + - service: input_boolean.turn_on + target: + entity_id: + - input_boolean.mode_office_sleep + - input_boolean.mode_office_hibernate + - conditions: - condition: template @@ -78,6 +87,12 @@ sleep_and_wake: - service: wake_on_lan.send_magic_packet data: mac: "e8:6a:64:7b:5d:0a" + - service: input_boolean.turn_off + target: + entity_id: + - input_boolean.mode_office_sleep + - input_boolean.mode_office_hibernate + - conditions: - condition: template @@ -108,7 +123,10 @@ sleep_and_wake: # entity_id: switch.hall_lights_right - service: input_boolean.turn_on target: - entity_id: input_boolean.mode_house_sleep + entity_id: + - input_boolean.mode_house_sleep + - input_boolean.mode_office_sleep + - input_boolean.mode_office_hibernate - conditions: - condition: template @@ -126,7 +144,11 @@ sleep_and_wake: entity_id: switch.hall_lights_right - service: input_boolean.turn_on target: - entity_id: input_boolean.mode_house_hibernate + entity_id: + - input_boolean.mode_office_sleep + - input_boolean.mode_office_hibernate + - input_boolean.mode_house_sleep + - input_boolean.mode_house_hibernate - conditions: - condition: template diff --git a/custom/shell.yaml b/custom/shell.yaml new file mode 100644 index 0000000..6c05d1b --- /dev/null +++ b/custom/shell.yaml @@ -0,0 +1,2 @@ +sound_combined: 'ssh -i /config/keys/id_rsa csa@localhost pacmd set-default-sink combined' +sound_living: 'ssh -i /config/keys/id_rsa csa@localhost pacmd set-default-sink 0' -- cgit v1.2.3