1
0

Housekeeping

use light groups instead of multiple lights
 add prefix to some automations
 rename some files
This commit is contained in:
Przemek Grondek 2021-01-23 19:32:51 +01:00
parent fab6e74cbe
commit 11d3512b2a
15 changed files with 98 additions and 145 deletions

View File

@ -10,9 +10,5 @@
action:
- service: light.toggle
data:
entity_id:
- light.bathroom_1
- light.bathroom_2
- light.bathroom_3
- light.bathroom_4
entity_id: light.bathroom_lights
mode: single

View File

@ -6,14 +6,10 @@
platform: device
type: remote_button_short_press
subtype: turn_on
condition: []
action:
- service: light.turn_on
data:
entity_id:
- light.mirror_left
- light.mirror_middle
- light.mirror_right
entity_id: light.bathroom_mirror_lights
mode: single
- id: button-bathroom-mirror-off
alias: '[Bathroom] Mirror Button Off'
@ -23,14 +19,10 @@
platform: device
type: remote_button_short_press
subtype: turn_off
condition: []
action:
- service: light.turn_off
data:
entity_id:
- light.mirror_left
- light.mirror_middle
- light.mirror_right
entity_id: light.bathroom_mirror_lights
mode: single
#- id: button-bathroom-hold-on
# alias: Button Hold On computer cave

View File

@ -65,7 +65,4 @@
to: 'off'
action:
- service: light.turn_off
entity_id:
- light.bathroom_lights
- light.bathroom_mirror_lights
- light.bathroom_minor_lights
entity_id: light.bathroom_lights

View File

@ -8,11 +8,7 @@
to: 'on'
action:
- service: light.turn_on
entity_id:
- light.shower_1
- light.shower_2
- light.shower_3
- light.shower_4
entity_id: shower_lights
- id: bathroom-shower-motion-off
alias: '[Bathroom] Shower Motion Off'
mode: restart
@ -24,8 +20,4 @@
to: 'off'
action:
- service: light.turn_off
entity_id:
- light.shower_1
- light.shower_2
- light.shower_3
- light.shower_4
entity_id: shower_lights

View File

@ -7,7 +7,7 @@
platform: device
type: remote_button_short_press
subtype: turn_on
condition: []
condition: [ ]
action:
- service: light.turn_on
data:
@ -18,12 +18,12 @@
- id: bedroom-button-turn-off
alias: '[Bedroom] Button Turn Off'
trigger:
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_off
condition: []
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_off
condition: [ ]
action:
- service: light.turn_off
data:
@ -34,71 +34,63 @@
- id: bedroom-button-dim-up
alias: '[Bedroom] Button Dim Up'
trigger:
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
domain: zha
platform: device
type: remote_button_short_press
subtype: dim_up
condition: []
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
domain: zha
platform: device
type: remote_button_short_press
subtype: dim_up
condition: [ ]
action:
- service: light.turn_on
data:
brightness_step_pct: 10
entity_id:
- light.bedroom_1
- light.bedroom_2
entity_id: light.bedroom_lights
mode: single
- id: bedroom-button-dim-down
alias: '[Bedroom] Button Dim Up'
trigger:
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
domain: zha
platform: device
type: remote_button_short_press
subtype: dim_down
condition: []
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
domain: zha
platform: device
type: remote_button_short_press
subtype: dim_down
condition: [ ]
action:
- service: light.turn_on
data:
brightness_step_pct: -10
entity_id:
- light.bedroom_1
- light.bedroom_2
entity_id: light.bedroom_lights
mode: single
# Double click
- id: bedroom-button-dim-up-double
alias: '[Bedroom] Button Dim Up'
trigger:
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
domain: zha
platform: device
type: remote_button_double_press
subtype: dim_up
condition: []
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
domain: zha
platform: device
type: remote_button_double_press
subtype: dim_up
condition: [ ]
action:
- service: light.turn_on
data:
brightness_pct: 90
kelvin: 3200
entity_id:
- light.bedroom_1
- light.bedroom_2
entity_id: light.bedroom_lights
mode: single
- id: bedroom-button-dim-down-double
alias: '[Bedroom] Button Dim Up'
trigger:
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
domain: zha
platform: device
type: remote_button_double_press
subtype: dim_down
condition: []
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
domain: zha
platform: device
type: remote_button_double_press
subtype: dim_down
condition: [ ]
action:
- service: light.turn_on
data:
brightness_pct: 10
kelvin: 2000
entity_id:
- light.bedroom_1
- light.bedroom_2
entity_id: light.bedroom_lights
mode: single

