189 lines
4.5 KiB
YAML
Executable File
189 lines
4.5 KiB
YAML
Executable File
- id: '1740678838632'
|
|
alias: Bedroom Light Switch
|
|
description: ''
|
|
triggers:
|
|
- domain: mqtt
|
|
device_id: 8b3a5a5b6faaba744c70ee940446a8af
|
|
type: action
|
|
subtype: on-press
|
|
trigger: device
|
|
id: on press
|
|
- domain: mqtt
|
|
device_id: 8b3a5a5b6faaba744c70ee940446a8af
|
|
type: action
|
|
subtype: off-press
|
|
trigger: device
|
|
id: off press
|
|
- domain: mqtt
|
|
device_id: 8b3a5a5b6faaba744c70ee940446a8af
|
|
type: action
|
|
subtype: up-press
|
|
trigger: device
|
|
id: up press
|
|
- domain: mqtt
|
|
device_id: 8b3a5a5b6faaba744c70ee940446a8af
|
|
type: action
|
|
subtype: down-press
|
|
trigger: device
|
|
id: down press
|
|
conditions: []
|
|
actions:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- on press
|
|
sequence:
|
|
- action: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
transition: 2
|
|
brightness_pct: 100
|
|
kelvin: 6004
|
|
target:
|
|
entity_id: light.bedroom_lights
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- off press
|
|
sequence:
|
|
- action: light.turn_off
|
|
metadata: {}
|
|
data:
|
|
transition: 2
|
|
target:
|
|
entity_id: light.bedroom_lights
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- up press
|
|
sequence:
|
|
- device_id: 44f4ce3a35528dc7874069d4935e8b96
|
|
domain: light
|
|
entity_id: d733cc686a1202a747a1b8982a5b129b
|
|
type: brightness_increase
|
|
- device_id: eb41c45109c032c15c45516dd26debce
|
|
domain: light
|
|
entity_id: 627446070b5b0b33cf3cf93ef723c4dd
|
|
type: brightness_increase
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- down press
|
|
sequence:
|
|
- device_id: 44f4ce3a35528dc7874069d4935e8b96
|
|
domain: light
|
|
entity_id: d733cc686a1202a747a1b8982a5b129b
|
|
type: brightness_decrease
|
|
- device_id: eb41c45109c032c15c45516dd26debce
|
|
domain: light
|
|
entity_id: 627446070b5b0b33cf3cf93ef723c4dd
|
|
type: brightness_decrease
|
|
mode: single
|
|
- id: '1740697291423'
|
|
alias: Living Rooom Lights
|
|
description: ''
|
|
triggers:
|
|
- domain: mqtt
|
|
device_id: b4fb325dfe68d4f80391417998f35843
|
|
type: action
|
|
subtype: on-press
|
|
trigger: device
|
|
id: on press
|
|
- domain: mqtt
|
|
device_id: b4fb325dfe68d4f80391417998f35843
|
|
type: action
|
|
subtype: off-press
|
|
trigger: device
|
|
id: off press
|
|
- domain: mqtt
|
|
device_id: b4fb325dfe68d4f80391417998f35843
|
|
type: action
|
|
subtype: up-press
|
|
trigger: device
|
|
id: up press
|
|
- domain: mqtt
|
|
device_id: b4fb325dfe68d4f80391417998f35843
|
|
type: action
|
|
subtype: down-press
|
|
trigger: device
|
|
id: down press
|
|
- domain: mqtt
|
|
device_id: b4fb325dfe68d4f80391417998f35843
|
|
type: action
|
|
subtype: on-hold
|
|
trigger: device
|
|
id: on-hold
|
|
conditions: []
|
|
actions:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- on press
|
|
sequence:
|
|
- action: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
transition: 2
|
|
brightness_pct: 100
|
|
kelvin: 6004
|
|
target:
|
|
entity_id:
|
|
- light.living_room_lights
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- off press
|
|
sequence:
|
|
- action: light.turn_off
|
|
metadata: {}
|
|
data:
|
|
transition: 2
|
|
target:
|
|
entity_id:
|
|
- light.living_room_lights
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- up press
|
|
sequence:
|
|
- device_id: b4eb91155f9055a0c60ef550df160a27
|
|
domain: light
|
|
entity_id: 199c07d0f6e74e9e9e233231a7865225
|
|
type: brightness_increase
|
|
- device_id: 9780865b63490c56c106b6d6a7ab0a12
|
|
domain: light
|
|
entity_id: 68f196203d0d94582df8ee8349fc8add
|
|
type: brightness_increase
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- down press
|
|
sequence:
|
|
- device_id: b4eb91155f9055a0c60ef550df160a27
|
|
domain: light
|
|
entity_id: 199c07d0f6e74e9e9e233231a7865225
|
|
type: brightness_decrease
|
|
- device_id: 9780865b63490c56c106b6d6a7ab0a12
|
|
domain: light
|
|
entity_id: 68f196203d0d94582df8ee8349fc8add
|
|
type: brightness_decrease
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- on-hold
|
|
sequence:
|
|
- action: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
transition: 0
|
|
brightness_pct: 100
|
|
rgb_color:
|
|
- 224
|
|
- 27
|
|
- 36
|
|
target:
|
|
entity_id: light.living_room_lights
|
|
mode: single
|