Change computer button functions
This commit is contained in:
parent
5ec5ebd99d
commit
f2bd686eaf
1 changed files with 55 additions and 55 deletions
|
@ -1,4 +1,4 @@
|
|||
- id: button-computer-cave-on
|
||||
- id: button-computer-cave-tv-lights
|
||||
alias: '[Computer Cave] Button On'
|
||||
trigger:
|
||||
- device_id: 5b972523e427721ec88e095994f7cc16
|
||||
|
@ -10,28 +10,41 @@
|
|||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.sleep_mode
|
||||
entity_id: light.tv_lights
|
||||
state: 'on'
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
entity_id: light.desk_lightbar
|
||||
data:
|
||||
brightness_pct: 100
|
||||
kelvin: 2000
|
||||
- service: light.turn_off
|
||||
entity_id: light.tv_lights
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.sleep_mode
|
||||
entity_id: light.tv_lights
|
||||
state: 'off'
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
entity_id: light.desk_lightbar
|
||||
data:
|
||||
brightness_pct: 100
|
||||
kelvin: 3200
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.sleep_mode
|
||||
state: 'on'
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
entity_id: light.tv_lights
|
||||
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.tv_lights
|
||||
data:
|
||||
brightness_pct: 100
|
||||
kelvin: 3200
|
||||
mode: single
|
||||
|
||||
- id: button-computer-cave-off
|
||||
alias: '[Computer Cave] Button Off'
|
||||
- id: button-computer-cave-desk
|
||||
alias: '[Computer Cave] Button Desk'
|
||||
trigger:
|
||||
- device_id: 5b972523e427721ec88e095994f7cc16
|
||||
domain: zha
|
||||
|
@ -42,53 +55,40 @@
|
|||
- service: light.turn_off
|
||||
data:
|
||||
entity_id: light.desk_lightbar
|
||||
mode: single
|
||||
|
||||
- id: button-computer-cave-hold-on
|
||||
alias: '[Computer Cave] Button Hold On'
|
||||
trigger:
|
||||
- platform: event
|
||||
event_type: zha_event
|
||||
event_data:
|
||||
device_id: 5b972523e427721ec88e095994f7cc16
|
||||
command: move_with_on_off
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.sleep_mode
|
||||
entity_id: light.desk_lightbar
|
||||
state: 'on'
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
entity_id: light.tv_lights
|
||||
data:
|
||||
brightness_pct: 100
|
||||
kelvin: 2000
|
||||
- service: light.turn_off
|
||||
entity_id: light.desk_lightbar
|
||||
- service: light.turn_off
|
||||
entity_id: light.desk_lightbar_ambilight
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.sleep_mode
|
||||
entity_id: light.desk_lightbar
|
||||
state: 'off'
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
entity_id: light.tv_lights
|
||||
data:
|
||||
brightness_pct: 100
|
||||
kelvin: 3200
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.sleep_mode
|
||||
state: 'on'
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
entity_id: light.desk_lightbar
|
||||
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.desk_lightbar
|
||||
data:
|
||||
brightness_pct: 100
|
||||
kelvin: 3200
|
||||
mode: single
|
||||
|
||||
- id: button-computer-cave-hold-off
|
||||
alias: '[Computer Cave] Button Hold Off'
|
||||
trigger:
|
||||
- platform: event
|
||||
event_type: zha_event
|
||||
event_data:
|
||||
device_id: 5b972523e427721ec88e095994f7cc16
|
||||
command: move
|
||||
args:
|
||||
- 1
|
||||
- 83
|
||||
action:
|
||||
- service: light.turn_off
|
||||
data:
|
||||
entity_id: light.tv_lights
|
||||
mode: single
|
Loading…
Reference in a new issue