Add button to turn off tv via living room button
This commit is contained in:
parent
826f858c5e
commit
135b88c864
1 changed files with 80 additions and 49 deletions
|
@ -11,55 +11,55 @@
|
|||
subtype: button_1
|
||||
action:
|
||||
- choose:
|
||||
- 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
|
||||
- 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
|
||||
|
||||
- id: living-room-button-2 # Upper right
|
||||
alias: '[Living Room] Button 2'
|
||||
|
@ -197,3 +197,34 @@
|
|||
state: Night
|
||||
sequence:
|
||||
- service: script.tv_ps4
|
||||
|
||||
- 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
|
||||
|
|
Loading…
Reference in a new issue