mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-05 08:44:24 +00:00
Refactor browser_mod to use lights. Plug in routines
This commit is contained in:
@@ -222,22 +222,6 @@ cards:
|
|||||||
- automation.magic_cube_music_volume_down_on_rotate_left
|
- automation.magic_cube_music_volume_down_on_rotate_left
|
||||||
- automation.magic_cube_music_volume_up_on_rotate_right
|
- automation.magic_cube_music_volume_up_on_rotate_right
|
||||||
|
|
||||||
- type: divider
|
|
||||||
|
|
||||||
# Browser mod
|
|
||||||
- type: custom:fold-entity-row
|
|
||||||
head:
|
|
||||||
type: custom:dummy-entity-row
|
|
||||||
entity: sun.sun
|
|
||||||
icon: mdi:google-chrome
|
|
||||||
name: Browser mod
|
|
||||||
tap_action: none
|
|
||||||
entities:
|
|
||||||
- automation.browser_mod_kitchen_night_brightness
|
|
||||||
- automation.browser_mod_kitchen_day_brightness
|
|
||||||
- automation.browser_mod_kitchen_home
|
|
||||||
- automation.browser_mod_kitchen_away
|
|
||||||
|
|
||||||
- type: entities
|
- type: entities
|
||||||
title: Batteries
|
title: Batteries
|
||||||
show_header_toggle: false
|
show_header_toggle: false
|
||||||
|
|||||||
@@ -5,49 +5,6 @@ browser_mod:
|
|||||||
40b846ed-78c5016a:
|
40b846ed-78c5016a:
|
||||||
name: browser_kitchen
|
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:
|
homeassistant:
|
||||||
customize:
|
customize:
|
||||||
binary_sensor.browser_kitchen:
|
binary_sensor.browser_kitchen:
|
||||||
|
|||||||
@@ -34,11 +34,13 @@ script:
|
|||||||
- media_player.living_room
|
- media_player.living_room
|
||||||
- media_player.kitchen
|
- media_player.kitchen
|
||||||
- media_player.bathroom
|
- media_player.bathroom
|
||||||
- service: media_player.turn_off
|
- service: homeassistant.turn_off
|
||||||
entity_id:
|
entity_id:
|
||||||
- media_player.nvidia_shield
|
- media_player.nvidia_shield
|
||||||
- media_player.living_room_tv
|
- media_player.living_room_tv
|
||||||
- service: light.turn_off
|
- light.ceiling_lights
|
||||||
entity_id: light.ceiling_lights
|
- switch.titanium_power
|
||||||
- service: switch.turn_off
|
- service: light.turn_on
|
||||||
entity_id: switch.titanium_power
|
entity_id: light.browser_kitchen
|
||||||
|
data:
|
||||||
|
brightness_pct: 1
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ script:
|
|||||||
entity_id:
|
entity_id:
|
||||||
- light.hallway_entrance_lights
|
- light.hallway_entrance_lights
|
||||||
- light.bed_led
|
- light.bed_led
|
||||||
|
- light.browser_kitchen
|
||||||
data:
|
data:
|
||||||
brightness_pct: 100
|
brightness_pct: 100
|
||||||
- service: script.security_camera_off
|
- service: script.security_camera_off
|
||||||
|
|||||||
@@ -15,18 +15,18 @@ script:
|
|||||||
option: "Sleep Mode"
|
option: "Sleep Mode"
|
||||||
- service: media_player.media_stop
|
- service: media_player.media_stop
|
||||||
entity_id: group.all_sonos
|
entity_id: group.all_sonos
|
||||||
- service: light.turn_off
|
- service: homeassistant.turn_off
|
||||||
entity_id: light.all_lights
|
|
||||||
- service: media_player.turn_off
|
|
||||||
entity_id:
|
entity_id:
|
||||||
|
- light.all_lights
|
||||||
- media_player.nvidia_shield
|
- media_player.nvidia_shield
|
||||||
- media_player.living_room_tv
|
- media_player.living_room_tv
|
||||||
- service: switch.turn_off
|
- switch.titanium_power
|
||||||
entity_id: switch.titanium_power
|
|
||||||
# Use say_discretely instead of talk, because night mode is already on.
|
# Use say_discretely instead of talk, because night mode is already on.
|
||||||
- service: script.say_discretely
|
- service: script.say_discretely
|
||||||
data:
|
data:
|
||||||
message: "Entering night mode. Good night!"
|
message: "Entering night mode. Good night!"
|
||||||
|
|
||||||
- service: light.turn_off
|
- service: light.turn_on
|
||||||
entity_id: light.bed_led
|
entity_id: light.browser_kitchen
|
||||||
|
data:
|
||||||
|
brightness_pct: 1
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ script:
|
|||||||
- service: media_player.media_stop
|
- service: media_player.media_stop
|
||||||
entity_id: group.all_sonos
|
entity_id: group.all_sonos
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id: light.all_lights
|
entity_id:
|
||||||
|
- light.all_lights
|
||||||
|
- light.browser_kitchen
|
||||||
- service: fan.turn_off
|
- service: fan.turn_off
|
||||||
entity_id: fan.philips_airpurifier
|
entity_id: fan.philips_airpurifier
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ script:
|
|||||||
data:
|
data:
|
||||||
message: "Here's some music to start the day!"
|
message: "Here's some music to start the day!"
|
||||||
- delay: 00:00:02
|
- delay: 00:00:02
|
||||||
- service: script.sonos_join_bedroom
|
|
||||||
- service: script.music_play
|
- service: script.music_play
|
||||||
|
|
||||||
routine_morning_briefing:
|
routine_morning_briefing:
|
||||||
|
|||||||
Reference in New Issue
Block a user