From 44ebb403e4ee41cea13e57aa69a93e74b91b9d43 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Tue, 6 Dec 2022 13:46:10 +0100 Subject: [PATCH] Made Xmas lightning automations, disabled normal ones. --- automations.yaml | 70 ++++++++++++++++++++++++++++++++++++++++++++---- scripts.yaml | 2 +- 2 files changed, 66 insertions(+), 6 deletions(-) diff --git a/automations.yaml b/automations.yaml index a97c997..3905ccf 100644 --- a/automations.yaml +++ b/automations.yaml @@ -73,11 +73,6 @@ - schlafzimmer - kinderzimmer data: {} - - service: media_player.turn_off - target: - area_id: - - wohnzimmer - data: {} - type: turn_off device_id: 6d1be741876624a70ab5b01b54c6fd6f entity_id: switch.kuche_musik @@ -102,6 +97,11 @@ media_content_id: media-source://tts - media_content_type: provider media_content_id: media-source://tts/picotts_remote?message=Gute+Nacht%21+Schlaf+gut. + - service: media_player.turn_off + target: + area_id: + - wohnzimmer + data: {} mode: single - id: '1623868115464' alias: 420! @@ -439,3 +439,63 @@ - media_content_type: provider media_content_id: media-source://tts/picotts_remote?message=Es+ist+%7B%7B+time.now%28%29+%7D%7D+Uhr. mode: single +- id: '1670088470265' + alias: Licht beim Heimkommen einschalten (XMas) + description: Nur während Dunkelphase + trigger: + - platform: state + entity_id: person.marcus_scholz + to: home + from: not_home + condition: + - condition: or + conditions: + - condition: sun + before: sunrise + before_offset: '+1' + - condition: sun + after_offset: '-1' + after: sunset + action: + - service: light.turn_on + target: + device_id: + - 32d15eec63fe68d5770813d47da53657 + - 53a27edf581fcf40f3bc8b253b1ee369 + - 1ee1168af484d17fe81b226ac1c5d2ae + - c64e7c3dcda7f1c23e456959f2c60f39 + data: {} + - device_id: c64e7c3dcda7f1c23e456959f2c60f39 + domain: select + entity_id: select.kuche_preset + type: select_option + option: X-Mas + mode: single +- id: '1670088606575' + alias: Licht bei Sonnenuntergang einschalten (XMas) + description: Nur wenn jemand zuhause ist + trigger: + - platform: sun + event: sunset + offset: '-1:00' + condition: + - condition: state + entity_id: person.marcus_scholz + state: home + action: + - service: light.turn_on + data: {} + target: + device_id: + - c64e7c3dcda7f1c23e456959f2c60f39 + - 1ee1168af484d17fe81b226ac1c5d2ae + - type: turn_on + device_id: c64e7c3dcda7f1c23e456959f2c60f39 + entity_id: light.kuche + domain: light + - device_id: c64e7c3dcda7f1c23e456959f2c60f39 + domain: select + entity_id: select.kuche_preset + type: select_option + option: X-Mas + mode: single diff --git a/scripts.yaml b/scripts.yaml index 1f1da37..47b46b9 100644 --- a/scripts.yaml +++ b/scripts.yaml @@ -27,7 +27,7 @@ moodlight_neutral: - service: light.turn_on data: brightness_pct: 20 - kelvin: 3400 + kelvin: 2900 transition: 2 effect: Solid target: