Housekeeping
use light groups instead of multiple lights add prefix to some automations rename some files
This commit is contained in:
parent
fab6e74cbe
commit
11d3512b2a
@ -10,9 +10,5 @@
|
|||||||
action:
|
action:
|
||||||
- service: light.toggle
|
- service: light.toggle
|
||||||
data:
|
data:
|
||||||
entity_id:
|
entity_id: light.bathroom_lights
|
||||||
- light.bathroom_1
|
|
||||||
- light.bathroom_2
|
|
||||||
- light.bathroom_3
|
|
||||||
- light.bathroom_4
|
|
||||||
mode: single
|
mode: single
|
@ -6,14 +6,10 @@
|
|||||||
platform: device
|
platform: device
|
||||||
type: remote_button_short_press
|
type: remote_button_short_press
|
||||||
subtype: turn_on
|
subtype: turn_on
|
||||||
condition: []
|
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
data:
|
data:
|
||||||
entity_id:
|
entity_id: light.bathroom_mirror_lights
|
||||||
- light.mirror_left
|
|
||||||
- light.mirror_middle
|
|
||||||
- light.mirror_right
|
|
||||||
mode: single
|
mode: single
|
||||||
- id: button-bathroom-mirror-off
|
- id: button-bathroom-mirror-off
|
||||||
alias: '[Bathroom] Mirror Button Off'
|
alias: '[Bathroom] Mirror Button Off'
|
||||||
@ -23,14 +19,10 @@
|
|||||||
platform: device
|
platform: device
|
||||||
type: remote_button_short_press
|
type: remote_button_short_press
|
||||||
subtype: turn_off
|
subtype: turn_off
|
||||||
condition: []
|
|
||||||
action:
|
action:
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
data:
|
data:
|
||||||
entity_id:
|
entity_id: light.bathroom_mirror_lights
|
||||||
- light.mirror_left
|
|
||||||
- light.mirror_middle
|
|
||||||
- light.mirror_right
|
|
||||||
mode: single
|
mode: single
|
||||||
#- id: button-bathroom-hold-on
|
#- id: button-bathroom-hold-on
|
||||||
# alias: Button Hold On computer cave
|
# alias: Button Hold On computer cave
|
||||||
|
@ -65,7 +65,4 @@
|
|||||||
to: 'off'
|
to: 'off'
|
||||||
action:
|
action:
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id:
|
entity_id: light.bathroom_lights
|
||||||
- light.bathroom_lights
|
|
||||||
- light.bathroom_mirror_lights
|
|
||||||
- light.bathroom_minor_lights
|
|
||||||
|
@ -8,11 +8,7 @@
|
|||||||
to: 'on'
|
to: 'on'
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id:
|
entity_id: shower_lights
|
||||||
- light.shower_1
|
|
||||||
- light.shower_2
|
|
||||||
- light.shower_3
|
|
||||||
- light.shower_4
|
|
||||||
- id: bathroom-shower-motion-off
|
- id: bathroom-shower-motion-off
|
||||||
alias: '[Bathroom] Shower Motion Off'
|
alias: '[Bathroom] Shower Motion Off'
|
||||||
mode: restart
|
mode: restart
|
||||||
@ -24,8 +20,4 @@
|
|||||||
to: 'off'
|
to: 'off'
|
||||||
action:
|
action:
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id:
|
entity_id: shower_lights
|
||||||
- light.shower_1
|
|
||||||
- light.shower_2
|
|
||||||
- light.shower_3
|
|
||||||
- light.shower_4
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
platform: device
|
platform: device
|
||||||
type: remote_button_short_press
|
type: remote_button_short_press
|
||||||
subtype: turn_on
|
subtype: turn_on
|
||||||
condition: []
|
condition: [ ]
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
data:
|
data:
|
||||||
@ -23,7 +23,7 @@
|
|||||||
platform: device
|
platform: device
|
||||||
type: remote_button_short_press
|
type: remote_button_short_press
|
||||||
subtype: turn_off
|
subtype: turn_off
|
||||||
condition: []
|
condition: [ ]
|
||||||
action:
|
action:
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
data:
|
data:
|
||||||
@ -39,14 +39,12 @@
|
|||||||
platform: device
|
platform: device
|
||||||
type: remote_button_short_press
|
type: remote_button_short_press
|
||||||
subtype: dim_up
|
subtype: dim_up
|
||||||
condition: []
|
condition: [ ]
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
data:
|
data:
|
||||||
brightness_step_pct: 10
|
brightness_step_pct: 10
|
||||||
entity_id:
|
entity_id: light.bedroom_lights
|
||||||
- light.bedroom_1
|
|
||||||
- light.bedroom_2
|
|
||||||
mode: single
|
mode: single
|
||||||
- id: bedroom-button-dim-down
|
- id: bedroom-button-dim-down
|
||||||
alias: '[Bedroom] Button Dim Up'
|
alias: '[Bedroom] Button Dim Up'
|
||||||
@ -56,14 +54,12 @@
|
|||||||
platform: device
|
platform: device
|
||||||
type: remote_button_short_press
|
type: remote_button_short_press
|
||||||
subtype: dim_down
|
subtype: dim_down
|
||||||
condition: []
|
condition: [ ]
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
data:
|
data:
|
||||||
brightness_step_pct: -10
|
brightness_step_pct: -10
|
||||||
entity_id:
|
entity_id: light.bedroom_lights
|
||||||
- light.bedroom_1
|
|
||||||
- light.bedroom_2
|
|
||||||
mode: single
|
mode: single
|
||||||
# Double click
|
# Double click
|
||||||
- id: bedroom-button-dim-up-double
|
- id: bedroom-button-dim-up-double
|
||||||
@ -74,15 +70,13 @@
|
|||||||
platform: device
|
platform: device
|
||||||
type: remote_button_double_press
|
type: remote_button_double_press
|
||||||
subtype: dim_up
|
subtype: dim_up
|
||||||
condition: []
|
condition: [ ]
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
data:
|
data:
|
||||||
brightness_pct: 90
|
brightness_pct: 90
|
||||||
kelvin: 3200
|
kelvin: 3200
|
||||||
entity_id:
|
entity_id: light.bedroom_lights
|
||||||
- light.bedroom_1
|
|
||||||
- light.bedroom_2
|
|
||||||
mode: single
|
mode: single
|
||||||
- id: bedroom-button-dim-down-double
|
- id: bedroom-button-dim-down-double
|
||||||
alias: '[Bedroom] Button Dim Up'
|
alias: '[Bedroom] Button Dim Up'
|
||||||
@ -92,13 +86,11 @@
|
|||||||
platform: device
|
platform: device
|
||||||
type: remote_button_double_press
|
type: remote_button_double_press
|
||||||
subtype: dim_down
|
subtype: dim_down
|
||||||
condition: []
|
condition: [ ]
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
data:
|
data:
|
||||||
brightness_pct: 10
|
brightness_pct: 10
|
||||||
kelvin: 2000
|
kelvin: 2000
|
||||||
entity_id:
|
entity_id: light.bedroom_lights
|
||||||
- light.bedroom_1
|
|
||||||
- light.bedroom_2
|
|
||||||
mode: single
|
mode: single
|
@ -28,7 +28,6 @@
|
|||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.bedroom_window_open_close
|
entity_id: binary_sensor.bedroom_window_open_close
|
||||||
to: 'on'
|
to: 'on'
|
||||||
condition: []
|
|
||||||
action:
|
action:
|
||||||
- service: switch.turn_off
|
- service: switch.turn_off
|
||||||
entity_id: switch.humidifier_plug
|
entity_id: switch.humidifier_plug
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- id: tv_morning
|
- id: tv_morning
|
||||||
alias: Morning TV turn off
|
alias: '[Behaviour] Morning TV turn off'
|
||||||
description: ''
|
description: ''
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
@ -6,7 +6,6 @@
|
|||||||
platform: device
|
platform: device
|
||||||
type: remote_button_short_press
|
type: remote_button_short_press
|
||||||
subtype: turn_on
|
subtype: turn_on
|
||||||
condition: []
|
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
data:
|
data:
|
||||||
@ -20,7 +19,6 @@
|
|||||||
platform: device
|
platform: device
|
||||||
type: remote_button_short_press
|
type: remote_button_short_press
|
||||||
subtype: turn_off
|
subtype: turn_off
|
||||||
condition: []
|
|
||||||
action:
|
action:
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
data:
|
data:
|
||||||
@ -34,14 +32,10 @@
|
|||||||
event_data:
|
event_data:
|
||||||
device_id: 5b972523e427721ec88e095994f7cc16
|
device_id: 5b972523e427721ec88e095994f7cc16
|
||||||
command: move_with_on_off
|
command: move_with_on_off
|
||||||
condition: []
|
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
data:
|
data:
|
||||||
entity_id:
|
entity_id: light.tv_lights
|
||||||
- light.tv_left
|
|
||||||
- light.tv_middle
|
|
||||||
- light.tv_right
|
|
||||||
mode: single
|
mode: single
|
||||||
- id: button-computer-cave-hold-off
|
- id: button-computer-cave-hold-off
|
||||||
alias: '[Computer Cave] Button Hold Off'
|
alias: '[Computer Cave] Button Hold Off'
|
||||||
@ -54,12 +48,8 @@
|
|||||||
args:
|
args:
|
||||||
- 1
|
- 1
|
||||||
- 83
|
- 83
|
||||||
condition: []
|
|
||||||
action:
|
action:
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
data:
|
data:
|
||||||
entity_id:
|
entity_id: light.tv_lights
|
||||||
- light.tv_left
|
|
||||||
- light.tv_middle
|
|
||||||
- light.tv_right
|
|
||||||
mode: single
|
mode: single
|
@ -12,7 +12,6 @@
|
|||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
data: {}
|
data: {}
|
||||||
entity_id:
|
entity_id:
|
||||||
- light.computer_left
|
- light.computer_lights
|
||||||
- light.computer_right
|
|
||||||
- light.desk_lamp
|
- light.desk_lamp
|
||||||
mode: single
|
mode: single
|
@ -24,9 +24,7 @@
|
|||||||
- 255
|
- 255
|
||||||
- 0
|
- 0
|
||||||
- 0
|
- 0
|
||||||
entity_id:
|
entity_id: light.computer_lights
|
||||||
- light.computer_left
|
|
||||||
- light.computer_right
|
|
||||||
- delay: '0:05:00'
|
- delay: '0:05:00'
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.desktop
|
entity_id: binary_sensor.desktop
|
||||||
|
41
automations/files/hallway-doorbel.yaml
Normal file
41
automations/files/hallway-doorbel.yaml
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
- id: hallway-doorbell
|
||||||
|
alias: '[Hallway] Doorbell'
|
||||||
|
mode: restart
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: switch.doorbell_switch
|
||||||
|
from: 'off'
|
||||||
|
to: 'on'
|
||||||
|
action:
|
||||||
|
- service: light.turn_on
|
||||||
|
data:
|
||||||
|
brightness: 200
|
||||||
|
rgb_color:
|
||||||
|
- 49
|
||||||
|
- 27
|
||||||
|
- 146
|
||||||
|
entity_id: light.computer_lights
|
||||||
|
- service: light.turn_on
|
||||||
|
data:
|
||||||
|
flash: long
|
||||||
|
brightness: 200
|
||||||
|
rgb_color:
|
||||||
|
- 49
|
||||||
|
- 27
|
||||||
|
- 146
|
||||||
|
entity_id: light.computer_lights
|
||||||
|
- delay: '30'
|
||||||
|
- service: light.turn_off
|
||||||
|
entity_id: light.computer_lights
|
||||||
|
- id: hallway-doorbell-burn-prevention
|
||||||
|
alias: '[Hallway] Doorbell burn prevention'
|
||||||
|
mode: restart
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: switch.doorbell_switch
|
||||||
|
from: 'off'
|
||||||
|
to: 'on'
|
||||||
|
action:
|
||||||
|
- delay: '2'
|
||||||
|
- service: switch.turn_off
|
||||||
|
entity_id: switch.doorbell_switch
|
@ -38,21 +38,7 @@
|
|||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
data:
|
data:
|
||||||
entity_id:
|
entity_id: light.kitchen_lights
|
||||||
- light.kitchen_01
|
|
||||||
- light.kitchen_02
|
|
||||||
- light.kitchen_03
|
|
||||||
- light.kitchen_04
|
|
||||||
- light.kitchen_05
|
|
||||||
- light.kitchen_06
|
|
||||||
- light.kitchen_07
|
|
||||||
- light.kitchen_08
|
|
||||||
- light.kitchen_09
|
|
||||||
- light.kitchen_10
|
|
||||||
- light.kitchen_11
|
|
||||||
- light.kitchen_12
|
|
||||||
- light.kitchen_13
|
|
||||||
- light.kitchen_14
|
|
||||||
mode: single
|
mode: single
|
||||||
- id: button-kitchen-hold-off
|
- id: button-kitchen-hold-off
|
||||||
alias: '[Kitchen] Button Hold Off'
|
alias: '[Kitchen] Button Hold Off'
|
||||||
@ -69,19 +55,5 @@
|
|||||||
action:
|
action:
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
data:
|
data:
|
||||||
entity_id:
|
entity_id: light.kitchen_lights
|
||||||
- light.kitchen_01
|
|
||||||
- light.kitchen_02
|
|
||||||
- light.kitchen_03
|
|
||||||
- light.kitchen_04
|
|
||||||
- light.kitchen_05
|
|
||||||
- light.kitchen_06
|
|
||||||
- light.kitchen_07
|
|
||||||
- light.kitchen_08
|
|
||||||
- light.kitchen_09
|
|
||||||
- light.kitchen_10
|
|
||||||
- light.kitchen_11
|
|
||||||
- light.kitchen_12
|
|
||||||
- light.kitchen_13
|
|
||||||
- light.kitchen_14
|
|
||||||
mode: single
|
mode: single
|
@ -1,6 +1,5 @@
|
|||||||
- id: sleep_on
|
- id: sleep_on
|
||||||
alias: Turn on sleep time
|
alias: Turn on sleep time
|
||||||
description: ''
|
|
||||||
trigger:
|
trigger:
|
||||||
- platform: time
|
- platform: time
|
||||||
at: input_datetime.sleep_mode
|
at: input_datetime.sleep_mode
|
||||||
@ -12,7 +11,6 @@
|
|||||||
mode: single
|
mode: single
|
||||||
- id: sleep_off
|
- id: sleep_off
|
||||||
alias: Turn off sleep time
|
alias: Turn off sleep time
|
||||||
description: ''
|
|
||||||
trigger:
|
trigger:
|
||||||
- platform: time
|
- platform: time
|
||||||
at: input_datetime.day_mode
|
at: input_datetime.day_mode
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- id: daily
|
- id: daily
|
||||||
alias: Daily notificaion
|
alias: '[Work] Daily notification'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: time
|
- platform: time
|
||||||
at: '10:55'
|
at: '10:55'
|
||||||
@ -19,9 +19,7 @@
|
|||||||
- 0
|
- 0
|
||||||
- 0
|
- 0
|
||||||
- 255
|
- 255
|
||||||
entity_id:
|
entity_id: light.computer_lights
|
||||||
- light.computer_left
|
|
||||||
- light.computer_right
|
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
data:
|
data:
|
||||||
flash: long
|
flash: long
|
||||||
@ -30,13 +28,11 @@
|
|||||||
- 0
|
- 0
|
||||||
- 0
|
- 0
|
||||||
- 255
|
- 255
|
||||||
entity_id:
|
entity_id: light.computer_lights
|
||||||
- light.computer_left
|
|
||||||
- light.computer_right
|
|
||||||
mode: single
|
mode: single
|
||||||
|
|
||||||
- id: daily_off
|
- id: daily_off
|
||||||
alias: Daily notificaion off
|
alias: '[Work] Daily notification off'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: time
|
- platform: time
|
||||||
at: '11:25'
|
at: '11:25'
|
||||||
@ -58,13 +54,9 @@
|
|||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
data:
|
data:
|
||||||
kelvin: 3200
|
kelvin: 3200
|
||||||
entity_id:
|
entity_id: light.computer_lights
|
||||||
- light.computer_left
|
|
||||||
- light.computer_right
|
|
||||||
- delay: 5
|
- delay: 5
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id:
|
entity_id: light.computer_lights
|
||||||
- light.computer_left
|
|
||||||
- light.computer_right
|
|
||||||
|
|
||||||
mode: single
|
mode: single
|
@ -1,5 +1,5 @@
|
|||||||
- id: work_finished
|
- id: work_finished
|
||||||
alias: Notify when finished work
|
alias: '[Work] Notify when finished work'
|
||||||
description: ''
|
description: ''
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
@ -7,7 +7,6 @@
|
|||||||
to: 'on'
|
to: 'on'
|
||||||
for:
|
for:
|
||||||
hours: 8
|
hours: 8
|
||||||
condition: []
|
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
data:
|
data:
|
||||||
@ -16,9 +15,7 @@
|
|||||||
- 0
|
- 0
|
||||||
- 200
|
- 200
|
||||||
- 83
|
- 83
|
||||||
entity_id:
|
entity_id: light.computer_lights
|
||||||
- light.computer_left
|
|
||||||
- light.computer_right
|
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
data:
|
data:
|
||||||
flash: long
|
flash: long
|
||||||
@ -27,7 +24,5 @@
|
|||||||
- 0
|
- 0
|
||||||
- 200
|
- 200
|
||||||
- 83
|
- 83
|
||||||
entity_id:
|
entity_id: light.computer_lights
|
||||||
- light.computer_left
|
|
||||||
- light.computer_right
|
|
||||||
mode: single
|
mode: single
|
Loading…
Reference in New Issue
Block a user