1
0

Modify buttons

This commit is contained in:
Przemek Grondek 2020-12-20 21:43:46 +01:00
parent 4796b28c4f
commit 168d7f2020
2 changed files with 73 additions and 4 deletions

View File

@ -0,0 +1,71 @@
- id: button-bathroom-on
alias: Button On computer cave
trigger:
- device_id: 4d5298037e93ba11438409bff01b5005
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_on
condition: []
action:
- service: switch.turn_on
data:
entity_id:
- switch.mirror_left
- switch.mirror_middle
- switch.mirror_right
mode: single
- id: button-bathroom-off
alias: Button Off computer cave
trigger:
- device_id: 4d5298037e93ba11438409bff01b5005
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_off
condition: []
action:
- service: switch.turn_off
data:
entity_id:
- switch.mirror_left
- switch.mirror_middle
- switch.mirror_right
mode: single
#- id: button-bathroom-hold-on
# alias: Button Hold On computer cave
# trigger:
# - platform: event
# event_type: zha_event
# event_data:
# device_id: 4d5298037e93ba11438409bff01b5005
# command: move_with_on_off
# condition: []
# action:
# - service: switch.turn_on
# data:
# entity_id:
# - light.tv_left
# - light.tv_middle
# - light.tv_right
# mode: single
#- id: button-bathroom-hold-off
# alias: Button Hold Off computer cave
# trigger:
# - platform: event
# event_type: zha_event
# event_data:
# device_id: 4d5298037e93ba11438409bff01b5005
# command: move
# args:
# - 1
# - 83
# condition: []
# action:
# - service: light.turn_off
# data:
# entity_id:
# - light.tv_left
# - light.tv_middle
# - light.tv_right
# mode: single

View File

@ -10,8 +10,7 @@
action: action:
- service: light.turn_on - service: light.turn_on
data: data:
entity_id: entity_id: light.desk_lamp
- light.desk_lamp
mode: single mode: single
- id: button-computer-cave-off - id: button-computer-cave-off
alias: Button Off computer cave alias: Button Off computer cave
@ -25,8 +24,7 @@
action: action:
- service: light.turn_off - service: light.turn_off
data: data:
entity_id: entity_id: light.desk_lamp
- light.desk_lamp
mode: single mode: single
- id: button-computer-cave-hold-on - id: button-computer-cave-hold-on
alias: Button Hold On computer cave alias: Button Hold On computer cave