🚚 switch to uuids and services for automations
This commit is contained in:
		
							
								
								
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -18,4 +18,5 @@ image
 | 
			
		||||
.DS_Store
 | 
			
		||||
*.pem
 | 
			
		||||
 | 
			
		||||
/custom_components/hacs
 | 
			
		||||
/custom_components/hacs
 | 
			
		||||
/custom_components/dyson_local
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
    - 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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user