Integrate scenes
This commit is contained in:
parent
fd88f66541
commit
887e9fe267
|
@ -94,7 +94,7 @@
|
|||
- '505468673754923049'
|
||||
mode: single
|
||||
- id: '1628291074276'
|
||||
alias: Turn Off Lights When House is Empty
|
||||
alias: Activate Empty House Scene when house is empty
|
||||
description: When everybody leaves, turn off the lights (switches only)
|
||||
trigger:
|
||||
- platform: state
|
||||
|
@ -102,9 +102,7 @@
|
|||
to: 'off'
|
||||
condition: []
|
||||
action:
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: all
|
||||
- scene: scene.empty_house
|
||||
mode: single
|
||||
- id: '1628359480237'
|
||||
alias: Turn Off Downstairs Lights on Time Schedule
|
||||
|
@ -185,3 +183,39 @@
|
|||
target:
|
||||
entity_id: media_player.lab_projector
|
||||
mode: single
|
||||
- id: '1629335199149'
|
||||
alias: Dim the lights when living room tv is activated
|
||||
description: Enters the light mode living room cinema scene IF the lights are on.
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: media_player.samsungtv_2570afd6_0816_491c_99e1_43252512efe3
|
||||
to: 'on'
|
||||
condition:
|
||||
- condition: device
|
||||
type: is_on
|
||||
device_id: f4fa8528d77b7dca7c7f5c1fe6fcf7a8
|
||||
entity_id: light.living_room_lights
|
||||
domain: light
|
||||
action:
|
||||
- scene: scene.living_room_cinema_scene
|
||||
mode: single
|
||||
- id: '1629567624901'
|
||||
alias: Reactivate lights when Living Room TV is stopped
|
||||
description: ''
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: media_player.samsungtv_2570afd6_0816_491c_99e1_43252512efe3
|
||||
to: 'off'
|
||||
condition:
|
||||
- condition: device
|
||||
type: is_on
|
||||
device_id: f4fa8528d77b7dca7c7f5c1fe6fcf7a8
|
||||
entity_id: light.living_room_lights
|
||||
domain: light
|
||||
action:
|
||||
- type: turn_on
|
||||
device_id: f4fa8528d77b7dca7c7f5c1fe6fcf7a8
|
||||
entity_id: light.living_room_lights
|
||||
domain: light
|
||||
brightness_pct: 100
|
||||
mode: single
|
||||
|
|
10
groups.yaml
10
groups.yaml
|
@ -1,6 +1,14 @@
|
|||
# Basement light group
|
||||
basement:
|
||||
basement_lights:
|
||||
name: Basement Lights
|
||||
entities:
|
||||
- switch.shop_lights
|
||||
- switch.shop_foyer_lights
|
||||
first_floor_lights:
|
||||
name: First Floor Lights
|
||||
entities:
|
||||
- light.living_room_lights
|
||||
second_floor_lights:
|
||||
name: Second Floor Lights
|
||||
entities:
|
||||
- switch.lab_lights
|
||||
|
|
59
scenes.yaml
59
scenes.yaml
|
@ -0,0 +1,59 @@
|
|||
- id: '1629564986190'
|
||||
name: Living Room Cinema Scene (Light Mode)
|
||||
entities:
|
||||
light.living_room_lights:
|
||||
supported_color_modes:
|
||||
- brightness
|
||||
color_mode: brightness
|
||||
brightness: 77
|
||||
friendly_name: living room lights
|
||||
supported_features: 32
|
||||
state: 'on'
|
||||
icon: mdi:theater
|
||||
- id: '1629565045333'
|
||||
name: Joe's Room Cinema Scene
|
||||
entities:
|
||||
switch.lab_lights:
|
||||
friendly_name: Lab Lights
|
||||
state: 'off'
|
||||
icon: mdi:theater
|
||||
- id: '1629566187404'
|
||||
name: Empty House
|
||||
entities:
|
||||
group.basement_lights:
|
||||
entity_id:
|
||||
- switch.shop_lights
|
||||
- switch.shop_foyer_lights
|
||||
order: 0
|
||||
friendly_name: Basement Lights
|
||||
state: 'off'
|
||||
group.first_floor_lights:
|
||||
entity_id:
|
||||
- light.living_room_lights
|
||||
order: 1
|
||||
friendly_name: First Floor Lights
|
||||
state: 'off'
|
||||
group.second_floor_lights:
|
||||
entity_id:
|
||||
- switch.lab_lights
|
||||
order: 2
|
||||
friendly_name: Second Floor Lights
|
||||
state: 'off'
|
||||
media_player.lab_projector:
|
||||
source_list:
|
||||
- RGB 1
|
||||
- RGB 2
|
||||
- VIDEO 1
|
||||
- VIDEO 2
|
||||
friendly_name: Lab Projector
|
||||
supported_features: 2440
|
||||
state: 'off'
|
||||
media_player.samsungtv_2570afd6_0816_491c_99e1_43252512efe3:
|
||||
source_list:
|
||||
- TV
|
||||
- HDMI
|
||||
friendly_name: Living Room TV
|
||||
supported_features: 20409
|
||||
device_class: tv
|
||||
state: 'off'
|
||||
icon: mdi:warehouse
|
Loading…
Reference in New Issue