View File

@ -28,7 +28,6 @@
- platform: state
entity_id: binary_sensor.bedroom_window_open_close
to: 'on'
condition: []
action:
- service: switch.turn_off
entity_id: switch.humidifier_plug

View File

@ -1,5 +1,5 @@
- id: tv_morning
alias: Morning TV turn off
alias: '[Behaviour] Morning TV turn off'
description: ''
trigger:
- platform: state

View File

@ -6,7 +6,6 @@
platform: device
type: remote_button_short_press
subtype: turn_on
condition: []
action:
- service: light.turn_on
data:
@ -20,7 +19,6 @@
platform: device
type: remote_button_short_press
subtype: turn_off
condition: []
action:
- service: light.turn_off
data:
@ -34,14 +32,10 @@
event_data:
device_id: 5b972523e427721ec88e095994f7cc16
command: move_with_on_off
condition: []
action:
- service: light.turn_on
data:
entity_id:
- light.tv_left
- light.tv_middle
- light.tv_right
entity_id: light.tv_lights
mode: single
- id: button-computer-cave-hold-off
alias: '[Computer Cave] Button Hold Off'
@ -54,12 +48,8 @@
args:
- 1
- 83
condition: []
action:
- service: light.turn_off
data:
entity_id:
- light.tv_left
- light.tv_middle
- light.tv_right
entity_id: light.tv_lights
mode: single

View File

@ -12,7 +12,6 @@
- service: light.turn_off
data: {}
entity_id:
- light.computer_left
- light.computer_right
- light.computer_lights
- light.desk_lamp
mode: single

View File

@ -24,9 +24,7 @@
- 255
- 0
- 0
entity_id:
- light.computer_left
- light.computer_right
entity_id: light.computer_lights
- delay: '0:05:00'
- condition: state
entity_id: binary_sensor.desktop

View 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

View File

@ -38,21 +38,7 @@
action:
- service: light.turn_on
data:
entity_id:
- 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
entity_id: light.kitchen_lights
mode: single
- id: button-kitchen-hold-off
alias: '[Kitchen] Button Hold Off'
@ -69,19 +55,5 @@
action:
- service: light.turn_off
data:
entity_id:
- 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
entity_id: light.kitchen_lights
mode: single

View File

@ -1,6 +1,5 @@
- id: sleep_on
alias: Turn on sleep time
description: ''
trigger:
- platform: time
at: input_datetime.sleep_mode
@ -12,7 +11,6 @@
mode: single
- id: sleep_off
alias: Turn off sleep time
description: ''
trigger:
- platform: time
at: input_datetime.day_mode

View File

@ -1,5 +1,5 @@
- id: daily
alias: Daily notificaion
alias: '[Work] Daily notification'
trigger:
- platform: time
at: '10:55'
@ -19,9 +19,7 @@
- 0
- 0
- 255
entity_id:
- light.computer_left
- light.computer_right
entity_id: light.computer_lights
- service: light.turn_on
data:
flash: long
@ -30,13 +28,11 @@
- 0
- 0
- 255
entity_id:
- light.computer_left
- light.computer_right
entity_id: light.computer_lights
mode: single
- id: daily_off
alias: Daily notificaion off
alias: '[Work] Daily notification off'
trigger:
- platform: time
at: '11:25'
@ -58,13 +54,9 @@
- service: light.turn_on
data:
kelvin: 3200
entity_id:
- light.computer_left
- light.computer_right
entity_id: light.computer_lights
- delay: 5
- service: light.turn_off
entity_id:
- light.computer_left
- light.computer_right
entity_id: light.computer_lights
mode: single

View File

@ -1,5 +1,5 @@
- id: work_finished
alias: Notify when finished work
alias: '[Work] Notify when finished work'
description: ''
trigger:
- platform: state
@ -7,7 +7,6 @@
to: 'on'
for:
hours: 8
condition: []
action:
- service: light.turn_on
data:
@ -16,9 +15,7 @@
- 0
- 200
- 83
entity_id:
- light.computer_left
- light.computer_right
entity_id: light.computer_lights
- service: light.turn_on
data:
flash: long
@ -27,7 +24,5 @@
- 0
- 200
- 83
entity_id:
- light.computer_left
- light.computer_right
entity_id: light.computer_lights
mode: single