🚚 switch to uuids and services for automations

This commit is contained in:
James Walker 2023-02-10 23:00:48 -05:00
parent 2d17695583
commit e1cf2b1117
Signed by: walkah
GPG Key ID: 3C127179D6086E93
5 changed files with 77 additions and 74 deletions

3
.gitignore vendored
View File

@ -18,4 +18,5 @@ image
.DS_Store .DS_Store
*.pem *.pem
/custom_components/hacs /custom_components/hacs
/custom_components/dyson_local

View File

@ -1,6 +1,7 @@
- id: "1676005859456" - alias: Bedroom TV Time
alias: Bedroom TV Time description: "Put the purifier in night mode when the TV starts playing"
description: "" id: "331f421c-c0b6-41cf-98ce-2ab0126a335a"
mode: single
trigger: trigger:
- platform: state - platform: state
entity_id: entity_id:
@ -12,11 +13,11 @@
data: {} data: {}
target: target:
entity_id: switch.purifier_humidify_cool_formaldehyde_night_mode entity_id: switch.purifier_humidify_cool_formaldehyde_night_mode
mode: single
- id: "1676006403295" - alias: Bedroom TV Time Over
alias: Bedroom TV Time Over
description: "" description: ""
id: "826af719-2a40-431f-8f02-4fa935369c3e"
mode: single
trigger: trigger:
- platform: state - platform: state
entity_id: entity_id:
@ -28,4 +29,3 @@
data: {} data: {}
target: target:
entity_id: switch.purifier_humidify_cool_formaldehyde_night_mode entity_id: switch.purifier_humidify_cool_formaldehyde_night_mode
mode: single

View File

@ -1,26 +1,27 @@
- id: '1631582483969' - alias: Turn on light rack
alias: Turn on light rack description: ""
description: '' id: "24dcac6e-5577-44a8-b3ea-9249a299c3f6"
mode: single
trigger: trigger:
- platform: time - platform: time
at: 08:00:00 at: 08:00:00
condition: [] condition: []
action: action:
- type: turn_on - service: switch.turn_on
device_id: bb22c5ed5d647c0713ace2e742f92bd1 data: {}
entity_id: switch.light_rack target:
domain: switch entity_id: switch.light_rack
- alias: Turn off light rack
description: ""
id: "3939a056-c910-4b46-8437-06335b355350"
mode: single mode: single
- id: '1631583563463'
alias: Turn off light rack
description: ''
trigger: trigger:
- platform: time - platform: time
at: '22:00:00' at: "22:00:00"
condition: [] condition: []
action: action:
- type: turn_off - service: switch.turn_off
device_id: bb22c5ed5d647c0713ace2e742f92bd1 data: {}
entity_id: switch.light_rack target:
domain: switch entity_id: switch.light_rack
mode: single

View File

@ -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 off front porch light
alias: Turn on front porch light description: ""
description: '' id: "6b9e714f-0e71-481d-8506-c1bf4a0c7c00"
mode: single
trigger: trigger:
- platform: sun - platform: time
event: sunset at: "23:30:00"
condition: [] condition: []
action: action:
- type: turn_on - service: switch.turn_off
device_id: 749027ddc2ff3cc59e22c2557329ec0a data: {}
entity_id: switch.front_porch target:
domain: switch entity_id: switch.front_porch
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

View File

@ -1,28 +1,29 @@
- id: '1625281735631' - alias: Keep office cool
alias: Keep office cool description: ""
description: '' id: "7b7450b6-0811-4c44-9581-0461adcf912e"
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
mode: single mode: single
- id: '1625503795025'
alias: Turn off office AC
description: ''
trigger: trigger:
- platform: numeric_state - platform: numeric_state
entity_id: sensor.home_office_temperature entity_id: sensor.home_office_temperature
below: '22' above: "24"
condition: [] condition: []
action: action:
- type: turn_off - service: switch.turn_on
device_id: 0739a7e7036ad9758825b93a524e1f00 data: {}
entity_id: switch.air_conditioner target:
domain: switch entity_id: switch.air_conditioner
mode: single
- 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