mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-04-30 11:36:10 +00:00
Converted the Last hold overs to Scenes #744
This commit is contained in:
parent
8db7a92b8f
commit
53a21eabf0
@ -300,19 +300,60 @@ automation:
|
|||||||
entity_id: group.bed
|
entity_id: group.bed
|
||||||
state: 'off'
|
state: 'off'
|
||||||
|
|
||||||
|
# action:
|
||||||
|
# - choose:
|
||||||
|
# - conditions:
|
||||||
|
# - condition: state
|
||||||
|
# entity_id: group.entry_points
|
||||||
|
# state: on
|
||||||
|
#
|
||||||
|
# sequence:
|
||||||
|
# - service: script.siren
|
||||||
|
# data:
|
||||||
|
# duration: 60
|
||||||
|
# - service: light.turn_on
|
||||||
|
# entity_id: all
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service_template: >-
|
- choose:
|
||||||
{% if states.group.entry_points.state == 'on' or states.group.garage_doors.state != 'closed' -%}
|
- conditions: >
|
||||||
light.turn_on
|
{{ states.group.entry_points.state == 'on' or
|
||||||
entity_id:
|
states.group.garage_doors.state != 'closed' }}
|
||||||
- light.living_room_accents
|
sequence:
|
||||||
color_name: 'red'
|
- service: scene.turn_on
|
||||||
{% else %}
|
entity_id: scene.Red_living_Room
|
||||||
light.turn_on
|
default:
|
||||||
entity_id:
|
- service: scene.turn_on
|
||||||
- light.living_room_accents
|
entity_id: scene.tv_time
|
||||||
color_name: 'gold'
|
|
||||||
{% endif %}
|
|
||||||
|
# - choose:
|
||||||
|
# - conditions:
|
||||||
|
# - condition: template
|
||||||
|
# value_template: "{% states.group.entry_points.state == 'on' or states.group.garage_doors.state != 'closed' -%}"
|
||||||
|
# sequence:
|
||||||
|
# - service: light.turn_on
|
||||||
|
# entity_id: light.living_room_accents
|
||||||
|
# color_name: 'red'
|
||||||
|
#
|
||||||
|
# default:
|
||||||
|
# - service: light.turn_on
|
||||||
|
# entity_id: light.living_room_accents
|
||||||
|
# color_name: 'gold'
|
||||||
|
|
||||||
|
# - service_template: >-
|
||||||
|
# {% if states.group.entry_points.state == 'on' or states.group.garage_doors.state != 'closed' -%}
|
||||||
|
# light.turn_on
|
||||||
|
# entity_id:
|
||||||
|
# - light.living_room_accents
|
||||||
|
# color_name: 'red'
|
||||||
|
# {% else %}
|
||||||
|
# light.turn_on
|
||||||
|
# entity_id:
|
||||||
|
# - light.living_room_accents
|
||||||
|
# color_name: 'gold'
|
||||||
|
# {% endif %}
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------#---
|
#-------------------------------------------#---
|
||||||
- alias: "Panel Door opened"
|
- alias: "Panel Door opened"
|
||||||
|
@ -34,3 +34,40 @@
|
|||||||
transition: 400
|
transition: 400
|
||||||
rgb_color: [255,215,0] # Gold
|
rgb_color: [255,215,0] # Gold
|
||||||
brightness: 255
|
brightness: 255
|
||||||
|
|
||||||
|
- name: Red_living_Room
|
||||||
|
entities:
|
||||||
|
light.m1_front_left:
|
||||||
|
state: off
|
||||||
|
transition: 10
|
||||||
|
light.m1_front_right:
|
||||||
|
state: off
|
||||||
|
transition: 10
|
||||||
|
light.m1_slider:
|
||||||
|
state: off
|
||||||
|
transition: 10
|
||||||
|
light.m1_back_right:
|
||||||
|
state: on
|
||||||
|
transition: 10
|
||||||
|
rgb_color: [255,0,0] # RED
|
||||||
|
brightness: 30
|
||||||
|
light.m1_back_left:
|
||||||
|
state: on
|
||||||
|
transition: 40
|
||||||
|
rgb_color: [255,0,0] # RED
|
||||||
|
brightness: 30
|
||||||
|
light.tv_stand_light:
|
||||||
|
state: on
|
||||||
|
transition: 400
|
||||||
|
rgb_color: [255,0,0] # RED
|
||||||
|
brightness: 150
|
||||||
|
light.tv_light:
|
||||||
|
state: on
|
||||||
|
transition: 400
|
||||||
|
rgb_color: [255,0,0] # RED
|
||||||
|
brightness: 125
|
||||||
|
light.couch_1:
|
||||||
|
state: on
|
||||||
|
transition: 400
|
||||||
|
rgb_color: [255,0,0] # RED
|
||||||
|
brightness: 255
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 40 KiB |
Binary file not shown.
Before Width: | Height: | Size: 196 KiB After Width: | Height: | Size: 68 KiB |
Loading…
x
Reference in New Issue
Block a user