mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
initial push
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
alias: Great Room Light Switch
|
||||
description: 'Handles button presses for the Great Room Motion Switch'
|
||||
id: automation.great_room_light_switch
|
||||
mode: single
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- switch.great_room_motion_switch
|
||||
from: "on"
|
||||
to: "off"
|
||||
id: turned_off
|
||||
- platform: state
|
||||
entity_id:
|
||||
- switch.great_room_motion_switch
|
||||
from: "off"
|
||||
to: "on"
|
||||
id: turned_on
|
||||
condition: []
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: turned_off
|
||||
- condition: state
|
||||
entity_id: switch.great_room_motion_switch
|
||||
state: 'off'
|
||||
sequence:
|
||||
- service: input_select.select_option
|
||||
data:
|
||||
option: Manual
|
||||
target:
|
||||
entity_id: input_select.great_room_mode
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: turned_on
|
||||
- condition: state
|
||||
entity_id: switch.great_room_motion_switch
|
||||
state: 'on'
|
||||
sequence:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.great_room_mode
|
||||
state: Manual
|
||||
sequence:
|
||||
- service: input_select.select_option
|
||||
data:
|
||||
option: Auto
|
||||
target:
|
||||
entity_id: input_select.great_room_mode
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.great_room_mode
|
||||
state: Auto
|
||||
sequence:
|
||||
- service: input_select.select_option
|
||||
data:
|
||||
option: Bright
|
||||
target:
|
||||
entity_id: input_select.great_room_mode
|
||||
Reference in New Issue
Block a user