From e1cf2b1117873487c6b04dd01880f22c989148e7 Mon Sep 17 00:00:00 2001 From: James Walker Date: Fri, 10 Feb 2023 23:00:48 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9A=20switch=20to=20uuids=20and=20serv?= =?UTF-8?q?ices=20for=20automations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +- automations/bedroom/purifier.yaml | 14 +++---- automations/main_floor/light_rack.yaml | 39 ++++++++++---------- automations/main_floor/porch_light.yaml | 46 +++++++++++------------ automations/office/air_conditioner.yaml | 49 +++++++++++++------------ 5 files changed, 77 insertions(+), 74 deletions(-) diff --git a/.gitignore b/.gitignore index fdd9490..13b689b 100644 --- a/.gitignore +++ b/.gitignore @@ -18,4 +18,5 @@ image .DS_Store *.pem -/custom_components/hacs \ No newline at end of file +/custom_components/hacs +/custom_components/dyson_local \ No newline at end of file diff --git a/automations/bedroom/purifier.yaml b/automations/bedroom/purifier.yaml index 38dd803..257ed10 100644 --- a/automations/bedroom/purifier.yaml +++ b/automations/bedroom/purifier.yaml @@ -1,6 +1,7 @@ -- id: "1676005859456" - alias: Bedroom TV Time - description: "" +- alias: Bedroom TV Time + description: "Put the purifier in night mode when the TV starts playing" + id: "331f421c-c0b6-41cf-98ce-2ab0126a335a" + mode: single trigger: - platform: state entity_id: @@ -12,11 +13,11 @@ data: {} target: entity_id: switch.purifier_humidify_cool_formaldehyde_night_mode - mode: single -- id: "1676006403295" - alias: Bedroom TV Time Over +- alias: Bedroom TV Time Over description: "" + id: "826af719-2a40-431f-8f02-4fa935369c3e" + mode: single trigger: - platform: state entity_id: @@ -28,4 +29,3 @@ data: {} target: entity_id: switch.purifier_humidify_cool_formaldehyde_night_mode - mode: single diff --git a/automations/main_floor/light_rack.yaml b/automations/main_floor/light_rack.yaml index 8ec6583..7a8b573 100644 --- a/automations/main_floor/light_rack.yaml +++ b/automations/main_floor/light_rack.yaml @@ -1,26 +1,27 @@ -- id: '1631582483969' - alias: Turn on light rack - description: '' +- alias: Turn on light rack + description: "" + id: "24dcac6e-5577-44a8-b3ea-9249a299c3f6" + mode: single trigger: - - platform: time - at: 08:00:00 + - platform: time + at: 08:00:00 condition: [] action: - - type: turn_on - device_id: bb22c5ed5d647c0713ace2e742f92bd1 - entity_id: switch.light_rack - domain: switch + - service: switch.turn_on + data: {} + target: + entity_id: switch.light_rack + +- alias: Turn off light rack + description: "" + id: "3939a056-c910-4b46-8437-06335b355350" mode: single -- id: '1631583563463' - alias: Turn off light rack - description: '' trigger: - - platform: time - at: '22:00:00' + - platform: time + at: "22:00:00" condition: [] action: - - type: turn_off - device_id: bb22c5ed5d647c0713ace2e742f92bd1 - entity_id: switch.light_rack - domain: switch - mode: single + - service: switch.turn_off + data: {} + target: + entity_id: switch.light_rack diff --git a/automations/main_floor/porch_light.yaml b/automations/main_floor/porch_light.yaml index 460f1fb..a15e693 100644 --- a/automations/main_floor/porch_light.yaml +++ b/automations/main_floor/porch_light.yaml @@ -1,27 +1,27 @@ +- alias: Turn on front porch light + description: "" + id: "9f78242d-f30f-4c30-bd37-65b4b62b95fe" + mode: single + trigger: + - platform: sun + event: sunset + condition: [] + action: + - service: switch.turn_on + data: {} + target: + entity_id: switch.front_porch -- id: '1634154676822' - alias: Turn on front porch light - description: '' +- alias: Turn off front porch light + description: "" + id: "6b9e714f-0e71-481d-8506-c1bf4a0c7c00" + mode: single trigger: - - platform: sun - event: sunset + - platform: time + at: "23:30:00" condition: [] action: - - type: turn_on - device_id: 749027ddc2ff3cc59e22c2557329ec0a - entity_id: switch.front_porch - domain: switch - mode: single -- id: '1639358610226' - alias: Turn off front porch light - description: '' - trigger: - - platform: time - at: '23:30:00' - condition: [] - action: - - type: turn_off - device_id: 749027ddc2ff3cc59e22c2557329ec0a - entity_id: switch.front_porch - domain: switch - mode: single + - service: switch.turn_off + data: {} + target: + entity_id: switch.front_porch diff --git a/automations/office/air_conditioner.yaml b/automations/office/air_conditioner.yaml index 373ffbd..394f1e6 100644 --- a/automations/office/air_conditioner.yaml +++ b/automations/office/air_conditioner.yaml @@ -1,28 +1,29 @@ -- id: '1625281735631' - alias: Keep office cool - description: '' - trigger: - - platform: numeric_state - entity_id: sensor.home_office_temperature - above: '24' - condition: [] - action: - - type: turn_on - device_id: 0739a7e7036ad9758825b93a524e1f00 - entity_id: switch.air_conditioner - domain: switch +- alias: Keep office cool + description: "" + id: "7b7450b6-0811-4c44-9581-0461adcf912e" mode: single -- id: '1625503795025' - alias: Turn off office AC - description: '' trigger: - - platform: numeric_state - entity_id: sensor.home_office_temperature - below: '22' + - platform: numeric_state + entity_id: sensor.home_office_temperature + above: "24" condition: [] action: - - type: turn_off - device_id: 0739a7e7036ad9758825b93a524e1f00 - entity_id: switch.air_conditioner - domain: switch - mode: single \ No newline at end of file + - service: switch.turn_on + data: {} + target: + entity_id: switch.air_conditioner + +- alias: Turn off office AC + description: "" + id: "380dc2cc-c43b-4c69-bc36-6923b956f8be" + mode: single + trigger: + - platform: numeric_state + entity_id: sensor.home_office_temperature + below: "22" + condition: [] + action: + - service: switch.turn_off + data: {} + target: + entity_id: switch.air_conditioner