mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-04-29 06:48:16 +00:00
Refactor browser_mod to use lights. Plug in routines
This commit is contained in:
@@ -5,49 +5,6 @@ browser_mod:
|
||||
40b846ed-78c5016a:
|
||||
name: browser_kitchen
|
||||
|
||||
automation:
|
||||
- alias: Browser mod · Kitchen · Night brightness
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: input_select.house_mode
|
||||
to: "night"
|
||||
action:
|
||||
- service: browser_mod.no_blackout
|
||||
data:
|
||||
deviceID: "40b846ed-78c5016a"
|
||||
brightness: 1
|
||||
|
||||
- alias: Browser mod · Kitchen · Day brightness
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: input_select.house_mode
|
||||
from: "night"
|
||||
action:
|
||||
- service: browser_mod.no_blackout
|
||||
data:
|
||||
deviceID: "40b846ed-78c5016a"
|
||||
brightness: 255
|
||||
|
||||
- alias: Browser mod · Kitchen · Home
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: input_boolean.georgi_home
|
||||
to: "on"
|
||||
action:
|
||||
- service: browser_mod.no_blackout
|
||||
data:
|
||||
deviceID: "40b846ed-78c5016a"
|
||||
|
||||
- alias: Browser mod · Kitchen · Away
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: input_boolean.georgi_home
|
||||
to: "off"
|
||||
action:
|
||||
- service: browser_mod.blackout
|
||||
data:
|
||||
deviceID: "40b846ed-78c5016a"
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
binary_sensor.browser_kitchen:
|
||||
|
||||
@@ -34,11 +34,13 @@ script:
|
||||
- media_player.living_room
|
||||
- media_player.kitchen
|
||||
- media_player.bathroom
|
||||
- service: media_player.turn_off
|
||||
- service: homeassistant.turn_off
|
||||
entity_id:
|
||||
- media_player.nvidia_shield
|
||||
- media_player.living_room_tv
|
||||
- service: light.turn_off
|
||||
entity_id: light.ceiling_lights
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.titanium_power
|
||||
- light.ceiling_lights
|
||||
- switch.titanium_power
|
||||
- service: light.turn_on
|
||||
entity_id: light.browser_kitchen
|
||||
data:
|
||||
brightness_pct: 1
|
||||
|
||||
@@ -12,6 +12,7 @@ script:
|
||||
entity_id:
|
||||
- light.hallway_entrance_lights
|
||||
- light.bed_led
|
||||
- light.browser_kitchen
|
||||
data:
|
||||
brightness_pct: 100
|
||||
- service: script.security_camera_off
|
||||
|
||||
@@ -15,18 +15,18 @@ script:
|
||||
option: "Sleep Mode"
|
||||
- service: media_player.media_stop
|
||||
entity_id: group.all_sonos
|
||||
- service: light.turn_off
|
||||
entity_id: light.all_lights
|
||||
- service: media_player.turn_off
|
||||
- service: homeassistant.turn_off
|
||||
entity_id:
|
||||
- light.all_lights
|
||||
- media_player.nvidia_shield
|
||||
- media_player.living_room_tv
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.titanium_power
|
||||
- switch.titanium_power
|
||||
# Use say_discretely instead of talk, because night mode is already on.
|
||||
- service: script.say_discretely
|
||||
data:
|
||||
message: "Entering night mode. Good night!"
|
||||
|
||||
- service: light.turn_off
|
||||
entity_id: light.bed_led
|
||||
- service: light.turn_on
|
||||
entity_id: light.browser_kitchen
|
||||
data:
|
||||
brightness_pct: 1
|
||||
|
||||
@@ -12,6 +12,8 @@ script:
|
||||
- service: media_player.media_stop
|
||||
entity_id: group.all_sonos
|
||||
- service: light.turn_off
|
||||
entity_id: light.all_lights
|
||||
entity_id:
|
||||
- light.all_lights
|
||||
- light.browser_kitchen
|
||||
- service: fan.turn_off
|
||||
entity_id: fan.philips_airpurifier
|
||||
|
||||
@@ -25,7 +25,6 @@ script:
|
||||
data:
|
||||
message: "Here's some music to start the day!"
|
||||
- delay: 00:00:02
|
||||
- service: script.sonos_join_bedroom
|
||||
- service: script.music_play
|
||||
|
||||
routine_morning_briefing:
|
||||
|
||||
Reference in New Issue
Block a user