From 250556adc258f9cca3a84da663301a26f3b960aa Mon Sep 17 00:00:00 2001 From: Martin Bauer Date: Tue, 28 Apr 2020 18:38:45 +0000 Subject: [PATCH] New scenes for HA standalone setup on raspi - KNX buttons - long click custom component --- .../knx_button_wohnzimmer_terrassentuer.yaml | 35 ++ automations/knx_buttons_eingangstuer.yaml | 66 +++ automations/knx_buttons_esszimmertuer.yaml | 156 +++++++ .../knx_buttons_wohnzimmergangtuer.yaml | 150 +++++++ config_creation/ir_automations.py | 3 +- config_creation/main.py | 12 +- config_creation/manual_config.yaml | 82 +++- custom_components/long_click/__init__.py | 1 - scenes/arbeitszimmer.yaml | 68 +++ scenes/garten.yaml | 27 ++ scenes/kueche_essbereich.yaml | 117 ++++++ scenes/schlafzimmer.yaml | 175 ++++++++ scenes/wohnbereich.yaml | 390 ++++++++++++++++++ scenes/wohnzimmer.yaml | 131 ++++++ 14 files changed, 1388 insertions(+), 25 deletions(-) create mode 100644 automations/knx_button_wohnzimmer_terrassentuer.yaml create mode 100644 automations/knx_buttons_eingangstuer.yaml create mode 100644 automations/knx_buttons_esszimmertuer.yaml create mode 100644 automations/knx_buttons_wohnzimmergangtuer.yaml create mode 100644 scenes/arbeitszimmer.yaml create mode 100644 scenes/garten.yaml create mode 100644 scenes/kueche_essbereich.yaml create mode 100644 scenes/schlafzimmer.yaml create mode 100644 scenes/wohnbereich.yaml create mode 100644 scenes/wohnzimmer.yaml diff --git a/automations/knx_button_wohnzimmer_terrassentuer.yaml b/automations/knx_button_wohnzimmer_terrassentuer.yaml new file mode 100644 index 0000000..b34056b --- /dev/null +++ b/automations/knx_button_wohnzimmer_terrassentuer.yaml @@ -0,0 +1,35 @@ +- alias: KNX Button WohnzimmerTerrassentür Teddy mitte links kurz + trigger: + - entity_id: switch.wohnzimmer_terrassentur_szene_2 + from: 'off' + to: 'on' + platform: state + action: + service: scene.turn_on + data: + entity_id: scene.wohnbereich_kuscheln + + +# === + +- alias: KNX Button WohnzimmerTerrassentür Garten mitte rechts kurz + trigger: + platform: event + event_type: short_click + event_data: + entity_id: switch.wohnzimmer_terrassentur_szene_3 + action: + service: scene.turn_on + data: + entity_id: scene.garten_savanna + +- alias: KNX Button WohnzimmerTerrassentür Garten mitte rechts lang + trigger: + platform: event + event_type: long_click + event_data: + entity_id: switch.wohnzimmer_terrassentur_szene_3 + action: + service: lights.turn_off + data: + entity_id: light.garten_lichter diff --git a/automations/knx_buttons_eingangstuer.yaml b/automations/knx_buttons_eingangstuer.yaml new file mode 100644 index 0000000..13e1e44 --- /dev/null +++ b/automations/knx_buttons_eingangstuer.yaml @@ -0,0 +1,66 @@ + +- alias: KNX Button Eingangstür mitte links kurz - alles an + trigger: + platform: event + event_type: short_click + event_data: + entity_id: switch.eingang_szene_2 + action: + - service: light.turn_on + data: + entity_id: + - light.gang_licht + - light.gang_einganglicht + + +- alias: KNX Button Eingangstür mitte links lang - alles an hell + trigger: + platform: event + event_type: long_click + event_data: + entity_id: switch.eingang_szene_2 + action: + - service: light.turn_on + data: + entity_id: + - light.gang_licht + - light.gang_einganglicht + - service: scene.turn_on + data: + entity_id: + - scene.wohnbereich_hell + +# ----------- + +- alias: KNX Button Eingangstür mitte rechts kurz - alles aus innen + trigger: + platform: event + event_type: short_click + event_data: + entity_id: switch.eingang_szene_3 + action: + service: light.turn_off + data: + entity_id: + - all_downstairs_but_outside + + +- alias: KNX Button Eingangstür mitte rechts lang - alles aus innen und aussen + trigger: + platform: event + event_type: long_click + event_data: + entity_id: switch.eingang_szene_3 + action: + service: light.turn_off + data: + entity_id: + - all_downstairs + + +# --------------------------------- Alarm Buttons ----------------------------------- + + +# Alarm +#switch.eingang_szene_4 # key +#switch.eingang_szene_5 # dog \ No newline at end of file diff --git a/automations/knx_buttons_esszimmertuer.yaml b/automations/knx_buttons_esszimmertuer.yaml new file mode 100644 index 0000000..d6e0f2f --- /dev/null +++ b/automations/knx_buttons_esszimmertuer.yaml @@ -0,0 +1,156 @@ +# --------------------------------------------------- +- alias: KNX Button Esszimmertür oben links kurz + trigger: + platform: event + event_type: short_click + event_data: + entity_id: switch.esszimmer_szene_0 + action: + service: cover_half.set_half + data: + entity_id: group.living_area + + +- alias: KNX Button Esszimmertür oben links lang + trigger: + platform: event + event_type: long_click + event_data: + entity_id: switch.esszimmer_szene_0 + action: + service: cover_half.set_half + data: + entity_id: + - cover.kuche_fenster_rollo + - cover.esszimmer_fenster_rollo + +# === + +- alias: KNX Button Esszimmertür oben rechts kurz + trigger: + platform: event + event_type: short_click + event_data: + entity_id: switch.esszimmer_szene_1 + action: + service: cover.open_cover + data: + entity_id: group.living_area + + +- alias: KNX Button Esszimmertür oben rechts lang + trigger: + platform: event + event_type: long_click + event_data: + entity_id: switch.esszimmer_szene_1 + action: + service: cover.open_cover + data: + entity_id: + - cover.kuche_fenster_rollo + - cover.esszimmer_fenster_rollo + + +# --------------------------------------------------- + +- alias: KNX Button Esszimmertür mitte links kurz + trigger: + platform: event + event_type: short_click + event_data: + entity_id: switch.esszimmer_szene_2 + action: + service: scene.turn_on + data: + entity_id: scene.wohnbereich_orange + +- alias: KNX Button Esszimmertür mitte links lang + trigger: + platform: event + event_type: long_click + event_data: + entity_id: switch.esszimmer_szene_2 + action: + service: scene.turn_on + data: + entity_id: scene.kuche_essbereich_orange + +# === + +- alias: KNX Button Esszimmertür mitte rechts kurz + trigger: + platform: event + event_type: short_click + event_data: + entity_id: switch.esszimmer_szene_3 + action: + service: scene.turn_on + data: + entity_id: scene.wohnbereich_hell + +- alias: KNX Button Esszimmertür mitte rechts lang + trigger: + platform: event + event_type: long_click + event_data: + entity_id: switch.esszimmer_szene_3 + action: + service: scene.turn_on + data: + entity_id: scene.kuche_essbereich_hell + + +# --------------------------------------------------- + +- alias: KNX Button Esszimmertür unten links ein + trigger: + - entity_id: switch.esszimmer_szene_4 + from: 'off' + to: 'on' + platform: state + action: + service: switch.turn_on + data: + entity_id: + - switch.herd_phase_1 + - switch.herd_phase_2 + - switch.herd_phase_3 + +- alias: KNX Button Esszimmertür unten links aus + trigger: + - entity_id: switch.esszimmer_szene_4 + from: 'on' + to: 'off' + platform: state + action: + service: switch.turn_off + data: + entity_id: + - switch.herd_phase_1 + - switch.herd_phase_2 + - switch.herd_phase_3 + +# === + +- alias: KNX Button Esszimmertür unten rechts kurz + trigger: + platform: event + event_type: short_click + event_data: + entity_id: switch.esszimmer_szene_5 + action: + service: light.turn_off + data: + entity_id: group.living_area + +- alias: KNX Button Esszimmertür unten rechts lang + trigger: + platform: event + event_type: long_click + event_data: + entity_id: switch.esszimmer_szene_5 + action: + service: light.turn_off + data: + entity_id: light.kuche_esszimmer_lichter diff --git a/automations/knx_buttons_wohnzimmergangtuer.yaml b/automations/knx_buttons_wohnzimmergangtuer.yaml new file mode 100644 index 0000000..2b80c8d --- /dev/null +++ b/automations/knx_buttons_wohnzimmergangtuer.yaml @@ -0,0 +1,150 @@ +# --------------------------------------------------- +- alias: KNX Button WohnzimmerGangTür oben links kurz + trigger: + platform: event + event_type: short_click + event_data: + entity_id: switch.wohnzimmer_szene_0 + action: + service: cover_half.set_half + data: + entity_id: group.living_area + + +- alias: KNX Button WohnzimmerGangTür oben links lang + trigger: + platform: event + event_type: long_click + event_data: + entity_id: switch.wohnzimmer_szene_0 + action: + service: cover_half.set_half + data: + entity_id: + - cover.wohnzimmer_fenster_rollo + - cover.wohnzimmer_terrassentur_rollo + +# === + +- alias: KNX Button WohnzimmerGangTür oben rechts kurz + trigger: + platform: event + event_type: short_click + event_data: + entity_id: switch.wohnzimmer_szene_1 + action: + service: cover.open_cover + data: + entity_id: group.living_area + + +- alias: KNX Button WohnzimmerGangTür oben rechts lang + trigger: + platform: event + event_type: long_click + event_data: + entity_id: switch.wohnzimmer_szene_1 + action: + service: cover.open_cover + data: + entity_id: + - cover.wohnzimmer_fenster_rollo + - cover.wohnzimmer_terrassentur_rollo + + +# --------------------------------------------------- + +- alias: KNX Button WohnzimmerGangTür mitte links kurz + trigger: + platform: event + event_type: short_click + event_data: + entity_id: switch.wohnzimmer_szene_2 + action: + service: scene.turn_on + data: + entity_id: scene.wohnbereich_orange + +- alias: KNX Button WohnzimmerGangTür mitte links lang + trigger: + platform: event + event_type: long_click + event_data: + entity_id: switch.wohnzimmer_szene_2 + action: + service: scene.turn_on + data: + entity_id: scene.wohnzimmer_orange + +# === + +- alias: KNX Button WohnzimmerGangTür mitte rechts kurz + trigger: + platform: event + event_type: short_click + event_data: + entity_id: switch.wohnzimmer_szene_3 + action: + service: scene.turn_on + data: + entity_id: scene.wohnbereich_hell + +- alias: KNX Button WohnzimmerGangTür mitte rechts lang + trigger: + platform: event + event_type: long_click + event_data: + entity_id: switch.wohnzimmer_szene_3 + action: + service: scene.turn_on + data: + entity_id: scene.wohnzimmer_hell + + +# --------------------------------------------------- + +- alias: KNX Button WohnzimmerGangTür unten links kurz + trigger: + platform: event + event_type: short_click + event_data: + entity_id: switch.wohnzimmer_szene_4 + action: + service: scene.turn_on + data: + entity_id: scene.wohnbereich_blau_grun + +- alias: KNX Button WohnzimmerGangTür unten links lang + trigger: + platform: event + event_type: long_click + event_data: + entity_id: switch.wohnzimmer_szene_4 + action: + service: scene.turn_on + data: + entity_id: scene.wohnzimmer_blau_grun + +# === + +- alias: KNX Button WohnzimmerGangTür unten rechts kurz + trigger: + platform: event + event_type: short_click + event_data: + entity_id: switch.wohnzimmer_szene_5 + action: + service: light.turn_off + data: + entity_id: group.living_area + +- alias: KNX Button WohnzimmerGangTür unten rechts lang + trigger: + platform: event + event_type: long_click + event_data: + entity_id: switch.wohnzimmer_szene_5 + action: + service: light.turn_off + data: + entity_id: light.kuche_wohnzimmer_lichter diff --git a/config_creation/ir_automations.py b/config_creation/ir_automations.py index b71550f..be8f96f 100644 --- a/config_creation/ir_automations.py +++ b/config_creation/ir_automations.py @@ -4,7 +4,6 @@ from ruamel.yaml import YAML yaml = YAML() - # -------------------------------------- put the config here ----------------------------------------------------------- def get_config(): @@ -263,7 +262,7 @@ def create_rules(folder): rules += default_light_controls(data['group'], data['ir_host']) rules += default_music_controls(data['media_player'], data['ir_host']) rules += default_shutter_controls(data['group'], data['ir_host']) - file_name = os.path.join(folder, name + '.yaml') + file_name = os.path.join(folder, "ir_" + name + '.yaml') with open(file_name, 'w') as f: f.write("# Dont' edit manually! this is generated!\n\n") yaml.dump(rules, f) diff --git a/config_creation/main.py b/config_creation/main.py index 86e5da2..a634f9c 100644 --- a/config_creation/main.py +++ b/config_creation/main.py @@ -70,7 +70,7 @@ def add_knx_devices(devices, groups): # Bells DeviceInfo("KlingelOben", "Klingel Oben", 'first_floor'), DeviceInfo("Klingel Innen", "Klingel Innentür", 'other'), - DeviceInfo("Klingel Aussen", "Klingen Außentür", 'other'), + DeviceInfo("Klingel Aussen", "Klingel Außentür", 'other'), ] scene_button_names = ['ObenLinks', 'ObenRechts', 'MitteLinks', 'MitteRechts', 'UntenLinks', 'UntenRechts'] scene_button_names = [(i, e) for i, e in enumerate(scene_button_names)] @@ -101,7 +101,7 @@ def add_knx_devices(devices, groups): DeviceInfo("HerdP2", "Herd Phase 2", 'living_area'), DeviceInfo("HerdP3", "Herd Phase 3", 'living_area'), # Rest - DeviceInfo("ArbeitszimmerSteckdose", "Arbeitszimmer Steckdose", 'office_martin'), + DeviceInfo("ArbeitszimmerSteckdose", "Arbeitszimmer Steckdose", 'office'), DeviceInfo("WohnzimmerSteckdose1", "Wohnzimmer Steckdose 1", 'living_area'), DeviceInfo("WohnzimmerSteckdose2", "Wohnzimmer Steckdose 2", 'living_area'), ] @@ -163,7 +163,7 @@ def add_knx_devices(devices, groups): def add_fhem_devices(devices, groups): fhem_yaml_path = os.path.join(script_path, 'fhem.yaml') - fhem_yaml = yaml.load(open(fhem_yaml_path)) + fhem_yaml = yaml.load(open(fhem_yaml_path, encoding="utf-8")) for device_type, device_list in fhem_yaml.items(): if device_type not in devices: devices[device_type] = [] @@ -258,14 +258,14 @@ def recorder_config(all_devices): def create_config(target_directory, development=False): groups_yaml_path = os.path.join(script_path, 'groups.yaml') manual_config_path = os.path.join(script_path, 'manual_config.yaml') - group_dict = yaml.load(open(groups_yaml_path)) - manual_config_dict = yaml.load(open(manual_config_path)) + group_dict = yaml.load(open(groups_yaml_path, encoding="utf-8")) + manual_config_dict = yaml.load(open(manual_config_path, encoding="utf-8")) all_devices = {} add_knx_devices(all_devices, group_dict) add_fhem_devices(all_devices, group_dict) - with open(os.path.join(target_directory, 'configuration.yaml'), 'w') as output: + with open(os.path.join(target_directory, 'configuration.yaml'), 'w', encoding="utf-8") as output: output.write("# Dont' edit manually! this is generated!\n\n") for key in ['sensor', 'switch', 'light', 'cover', 'binary_sensor']: if key in manual_config_dict: diff --git a/config_creation/manual_config.yaml b/config_creation/manual_config.yaml index b9a5c8b..36db0d7 100644 --- a/config_creation/manual_config.yaml +++ b/config_creation/manual_config.yaml @@ -1,12 +1,25 @@ # Configure a default setup of Home Assistant (frontend, api, etc) -default_config: +#default_config: +frontend: +mobile_app: +person: +sun: +system_health: +updater: + +#input_boolean: +#input_datetime: +#input_number: +#input_select: +#input_text: + # Uncomment this if you are using SSL/TLS, running in Docker container, etc. http: base_url: https://ha.bauer.tech -# Discover some devices automatically +# Di over some devices automatically #discovery: homeassistant: @@ -100,7 +113,7 @@ dimmer: cover_half: long_click: - duration: 1.0 + duration: 0.6 switches: - switch.esszimmer_szene_0 - switch.esszimmer_szene_1 @@ -108,6 +121,12 @@ long_click: - switch.esszimmer_szene_3 - switch.esszimmer_szene_4 - switch.esszimmer_szene_5 + - switch.wohnzimmer_szene_0 + - switch.wohnzimmer_szene_1 + - switch.wohnzimmer_szene_2 + - switch.wohnzimmer_szene_3 + - switch.wohnzimmer_szene_4 + - switch.wohnzimmer_szene_5 - switch.eingang_szene_2 - switch.eingang_szene_3 - switch.eingang_szene_4 @@ -137,29 +156,27 @@ tts: knx: rate_limit: 20 tunneling: - host: !secret knxd_host + host: 192.168.178.65 port: 3671 - local_ip: !secret local_ip - fhem: - host: server + host: localhost port: 7072 cul_device_name: CUL_HM zwave: - usb_path: /dev/zwave-stick + usb_path: /dev/serial/by-id/usb-0658_0200-if00 network_key: "0xE0, 0x64, 0x50, 0x55, 0x20, 0x63, 0xC7, 0x05, 0x62, 0xD3, 0xEA, 0x91, 0x87, 0xE0, 0x1E, 0x74" lirc_network: - - host: kitchenpi + - host: kitchenpi.fritz.box port: 2222 - - host: bedroompi + - host: bedroompi.fritz.box port: 2222 - - host: esszimmerradio + - host: esszimmerradio.fritz.box port: 8765 - - host: musikserverWohnzimmerOben + - host: musikserverWohnzimmerOben.fritz.box port: 8765 binary_sensor: @@ -167,14 +184,16 @@ binary_sensor: media_player: - platform: squeezebox_telnet - host: server + host: server.fritz.box + - platform: squeezebox_telnet + host: musikserverWohnzimmerOben.fritz.box - platform: denonavr - host: avreceiver + host: avreceiver.fritz.box vacuum: - platform: xiaomi_miio - host: rockrobo + host: rockrobo.fritz.box token: !secret vacuum_token @@ -221,4 +240,35 @@ sensor: group: !include groups.yaml automation: !include automations.yaml script: !include scripts.yaml -scene: !include scenes.yaml +scene: !include_dir_merge_list scenes + + +# Light groups + +light: + - platform: group + name: Küche & Esszimmer Lichter + entities: + - light.kuche_deckenlampe + - light.esszimmer_deckenlampe_west + - light.esszimmer_deckenlampe_mitte + - light.kuche_links + - light.kuche_rechts + - light.kuche_vorne + - platform: group + name: Wohnzimmer Lichter + entities: + - light.wohnzimmer_deckenlampe + - light.wohnzimmer_kugel + - light.wohnzimmer_stehlampe + - light.wohnzimmer_stehlampe_oben + - light.wohnzimmer_regal_rechts + - light.wohnzimmer_regal_links + - platform: group + name: Garten Lichter + entities: + - light.garten_spot_birke + - light.garten_spot_magnolie + - light.garten_spot_beet + - light.garten_stehleuchte + - light.aussen_terassenlicht diff --git a/custom_components/long_click/__init__.py b/custom_components/long_click/__init__.py index 8ac174e..bfbece9 100644 --- a/custom_components/long_click/__init__.py +++ b/custom_components/long_click/__init__.py @@ -45,7 +45,6 @@ def on_falling_edge(entity_id, from_state, to_state, hass, long_click_time): hass.bus.fire('short_click', {'entity_id': entity_id}) else: hass.bus.fire('long_click', {'entity_id': entity_id}) - print("-------------------- long on falling edge", entity_id, duration) del switch_on_times[entity_id] diff --git a/scenes/arbeitszimmer.yaml b/scenes/arbeitszimmer.yaml new file mode 100644 index 0000000..b895500 --- /dev/null +++ b/scenes/arbeitszimmer.yaml @@ -0,0 +1,68 @@ +- name: Arbeitszimmer Orange + id: arbeitszimmer_orange + entities: + light.arbeitszimmer_martin_deckenlampe: + state: false + light.arbeitszimmer_martin: + state: true + brightness: 229 + color_temp: 484 + light.arbeitszimmer_martin_oben: + state: true + brightness: 216 + xy_color: + - 0.569 + - 0.397 + light.arbeitszimmer_martin_unten: + state: true + brightness: 214 + xy_color: + - 0.2 + - 0.102 +- name: Arbeitszimmer Blau Grün + id: arbeitszimmer_blau_grun + entities: + light.arbeitszimmer_martin_deckenlampe: + state: false + light.arbeitszimmer_martin: + state: true + brightness: 173 + xy_color: + - 0.429 + - 0.483 + light.arbeitszimmer_martin_oben: + state: true + brightness: 186 + xy_color: + - 0.565 + - 0.398 + light.arbeitszimmer_martin_unten: + state: true + brightness: 247 + xy_color: + - 0.219 + - 0.137 +- name: Arbeitszimmer Hell + id: arbeitszimmer_hell + entities: + light.arbeitszimmer_martin_deckenlampe: + state: true + brightness: 252 + light.arbeitszimmer_martin: + state: true + brightness: 252 + xy_color: + - 0.429 + - 0.483 + light.arbeitszimmer_martin_oben: + state: true + brightness: 247 + xy_color: + - 0.44 + - 0.485 + light.arbeitszimmer_martin_unten: + state: true + brightness: 249 + xy_color: + - 0.219 + - 0.137 diff --git a/scenes/garten.yaml b/scenes/garten.yaml new file mode 100644 index 0000000..0fd99e7 --- /dev/null +++ b/scenes/garten.yaml @@ -0,0 +1,27 @@ +- name: Garten Savanna + id: garten_savanna + entities: + light.garten_stehleuchte: + state: true + brightness: 205 + xy_color: + - 0.465 + - 0.448 + light.garten_spot_beet: + state: true + brightness: 205 + xy_color: + - 0.532 + - 0.384 + light.garten_spot_magnolie: + state: true + brightness: 205 + xy_color: + - 0.465 + - 0.448 + light.garten_spot_birke: + state: true + brightness: 205 + xy_color: + - 0.586 + - 0.35 diff --git a/scenes/kueche_essbereich.yaml b/scenes/kueche_essbereich.yaml new file mode 100644 index 0000000..9e9ec2d --- /dev/null +++ b/scenes/kueche_essbereich.yaml @@ -0,0 +1,117 @@ +- name: Küche Essbereich Orange + id: kueche_essbereich_orange + entities: + light.kuche_deckenlampe: + state: true + brightness: 38 + light.esszimmer_deckenlampe_west: + state: true + brightness: 38 + light.esszimmer_deckenlampe_mitte: + state: true + brightness: 38 + light.esszimmer_schrankleuchte: + state: false + light.kuche_links: + state: true + brightness: 153 + xy_color: + - 0.54 + - 0.435 + light.kuche_rechts: + state: true + brightness: 242 + xy_color: + - 0.557 + - 0.396 + light.kuche_vorne: + state: true + color_temp: 477 + brightness: 114 +- name: Küche Essbereich Blau Grün + id: kueche_essbereich_blau_grun + entities: + light.kuche_deckenlampe: + state: true + brightness: 38 + light.esszimmer_deckenlampe_west: + state: true + brightness: 38 + light.esszimmer_deckenlampe_mitte: + state: true + brightness: 38 + light.esszimmer_schrankleuchte: + state: false + light.kuche_links: + state: true + brightness: 198 + xy_color: + - 0.156 + - 0.218 + light.kuche_rechts: + state: true + brightness: 252 + xy_color: + - 0.171 + - 0.353 + light.kuche_vorne: + state: true + brightness: 130 + xy_color: + - 0.158 + - 0.053 +- name: Küche Essbereich Grün + id: kueche_essbereich_grun + entities: + light.kuche_deckenlampe: + state: false + light.esszimmer_deckenlampe_west: + state: false + light.esszimmer_deckenlampe_mitte: + state: false + light.esszimmer_schrankleuchte: + state: false + light.kuche_links: + state: true + brightness: 198 + xy_color: + - 0.4038 + - 0.555 + light.kuche_rechts: + state: true + brightness: 252 + xy_color: + - 0.4771 + - 0.4957 + light.kuche_vorne: + state: true + brightness: 130 + xy_color: + - 0.1987 + - 0.5792 +- name: Küche Essbereich Hell + id: kueche_essbereich_hell + entities: + light.esszimmer_deckenlampe_west: + state: true + brightness: 255 + light.kuche_deckenlampe: + state: true + brightness: 255 + light.kuche_links: + state: true + brightness: 255 + xy_color: + - 0.537 + - 0.438 + light.kuche_rechts: + state: true + brightness: 255 + xy_color: + - 0.557 + - 0.403 + light.kuche_vorne: + state: true + brightness: 255 + color_temp: 492 + \ No newline at end of file diff --git a/scenes/schlafzimmer.yaml b/scenes/schlafzimmer.yaml new file mode 100644 index 0000000..8a5470c --- /dev/null +++ b/scenes/schlafzimmer.yaml @@ -0,0 +1,175 @@ +- id: schlafzimmer_bettlich_dunkel + name: Schlafzimmer Bettlicht dunkel + entities: + light.bett_martin: + brightness: 5 + effect: none + hs_color: + - 10.118 + - 100 + rgb_color: + - 255 + - 43 + - 0 + state: 'on' + xy_color: + - 0.689 + - 0.309 + light.bett_rebecca: + brightness: 5 + effect: none + hs_color: + - 10.118 + - 100 + rgb_color: + - 255 + - 43 + - 0 + state: 'on' + xy_color: + - 0.689 + - 0.309 + light.schlafzimmer_deckenlampe: + state: 'off' + light.schlafzimmer_fluter: + state: 'off' + light.schlafzimmer_schrank: + state: 'off' +- name: Schlafzimmer Einschlaflicht + id: schlafzimmer_einschlaflicht + entities: + light.schlafzimmer_deckenlampe: + state: false + light.schlafzimmer_schrank: + state: false + light.bett_martin: + state: true + brightness: 70 + xy_color: + - 0.502 + - 0.414 + light.bett_rebecca: + state: true + brightness: 70 + xy_color: + - 0.502 + - 0.414 + light.schlafzimmer_fluter: + state: false +- name: Schlafzimmer Orange + id: schlafzimmer_orange + entities: + light.schlafzimmer_deckenlampe: + state: false + light.schlafzimmer_schrank: + state: true + brightness: 81 + xy_color: + - 0.502 + - 0.414 + light.bett_martin: + state: true + brightness: 81 + xy_color: + - 0.502 + - 0.414 + light.bett_rebecca: + state: true + brightness: 81 + xy_color: + - 0.502 + - 0.414 + light.schlafzimmer_fluter: + state: true + brightness: 81 + xy_color: + - 0.502 + - 0.414 +- name: Schlafzimmer Rot + id: schlafzimmer_rot + entities: + light.schlafzimmer_deckenlampe: + state: false + light.schlafzimmer_schrank: + state: true + brightness: 146 + xy_color: + - 0.584 + - 0.354 + light.bett_martin: + state: true + brightness: 198 + xy_color: + - 0.584 + - 0.354 + light.bett_rebecca: + state: true + brightness: 198 + xy_color: + - 0.569 + - 0.397 + light.schlafzimmer_fluter: + state: true + brightness: 95 + xy_color: + - 0.581 + - 0.389 +- name: Schlafzimmer Blau + id: schlafzimmer_blau + entities: + light.schlafzimmer_deckenlampe: + state: false + light.schlafzimmer_schrank: + state: true + brightness: 58 + xy_color: + - 0.442 + - 0.416 + light.bett_martin: + state: true + brightness: 254 + xy_color: + - 0.191 + - 0.173 + light.bett_rebecca: + state: true + brightness: 83 + xy_color: + - 0.418 + - 0.419 + light.schlafzimmer_fluter: + state: true + brightness: 127 + xy_color: + - 0.223 + - 0.148 +- name: Schlafzimmer Ganz Hell + id: schlafzimmer_ganz_hell + entities: + light.schlafzimmer_deckenlampe: + state: true + brightness: 255 + light.schlafzimmer_schrank: + state: true + brightness: 254 + xy_color: + - 0.459 + - 0.408 + light.bett_martin: + state: true + brightness: 254 + xy_color: + - 0.459 + - 0.408 + light.bett_rebecca: + state: true + brightness: 254 + xy_color: + - 0.459 + - 0.408 + light.schlafzimmer_fluter: + state: true + brightness: 254 + xy_color: + - 0.459 + - 0.408 diff --git a/scenes/wohnbereich.yaml b/scenes/wohnbereich.yaml new file mode 100644 index 0000000..6432cef --- /dev/null +++ b/scenes/wohnbereich.yaml @@ -0,0 +1,390 @@ +- name: Wohnbereich Orange + id: wohnbereich_orange + entities: + light.kuche_deckenlampe: + state: true + brightness: 38 + light.wohnzimmer_deckenlampe: + state: true + brightness: 38 + light.esszimmer_deckenlampe_west: + state: true + brightness: 38 + light.esszimmer_deckenlampe_mitte: + state: true + brightness: 38 + light.esszimmer_schrankleuchte: + state: false + light.kuche_links: + state: true + brightness: 153 + xy_color: + - 0.54 + - 0.435 + light.kuche_rechts: + state: true + brightness: 242 + xy_color: + - 0.557 + - 0.396 + light.kuche_vorne: + state: true + color_temp: 477 + brightness: 114 + light.wohnzimmer_kugel: + state: true + brightness: 229 + color_temp: 492 + light.wohnzimmer_stehlampe: + state: true + brightness: 191 + color_temp: 428 + light.wohnzimmer_stehlampe_oben: + state: true + brightness: 127 + color_temp: 492 + light.wohnzimmer_regal_rechts: + state: true + brightness: 191 + xy_color: + - 0.618 + - 0.366 + light.wohnzimmer_regal_links: + state: true + brightness: 191 + xy_color: + - 0.53 + - 0.443 +- name: Wohnbereich Blau Grün + id: wohnberech_blau_grun + entities: + light.kuche_deckenlampe: + state: true + brightness: 38 + light.wohnzimmer_deckenlampe: + state: true + brightness: 51 + light.esszimmer_deckenlampe_west: + state: true + brightness: 38 + light.esszimmer_deckenlampe_mitte: + state: true + brightness: 38 + light.esszimmer_schrankleuchte: + state: false + light.kuche_links: + state: true + brightness: 198 + xy_color: + - 0.156 + - 0.218 + light.kuche_rechts: + state: true + brightness: 252 + xy_color: + - 0.171 + - 0.353 + light.kuche_vorne: + state: true + brightness: 130 + xy_color: + - 0.158 + - 0.053 + light.wohnzimmer_kugel: + state: true + brightness: 252 + xy_color: + - 0.46 + - 0.408 + light.wohnzimmer_stehlampe: + state: true + brightness: 153 + xy_color: + - 0.183 + - 0.062 + light.wohnzimmer_stehlampe_oben: + state: true + brightness: 150 + xy_color: + - 0.184 + - 0.068 + light.wohnzimmer_regal_rechts: + state: true + brightness: 252 + xy_color: + - 0.143 + - 0.113 + light.wohnzimmer_regal_links: + state: true + brightness: 252 + xy_color: + - 0.222 + - 0.636 +- name: Wohnbereich Grün + id: wohnbereich_grun + entities: + light.kuche_deckenlampe: + state: false + light.wohnzimmer_deckenlampe: + state: false + light.esszimmer_deckenlampe_west: + state: false + light.esszimmer_deckenlampe_mitte: + state: false + light.esszimmer_schrankleuchte: + state: false + light.kuche_links: + state: true + brightness: 198 + xy_color: + - 0.4038 + - 0.555 + light.kuche_rechts: + state: true + brightness: 252 + xy_color: + - 0.4771 + - 0.4957 + light.kuche_vorne: + state: true + brightness: 130 + xy_color: + - 0.1987 + - 0.5792 + light.wohnzimmer_kugel: + state: true + brightness: 252 + xy_color: + - 0.4084 + - 0.5168 + light.wohnzimmer_stehlampe: + state: true + brightness: 153 + xy_color: + - 0.4084 + - 0.5168 + light.wohnzimmer_stehlampe_oben: + state: true + brightness: 150 + xy_color: + - 0.4 + - 0.53 + light.wohnzimmer_regal_rechts: + state: true + brightness: 252 + xy_color: + - 0.1635 + - 0.3502 + light.wohnzimmer_regal_links: + state: true + brightness: 252 + xy_color: + - 0.2075 + - 0.6584 +- name: Wohnbereich Hell + id: wohnbereich_hell + entities: + light.esszimmer_deckenlampe_west: + state: true + brightness: 255 + light.wohnzimmer_deckenlampe: + state: true + brightness: 255 + light.kuche_deckenlampe: + state: true + brightness: 255 + light.wohnzimmer_regal_links: + state: true + brightness: 255 + xy_color: + - 0.527 + - 0.447 + light.kuche_links: + state: true + brightness: 255 + xy_color: + - 0.537 + - 0.438 + light.kuche_rechts: + state: true + brightness: 255 + xy_color: + - 0.557 + - 0.403 + light.wohnzimmer_regal_rechts: + state: true + brightness: 255 + xy_color: + - 0.616 + - 0.371 + light.wohnzimmer_stehlampe_oben: + state: true + brightness: 255 + color_temp: 492 + light.wohnzimmer_stehlampe: + state: true + brightness: 255 + color_temp: 492 + light.wohnzimmer_kugel: + state: true + brightness: 255 + color_temp: 492 + light.kuche_vorne: + state: true + brightness: 255 + color_temp: 492 + +- name: Wohnbereich Meditation + id: wohnbereich_meditation + entities: + light.kuche_deckenlampe: + state: false + light.wohnzimmer_deckenlampe: + state: false + light.esszimmer_deckenlampe_west: + state: false + light.esszimmer_deckenlampe_mitte: + state: false + light.esszimmer_schrankleuchte: + state: false + light.kuche_links: + state: true + brightness: 255 + xy_color: + - 0.5428 + - 0.3887 + light.kuche_rechts: + state: true + brightness: 255 + xy_color: + - 0.2927 + - 0.2242 + light.kuche_vorne: + state: true + brightness: 255 + xy_color: + - 0.6 + - 0.377 + light.wohnzimmer_kugel: + state: true + brightness: 255 + xy_color: + - 0.3581 + - 0.287 + light.wohnzimmer_stehlampe: + state: true + brightness: 255 + xy_color: + - 0.3581 + - 0.287 + light.wohnzimmer_stehlampe_oben: + state: true + brightness: 255 + xy_color: + - 0.5993 + - 0.3765 + light.wohnzimmer_regal_rechts: + state: true + brightness: 255 + xy_color: + - 0.2925 + - 0.2231 + light.wohnzimmer_regal_links: + state: true + brightness: 255 + xy_color: + - 0.2075 + - 0.6584 + cover.esszimmer_fenster_rollo: + state: open + current_position: 100 + cover.kuche_fenster_rollo: + state: open + current_position: 100 + cover.wohnzimmer_fenster_rollo: + state: open + current_position: 100 + cover.wohnzimmer_terrassentur_rollo: + state: open + current_position: 100 +- name: Wohnbereich Kuscheln + id: wohnbereich_kuscheln + entities: + light.kuche_deckenlampe: + state: false + light.wohnzimmer_deckenlampe: + state: false + light.esszimmer_deckenlampe_west: + state: false + light.esszimmer_deckenlampe_mitte: + state: false + light.esszimmer_schrankleuchte: + state: false + light.kuche_links: + state: true + brightness: 190 + xy_color: + - 0.5609 + - 0.4111 + light.kuche_rechts: + state: true + brightness: 190 + xy_color: + - 0.5609 + - 0.4111 + light.kuche_vorne: + state: true + brightness: 190 + xy_color: + - 0.561 + - 0.4042 + light.wohnzimmer_kugel: + state: true + brightness: 190 + xy_color: + - 0.5609 + - 0.4042 + light.wohnzimmer_stehlampe: + state: true + brightness: 190 + xy_color: + - 0.5609 + - 0.4042 + light.wohnzimmer_stehlampe_oben: + state: true + brightness: 190 + xy_color: + - 0.5609 + - 0.4042 + light.wohnzimmer_regal_rechts: + state: true + brightness: 190 + xy_color: + - 0.5609 + - 0.4111 + light.wohnzimmer_regal_links: + state: true + brightness: 190 + xy_color: + - 0.5609 + - 0.4111 + light.gang_bogen: + state: true + brightness: 255 + xy_color: + - 0.6313 + - 0.361 + light.gang_licht: + state: false + cover.esszimmer_fenster_rollo: + state: closed + current_position: 0 + cover.kuche_fenster_rollo: + state: closed + current_position: 0 + cover.wohnzimmer_fenster_rollo: + state: closed + current_position: 0 + cover.wohnzimmer_terrassentur_rollo: + state: closed + current_position: 0 diff --git a/scenes/wohnzimmer.yaml b/scenes/wohnzimmer.yaml new file mode 100644 index 0000000..14aee1f --- /dev/null +++ b/scenes/wohnzimmer.yaml @@ -0,0 +1,131 @@ +- name: Wohnzimmer Orange + id: wohnzimmer_orange + entities: + light.wohnzimmer_deckenlampe: + state: true + brightness: 38 + light.wohnzimmer_kugel: + state: true + brightness: 229 + color_temp: 492 + light.wohnzimmer_stehlampe: + state: true + brightness: 191 + color_temp: 428 + light.wohnzimmer_stehlampe_oben: + state: true + brightness: 127 + color_temp: 492 + light.wohnzimmer_regal_rechts: + state: true + brightness: 191 + xy_color: + - 0.618 + - 0.366 + light.wohnzimmer_regal_links: + state: true + brightness: 191 + xy_color: + - 0.53 + - 0.443 +- name: Wohnzimmer Blau Grün + id: wohnzimmer_blau_grun + entities: + light.wohnzimmer_deckenlampe: + state: true + brightness: 51 + light.wohnzimmer_kugel: + state: true + brightness: 252 + xy_color: + - 0.46 + - 0.408 + light.wohnzimmer_stehlampe: + state: true + brightness: 153 + xy_color: + - 0.183 + - 0.062 + light.wohnzimmer_stehlampe_oben: + state: true + brightness: 150 + xy_color: + - 0.184 + - 0.068 + light.wohnzimmer_regal_rechts: + state: true + brightness: 252 + xy_color: + - 0.143 + - 0.113 + light.wohnzimmer_regal_links: + state: true + brightness: 252 + xy_color: + - 0.222 + - 0.636 +- name: Wohnzimmer Grün + id: wohnzimmer_grun + entities: + light.wohnzimmer_deckenlampe: + state: false + light.wohnzimmer_kugel: + state: true + brightness: 252 + xy_color: + - 0.4084 + - 0.5168 + light.wohnzimmer_stehlampe: + state: true + brightness: 153 + xy_color: + - 0.4084 + - 0.5168 + light.wohnzimmer_stehlampe_oben: + state: true + brightness: 150 + xy_color: + - 0.4 + - 0.53 + light.wohnzimmer_regal_rechts: + state: true + brightness: 252 + xy_color: + - 0.1635 + - 0.3502 + light.wohnzimmer_regal_links: + state: true + brightness: 252 + xy_color: + - 0.2075 + - 0.6584 +- name: Wohnzimmer Hell + id: wohnzimmer_hell + entities: + light.wohnzimmer_deckenlampe: + state: true + brightness: 255 + light.wohnzimmer_regal_links: + state: true + brightness: 255 + xy_color: + - 0.527 + - 0.447 + light.wohnzimmer_regal_rechts: + state: true + brightness: 255 + xy_color: + - 0.616 + - 0.371 + light.wohnzimmer_stehlampe_oben: + state: true + brightness: 255 + color_temp: 492 + light.wohnzimmer_stehlampe: + state: true + brightness: 255 + color_temp: 492 + light.wohnzimmer_kugel: + state: true + brightness: 255 + color_temp: 492