2021-07-19 21:25:20 +00:00
|
|
|
# Living Room button
|
|
|
|
- id: living-room-button-1 # Upper Left
|
|
|
|
alias: '[Living Room] Button 1'
|
|
|
|
description: ''
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- device_id: 6f68b487f932c9b73d17ff82cb453617
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_alt_short_press
|
|
|
|
subtype: button_1
|
|
|
|
action:
|
|
|
|
- choose:
|
2021-07-23 22:44:54 +00:00
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: light.table_lamp
|
|
|
|
state: 'on'
|
|
|
|
sequence:
|
|
|
|
- service: light.turn_off
|
|
|
|
entity_id: light.table_lamp
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: light.table_lamp
|
|
|
|
state: 'off'
|
|
|
|
sequence:
|
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_select.home_mode
|
|
|
|
state: Day
|
|
|
|
sequence:
|
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_boolean.sleep_mode
|
|
|
|
state: 'on'
|
|
|
|
sequence:
|
|
|
|
- service: light.turn_on
|
|
|
|
entity_id: light.table_lamp
|
|
|
|
data:
|
|
|
|
brightness_pct: 100
|
|
|
|
kelvin: 2000
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_boolean.sleep_mode
|
|
|
|
state: 'off'
|
|
|
|
sequence:
|
|
|
|
- service: light.turn_on
|
|
|
|
entity_id: light.table_lamp
|
|
|
|
data:
|
|
|
|
brightness_pct: 100
|
|
|
|
kelvin: 3200
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_select.home_mode
|
|
|
|
state: Night
|
|
|
|
sequence:
|
|
|
|
- service: light.turn_on
|
|
|
|
entity_id: light.table_lamp
|
|
|
|
data:
|
|
|
|
brightness_pct: 5
|
|
|
|
kelvin: 2700
|
2021-07-19 21:25:20 +00:00
|
|
|
|
|
|
|
- id: living-room-button-2 # Upper right
|
|
|
|
alias: '[Living Room] Button 2'
|
|
|
|
description: ''
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- device_id: 6f68b487f932c9b73d17ff82cb453617
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_alt_short_press
|
|
|
|
subtype: button_2
|
|
|
|
action:
|
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
2021-08-26 18:04:36 +00:00
|
|
|
entity_id: light.couch_lights
|
2021-07-19 21:25:20 +00:00
|
|
|
state: 'on'
|
|
|
|
sequence:
|
|
|
|
- service: light.turn_off
|
2021-08-26 18:04:36 +00:00
|
|
|
entity_id: light.couch_lights
|
2021-07-19 21:25:20 +00:00
|
|
|
- conditions:
|
|
|
|
- condition: state
|
2021-08-26 18:04:36 +00:00
|
|
|
entity_id: light.couch_lights
|
2021-07-19 21:25:20 +00:00
|
|
|
state: 'off'
|
|
|
|
sequence:
|
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_select.home_mode
|
|
|
|
state: Day
|
|
|
|
sequence:
|
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_boolean.sleep_mode
|
|
|
|
state: 'on'
|
|
|
|
sequence:
|
|
|
|
- service: light.turn_on
|
2021-08-26 18:04:36 +00:00
|
|
|
entity_id: light.couch_lights
|
2021-07-19 21:25:20 +00:00
|
|
|
data:
|
|
|
|
brightness_pct: 100
|
|
|
|
kelvin: 2000
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_boolean.sleep_mode
|
|
|
|
state: 'off'
|
|
|
|
sequence:
|
|
|
|
- service: light.turn_on
|
2021-08-26 18:04:36 +00:00
|
|
|
entity_id: light.couch_lights
|
2021-07-19 21:25:20 +00:00
|
|
|
data:
|
|
|
|
brightness_pct: 100
|
|
|
|
kelvin: 3200
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_select.home_mode
|
|
|
|
state: Night
|
|
|
|
sequence:
|
|
|
|
- service: light.turn_on
|
2021-08-26 18:04:36 +00:00
|
|
|
entity_id: light.couch_lights
|
2021-07-19 21:25:20 +00:00
|
|
|
data:
|
|
|
|
brightness_pct: 5
|
|
|
|
kelvin: 2700
|
|
|
|
|
|
|
|
- id: living-room-button-3 # Middle left
|
|
|
|
alias: '[Living Room] Button 3'
|
|
|
|
description: ''
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- device_id: 6f68b487f932c9b73d17ff82cb453617
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_alt_short_press
|
|
|
|
subtype: button_3
|
|
|
|
action:
|
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_select.home_mode
|
|
|
|
state: Day
|
|
|
|
sequence:
|
|
|
|
- service: script.tv_youtube
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_select.home_mode
|
|
|
|
state: Night
|
|
|
|
sequence:
|
|
|
|
- service: script.tv_youtube
|
|
|
|
|
2021-07-23 22:52:11 +00:00
|
|
|
- id: living-room-button-4 # Middle right
|
|
|
|
alias: '[Living Room] Button 4'
|
|
|
|
description: ''
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- device_id: 6f68b487f932c9b73d17ff82cb453617
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_alt_short_press
|
|
|
|
subtype: button_3
|
|
|
|
action:
|
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_select.home_mode
|
|
|
|
state: Day
|
|
|
|
sequence:
|
|
|
|
- service: script.tv_hbogo
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_select.home_mode
|
|
|
|
state: Night
|
|
|
|
sequence:
|
|
|
|
- service: script.tv_hbogo
|
|
|
|
|
2021-07-19 21:25:20 +00:00
|
|
|
- id: living-room-button-5 # Bottom left
|
|
|
|
alias: '[Living Room] Button 5'
|
|
|
|
description: ''
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- device_id: 6f68b487f932c9b73d17ff82cb453617
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_alt_short_press
|
|
|
|
subtype: button_5
|
|
|
|
action:
|
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_select.home_mode
|
|
|
|
state: Day
|
|
|
|
sequence:
|
|
|
|
- service: script.tv_nintendo_switch
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_select.home_mode
|
|
|
|
state: Night
|
|
|
|
sequence:
|
|
|
|
- service: script.tv_nintendo_switch
|
|
|
|
|
|
|
|
- id: living-room-button-6 # Bottom right
|
|
|
|
alias: '[Living Room] Button 6'
|
|
|
|
description: ''
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- device_id: 6f68b487f932c9b73d17ff82cb453617
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_alt_short_press
|
|
|
|
subtype: button_6
|
|
|
|
action:
|
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_select.home_mode
|
|
|
|
state: Day
|
|
|
|
sequence:
|
|
|
|
- service: script.tv_ps4
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_select.home_mode
|
|
|
|
state: Night
|
|
|
|
sequence:
|
|
|
|
- service: script.tv_ps4
|
2021-07-23 22:44:54 +00:00
|
|
|
|
|
|
|
- id: living-room-tv-off
|
|
|
|
alias: '[Living Room] Turn TV Off'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- device_id: 6f68b487f932c9b73d17ff82cb453617
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_alt_double_press
|
|
|
|
subtype: button_3
|
|
|
|
- device_id: 6f68b487f932c9b73d17ff82cb453617
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_alt_double_press
|
|
|
|
subtype: button_4
|
|
|
|
- device_id: 6f68b487f932c9b73d17ff82cb453617
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_alt_double_press
|
|
|
|
subtype: button_5
|
|
|
|
- device_id: 6f68b487f932c9b73d17ff82cb453617
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_alt_double_press
|
|
|
|
subtype: button_6
|
|
|
|
action:
|
|
|
|
- service: remote.send_command
|
|
|
|
entity_id: remote.harmonyhub
|
|
|
|
data:
|
|
|
|
device: Samsung TV
|
|
|
|
command: PowerToggle
|
2021-08-28 21:06:28 +00:00
|
|
|
- service: remote.turn_off
|
|
|
|
entity_id: remote.harmonyhub
|