Move config out of subfolder

This commit is contained in:
Georgi Gardev
2022-12-01 16:01:59 +02:00
parent addfa33f6f
commit 1ae0c6d0b8
221 changed files with 0 additions and 0 deletions
@@ -0,0 +1,110 @@
script:
apply_bedroom_ambient_neon:
sequence:
- service: scene.turn_on
entity_id: scene.bedroom_ambient_neon
apply_bedroom_neon:
sequence:
- service: light.turn_on
entity_id: light.master_bedroom_main
- delay: "00:00:01"
- service: light.turn_on
entity_id: light.master_bedroom_main
data:
rgb_color: [255, 0, 63]
brightness: 153
- delay: "00:00:02"
- service: scene.turn_on
entity_id: scene.bedroom_ambient_neon
apply_bedroom_pink:
sequence:
- service: light.turn_on
entity_id: light.master_bedroom_main
- delay: "00:00:01"
- service: light.turn_on
entity_id: light.master_bedroom_main
data:
rgb_color: [255, 92, 38]
brightness: 120
- delay: "00:00:02"
- service: scene.turn_on
entity_id: scene.bedroom_ambient_pink
scene:
- name: Bedroom Neon
icon: "mdi:weather-night"
entities:
light.master_bedroom_main:
state: 'on'
xy_color: [0.66, 0.28]
brightness: 254
light.bedside:
state: "on"
rgb_color: [0, 255, 190]
brightness: 230
- name: Bedroom Ambient Neon
icon: "mdi:weather-night"
entities:
light.bedside:
state: "on"
rgb_color: [0, 255, 190]
brightness: 230
- name: Bedroom Pink
icon: "mdi:weather-night"
entities:
light.master_bedroom_main:
state: "on"
rgb_color: [255, 36, 145]
brightness: 114
light.bedside:
state: "on"
rgb_color: [255, 36, 145]
brightness: 230
- name: Bedroom Ambient Pink
icon: "mdi:weather-night"
entities:
light.bedside:
state: "on"
rgb_color: [255, 36, 145]
brightness: 230
- name: Bedroom Ambient Default
icon: "mdi:weather-sunny"
entities:
light.bedside:
state: "on"
color_temp: 359
brightness: 255
- name: Bedroom Default
icon: "mdi:weather-sunny"
entities:
light.master_bedroom_main:
state: "on"
brightness: 255
color_temp: 350
light.bedside:
state: "on"
color_temp: 359
brightness: 255
automation:
- alias: Lighting · Bedroom · Door open
trigger:
platform: state
entity_id: binary_sensor.bedroom_door
to: "on"
condition:
and:
- condition: sun
after: sunset
after_offset: "-02:00:00"
- condition: state
entity_id: input_select.bedroom_mode
state: 'day'
action:
- service: light.turn_on
entity_id: light.master_bedroom_main
@@ -0,0 +1,22 @@
script:
guest_bedroom_bedside_confirm:
sequence:
- service: scene.create
data:
scene_id: guest_bedroom_before_confirm
snapshot_entities:
- light.tradfri_large
- service: light.turn_on
entity_id: light.tradfri_large
data:
color_temp: 500
# rgb_color: [110, 255, 0]
- delay: 00:00:02
- service: light.turn_on
entity_id: light.tradfri_large
data_template:
color_temp: "{{ states('input_number.guest_bedroom_light_temp') }}"
- delay: 00:00:02
- service: scene.turn_on
entity_id: scene.guest_bedroom_before_confirm
- delay: 00:00:01
@@ -0,0 +1,59 @@
automation:
- alias: Lighting · Hallway · Motion On
trigger:
platform: state
entity_id: group.hallway_motion
to: "on"
condition:
condition: state
entity_id: binary_sensor.someone_home
state: "on"
action:
- choose:
# Turn on in Day Mode
- conditions:
- condition: state
entity_id: binary_sensor.someone_sleeping
state: "off"
sequence:
- service: light.turn_on
entity_id:
- light.hallway
- light.browser_hallway
data:
brightness_pct: 100
# Turn off in Night Mode
default:
- service: light.turn_on
entity_id:
- light.hue_white_1
- light.hue_1
data:
brightness_pct: 1
- service: script.browser_hallway_low
- alias: Lighting · Hallway · Motion Off
trigger:
platform: state
entity_id: group.hallway_motion
to: "off"
for: "00:01:00"
action:
- choose:
# Turn off in Day Mode
- conditions:
- condition: state
entity_id: binary_sensor.someone_sleeping
state: 'off'
sequence:
- service: light.turn_off
entity_id: light.hallway
- service: script.browser_hallway_low
# Turn off in Night Mode
default:
- service: light.turn_off
entity_id:
- light.hue_white_1
- light.hue_1
- light.hallway
- service: script.browser_hallway_low
@@ -0,0 +1,93 @@
automation:
- alias: Lighting · Kitchen · Motion on
trigger:
platform: state
entity_id: binary_sensor.kitchen_motion_occupancy
to: "on"
condition:
condition: state
entity_id: binary_sensor.someone_home
state: "on"
action:
- choose:
# Turn on in Day Mode
- conditions:
- condition: state
entity_id: sensor.house_mode
state: 'day'
sequence:
- service: light.turn_on
entity_id: light.browser_kitchen
data:
brightness_pct: 100
- or:
- or:
- condition: sun
after: sunset
after_offset: "-01:00:00"
- condition: sun
before: sunrise
- condition: numeric_state
entity_id: sensor.dark_sky_cloud_coverage
above: 80
- service: light.turn_on
entity_id:
- light.kitchen_main
- light.kitchen_secondary
data:
brightness_pct: 100
# Turn on in Night Mode
default:
- service: light.turn_on
entity_id:
- light.hue_ambiance_6
- light.hue_ambiance_1
data:
brightness_pct: 1
- service: script.browser_kitchen_low
- alias: Lighting · Kitchen · Night · Motion off
trigger:
platform: state
entity_id: binary_sensor.kitchen_motion_occupancy
to: "off"
for:
minutes: 5
condition:
condition: not
conditions:
- condition: state
entity_id: sensor.house_mode
state: 'day'
action:
# Turn off in Night Mode
- service: light.turn_on
entity_id:
- light.hue_ambiance_6
- light.hue_ambiance_1
data:
brightness_pct: 100
- service: light.turn_off
entity_id:
- light.hue_ambiance_6
- light.hue_ambiance_1
- light.kitchen_main
- light.kitchen_secondary
- service: script.browser_kitchen_low
- alias: Lighting · Kitchen · Day · Motion off
trigger:
platform: state
entity_id: binary_sensor.kitchen_motion_occupancy
to: "off"
for:
minutes: 15
condition:
condition: state
entity_id: sensor.house_mode
state: 'day'
action:
# Turn off in Day Mode
- service: light.turn_off
entity_id: light.kitchen
- service: script.browser_kitchen_low
@@ -0,0 +1,23 @@
scene:
- name: Living Room Ambient Neon
icon: "mdi:weather-night"
entities:
light.light_lohas_2:
state: "on"
xy_color: [0.668, 0.284]
brightness_pct: 80
light.living_room_ambient_main:
state: "on"
rgb_color: [0, 255, 190]
brightness_pct: 100
- name: Living Room Ambient Default
icon: "mdi:weather-sunny"
entities:
light.light_lohas_2:
state: "on"
color_temp: 500
brightness_pct: 100
light.living_room_ambient_main:
state: "on"
color_temp: 284
brightness_pct: 80