From 52ddc294128ef05799b0bf4a183b6291a7a97a0d Mon Sep 17 00:00:00 2001 From: Philipp Hansen Date: Sun, 9 Jun 2024 17:11:17 +0200 Subject: [PATCH] fix: change tv socket in automations --- packages/door_sensors/door_sensors.yaml | 41 ++++++++++++++++++++++++- packages/harmony/harmony.yaml | 10 ++++-- 2 files changed, 47 insertions(+), 4 deletions(-) diff --git a/packages/door_sensors/door_sensors.yaml b/packages/door_sensors/door_sensors.yaml index d3ade0e..82362af 100755 --- a/packages/door_sensors/door_sensors.yaml +++ b/packages/door_sensors/door_sensors.yaml @@ -34,7 +34,7 @@ automation: message: ist noch offen! title: Freezer -# Badezimmer oder Gartentüre offen +# Wohnungstür check Badezimmer oder Gartentüre offen - alias: open_doors_check trigger: - device_id: 95d34c3939ded141bc463c7dbfdeabea @@ -66,6 +66,7 @@ automation: message: ist noch was offen. title: Alaaarm +# Wohnungstür mach alles aus - alias: turn_off_stuff trigger: - device_id: 95d34c3939ded141bc463c7dbfdeabea @@ -92,6 +93,44 @@ automation: - service: light.turn_off target: entity_id: light.bedroom_switch_lamp + - service: light.turn_off + target: + entity_id: light.nursery_bulb + - service: light.turn_off + target: + entity_id: light.office_switch_socket + + + - alias: turn_off_at_night + trigger: + - platform: time + at: "02:00:00" + action: + - service: light.turn_off + target: + entity_id: light.bedroom_lights + - service: light.turn_off + target: + entity_id: light.living_room_lights + - service: light.turn_off + target: + entity_id: light.office_bulb + - service: light.turn_off + target: + entity_id: light.guestroom_switch_lamp + - service: script.turn_on + target: + entity_id: script.denon_tv_turn_off + - service: light.turn_off + target: + entity_id: light.bedroom_switch_lamp + - service: light.turn_off + target: + entity_id: light.nursery_bulb + - service: light.turn_off + target: + entity_id: light.office_switch_socket + diff --git a/packages/harmony/harmony.yaml b/packages/harmony/harmony.yaml index 17bf63f..add952c 100755 --- a/packages/harmony/harmony.yaml +++ b/packages/harmony/harmony.yaml @@ -1,4 +1,5 @@ script: + # Turn on Denon denon_listen_music: sequence: - service: media_player.turn_on @@ -25,6 +26,7 @@ script: device: "75263914" command: Play + # Turn on Switch plus Music denon_play_switch: sequence: - service: script.turn_on @@ -47,6 +49,7 @@ script: device: "78200006" command: InputHdmi1 + # Turn on Steam Link denon_play_steam: sequence: - service: script.turn_on @@ -71,15 +74,16 @@ script: - service: media_player.volume_set data: volume_level: 0.45 - + + #Turn off TV and Denon denon_tv_turn_off: sequence: - service: media_player.turn_off target: device_id: 5ec213f0aedf10ff7fdff1d05ae6ead6 - - service: light.turn_off + - service: switch.turn_off target: - entity_id: light.livingroom_switch_tv + entity_id: switch.livingroom_tv_socket_switch \ No newline at end of file