mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-04-25 04:48:17 +00:00
Refactor browser lights
This commit is contained in:
@@ -111,6 +111,8 @@
|
||||
- type: divider
|
||||
- automation.tv_plex_setup_house_for_plex
|
||||
- automation.tv_plex_restore_house_after_plex
|
||||
- light.browser_hallway
|
||||
- light.browser_kitchen
|
||||
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
|
||||
@@ -1,11 +1,27 @@
|
||||
# https://github.com/thomasloven/hass-browser_mod
|
||||
browser_mod:
|
||||
prefix: "browser_"
|
||||
devices:
|
||||
40b846ed-78c5016a:
|
||||
name: browser_kitchen
|
||||
9c6af9cc-98bd8a5f:
|
||||
name: browser_hallway
|
||||
|
||||
script:
|
||||
browser_hallway_low:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
entity_id:
|
||||
- light.browser_hallway
|
||||
data:
|
||||
brightness_pct: 10
|
||||
browser_kitchen_low:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
entity_id:
|
||||
- light.browser_kitchen
|
||||
data:
|
||||
brightness_pct: 1
|
||||
browsers_low:
|
||||
sequence:
|
||||
- service: script.browser_hallway_low
|
||||
- service: script.browser_kitchen_low
|
||||
|
||||
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
|
||||
@@ -28,9 +28,9 @@ automation:
|
||||
entity_id:
|
||||
- light.hue_white_1
|
||||
- light.hue_1
|
||||
- light.browser_hallway
|
||||
data:
|
||||
brightness_pct: 1
|
||||
- service: script.browser_hallway_low
|
||||
|
||||
- alias: Lighting · Hallway · Motion Off
|
||||
trigger:
|
||||
@@ -48,10 +48,7 @@ automation:
|
||||
sequence:
|
||||
- service: light.turn_off
|
||||
entity_id: light.hallway
|
||||
- service: light.turn_on
|
||||
entity_id: light.browser_hallway
|
||||
data:
|
||||
brightness_pct: 1
|
||||
- service: script.browser_hallway_low
|
||||
# Turn off in Night Mode
|
||||
default:
|
||||
- service: light.turn_off
|
||||
@@ -59,7 +56,4 @@ automation:
|
||||
- light.hue_white_1
|
||||
- light.hue_1
|
||||
- light.hallway
|
||||
- service: light.turn_on
|
||||
entity_id: light.browser_hallway
|
||||
data:
|
||||
brightness_pct: 1
|
||||
- service: script.browser_hallway_low
|
||||
|
||||
@@ -42,9 +42,9 @@ automation:
|
||||
entity_id:
|
||||
- light.hue_ambiance_6
|
||||
- light.hue_ambiance_1
|
||||
- light.browser_kitchen
|
||||
data:
|
||||
brightness_pct: 1
|
||||
- service: script.browser_kitchen_low
|
||||
|
||||
- alias: Lighting · Kitchen · Night · Motion off
|
||||
trigger:
|
||||
@@ -73,10 +73,7 @@ automation:
|
||||
- light.hue_ambiance_1
|
||||
- light.kitchen_main
|
||||
- light.kitchen_secondary
|
||||
- service: light.turn_on
|
||||
entity_id: light.browser_kitchen
|
||||
data:
|
||||
brightness_pct: 1
|
||||
- service: script.browser_kitchen_low
|
||||
|
||||
- alias: Lighting · Kitchen · Day · Motion off
|
||||
trigger:
|
||||
@@ -93,7 +90,4 @@ automation:
|
||||
# Turn off in Day Mode
|
||||
- service: light.turn_off
|
||||
entity_id: light.kitchen
|
||||
- service: light.turn_on
|
||||
entity_id: light.browser_kitchen
|
||||
data:
|
||||
brightness_pct: 1
|
||||
- service: script.browser_kitchen_low
|
||||
|
||||
@@ -46,12 +46,7 @@ script:
|
||||
- switch.cadmium
|
||||
- group.all_radiators
|
||||
|
||||
- service: light.turn_on
|
||||
entity_id:
|
||||
- light.browser_kitchen
|
||||
- light.browser_hallway
|
||||
data:
|
||||
brightness_pct: 1
|
||||
- service: script.browsers_low
|
||||
|
||||
- service: cover.close_cover
|
||||
entity_id: cover.living_room
|
||||
|
||||
@@ -19,12 +19,8 @@ script:
|
||||
- media_player.kitchen
|
||||
- media_player.living_room
|
||||
|
||||
- service: light.turn_on
|
||||
entity_id:
|
||||
- light.browser_hallway
|
||||
- light.browser_kitchen
|
||||
data:
|
||||
brightness_pct: 1
|
||||
- service: script.browsers_low
|
||||
|
||||
- service: input_select.select_option
|
||||
entity_id: input_select.hallway_dashboard_mode
|
||||
data:
|
||||
|
||||
Reference in New Issue
Block a user