bedroom light automation
This commit is contained in:
@@ -0,0 +1,82 @@
|
||||
- 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
|
||||
|
||||
Reference in New Issue
Block a user