Merge hallway automation file
This commit is contained in:
parent
59055cf83c
commit
6d2f876f9c
4 changed files with 57 additions and 55 deletions
|
@ -1,23 +0,0 @@
|
|||
- id: hallway-button
|
||||
alias: '[Hallway] Button single press'
|
||||
mode: single
|
||||
trigger:
|
||||
- device_id: cc4f08a2e2f0e5aebc43b87164378795
|
||||
domain: zha
|
||||
platform: device
|
||||
type: remote_button_short_press
|
||||
subtype: remote_button_short_press
|
||||
action:
|
||||
- service: script.hallway_lights_toggle
|
||||
|
||||
- id: hallway-button-double
|
||||
alias: '[Hallway] Button double press'
|
||||
mode: single
|
||||
trigger:
|
||||
- device_id: cc4f08a2e2f0e5aebc43b87164378795
|
||||
domain: zha
|
||||
platform: device
|
||||
type: remote_button_double_press
|
||||
subtype: remote_button_double_press
|
||||
action:
|
||||
- service: script.leave_home
|
|
@ -1,21 +0,0 @@
|
|||
- id: hallway-lightstrip-on
|
||||
alias: '[Hallway] Motion On'
|
||||
mode: restart
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.hallway_motion_sensor
|
||||
from: 'off'
|
||||
to: 'on'
|
||||
action:
|
||||
- service: script.hallway_lights_on
|
||||
|
||||
- id: hallway-motion-off
|
||||
alias: '[Hallway] Motion Off'
|
||||
mode: restart
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.hallway_motion_sensor
|
||||
from: 'on'
|
||||
to: 'off'
|
||||
action:
|
||||
- service: script.hallway_lights_off
|
|
@ -1,11 +0,0 @@
|
|||
- id: hallway-open-close
|
||||
alias: '[Hallway] Open door'
|
||||
mode: single
|
||||
trigger:
|
||||
- type: opened
|
||||
platform: device
|
||||
device_id: 671a24524db60c56b0a182ac816faf20
|
||||
entity_id: binary_sensor.front_door_open_close
|
||||
domain: binary_sensor
|
||||
action:
|
||||
- service: script.hallway_lights_on
|
57
configuration/automations/hallway.yaml
Normal file
57
configuration/automations/hallway.yaml
Normal file
|
@ -0,0 +1,57 @@
|
|||
- id: hallway-button
|
||||
alias: '[Hallway] Button single press'
|
||||
mode: single
|
||||
trigger:
|
||||
- device_id: cc4f08a2e2f0e5aebc43b87164378795
|
||||
domain: zha
|
||||
platform: device
|
||||
type: remote_button_short_press
|
||||
subtype: remote_button_short_press
|
||||
action:
|
||||
- service: script.hallway_lights_toggle
|
||||
|
||||
- id: hallway-button-double
|
||||
alias: '[Hallway] Button double press'
|
||||
mode: single
|
||||
trigger:
|
||||
- device_id: cc4f08a2e2f0e5aebc43b87164378795
|
||||
domain: zha
|
||||
platform: device
|
||||
type: remote_button_double_press
|
||||
subtype: remote_button_double_press
|
||||
action:
|
||||
- service: script.leave_home
|
||||
|
||||
- id: hallway-motion-on
|
||||
alias: '[Hallway] Motion On'
|
||||
mode: restart
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.hallway_motion_sensor
|
||||
from: 'off'
|
||||
to: 'on'
|
||||
action:
|
||||
- service: script.hallway_lights_on
|
||||
|
||||
- id: hallway-motion-off
|
||||
alias: '[Hallway] Motion Off'
|
||||
mode: restart
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.hallway_motion_sensor
|
||||
from: 'on'
|
||||
to: 'off'
|
||||
action:
|
||||
- service: script.hallway_lights_off
|
||||
|
||||
- id: hallway-open-close
|
||||
alias: '[Hallway] Open door'
|
||||
mode: single
|
||||
trigger:
|
||||
- type: opened
|
||||
platform: device
|
||||
device_id: 671a24524db60c56b0a182ac816faf20
|
||||
entity_id: binary_sensor.front_door_open_close
|
||||
domain: binary_sensor
|
||||
action:
|
||||
- service: script.hallway_lights_on
|
Loading…
Reference in a new issue