Refactor browser_mod to use lights. Plug in routines

This commit is contained in:
2020-05-03 00:42:22 +03:00
parent 5917fb5607
commit 8001ec641d
7 changed files with 18 additions and 73 deletions

View File

@@ -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:

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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: