From 479fa18e40a08f786fe3066c71d612d9f99970af Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Tue, 14 Dec 2021 16:09:31 +0100 Subject: [PATCH] Rename table lights to office --- configuration/automations/computer-button.yaml | 10 +++++----- configuration/automations/living-room-button.yaml | 12 ++++++------ configuration/configuration.yaml | 1 + home-assistant.yml | 2 +- localhost.yml | 4 ++-- scripts/10.modes.yaml | 4 ++-- 6 files changed, 17 insertions(+), 16 deletions(-) diff --git a/configuration/automations/computer-button.yaml b/configuration/automations/computer-button.yaml index f31139c..17ac263 100644 --- a/configuration/automations/computer-button.yaml +++ b/configuration/automations/computer-button.yaml @@ -10,14 +10,14 @@ - choose: - conditions: - condition: state - entity_id: light.table_lamp + entity_id: light.office state: 'on' sequence: - service: light.turn_off - entity_id: light.table_lamp + entity_id: light.office - conditions: - condition: state - entity_id: light.table_lamp + entity_id: light.office state: 'off' sequence: - choose: @@ -27,7 +27,7 @@ state: 'on' sequence: - service: light.turn_on - entity_id: light.table_lamp + entity_id: light.office data: brightness_pct: 100 kelvin: 2000 @@ -37,7 +37,7 @@ state: 'off' sequence: - service: light.turn_on - entity_id: light.table_lamp + entity_id: light.office data: brightness_pct: 100 kelvin: 3200 diff --git a/configuration/automations/living-room-button.yaml b/configuration/automations/living-room-button.yaml index f348f65..59aaf22 100644 --- a/configuration/automations/living-room-button.yaml +++ b/configuration/automations/living-room-button.yaml @@ -13,14 +13,14 @@ - choose: - conditions: - condition: state - entity_id: light.table_lamp + entity_id: light.office state: 'on' sequence: - service: light.turn_off - entity_id: light.table_lamp + entity_id: light.office - conditions: - condition: state - entity_id: light.table_lamp + entity_id: light.office state: 'off' sequence: - choose: @@ -36,7 +36,7 @@ state: 'on' sequence: - service: light.turn_on - entity_id: light.table_lamp + entity_id: light.office data: brightness_pct: 100 kelvin: 2000 @@ -46,7 +46,7 @@ state: 'off' sequence: - service: light.turn_on - entity_id: light.table_lamp + entity_id: light.office data: brightness_pct: 100 kelvin: 3200 @@ -56,7 +56,7 @@ state: Night sequence: - service: light.turn_on - entity_id: light.table_lamp + entity_id: light.office data: brightness_pct: 5 kelvin: 2700 diff --git a/configuration/configuration.yaml b/configuration/configuration.yaml index 21bec76..44f9750 100644 --- a/configuration/configuration.yaml +++ b/configuration/configuration.yaml @@ -14,6 +14,7 @@ http: - 192.168.50.101 - 192.168.50.102 - 192.168.50.103 + - 192.168.50.104 ip_ban_enabled: false login_attempts_threshold: 5 image: diff --git a/home-assistant.yml b/home-assistant.yml index a12c18d..b179336 100644 --- a/home-assistant.yml +++ b/home-assistant.yml @@ -25,7 +25,7 @@ name: Couch Lights - entityId: light.desk_lightbar name: Desk Lightbar - - entityId: light.table_lamp + - entityId: light.office name: Table lamp - name: Copy rest of automations copy: diff --git a/localhost.yml b/localhost.yml index 4b38e66..74b6c84 100644 --- a/localhost.yml +++ b/localhost.yml @@ -17,8 +17,8 @@ name: Couch Lights - entityId: light.desk_lightbar name: Desk Lightbar - - entityId: light.table_lamp - name: Table lamp + - entityId: light.office + name: Office lamp - name: Concat scripts ansible.builtin.assemble: src: scripts diff --git a/scripts/10.modes.yaml b/scripts/10.modes.yaml index afd5e6d..ee43f0a 100644 --- a/scripts/10.modes.yaml +++ b/scripts/10.modes.yaml @@ -13,7 +13,7 @@ good_night: - light.desk_lightbar_ambilight - light.couch_lights - light.tv_lights - - light.table_lamp + - light.office - light.kitchen_lights - light.kitchen_sink_lighstrip - light.bathroom_lights @@ -92,7 +92,7 @@ leave_home: - light.desk_lightbar_ambilight - light.couch_lights - light.tv_lights - - light.table_lamp + - light.office - light.kitchen_lights - light.kitchen_sink_lighstrip - light.bathroom_lights