mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-06 18:08:45 +00:00
Add hallway browser
This commit is contained in:
@@ -69,10 +69,8 @@ cards:
|
|||||||
- automation.lighting_master_bedroom_toggle_lights_on_bedside_switch_single_click
|
- automation.lighting_master_bedroom_toggle_lights_on_bedside_switch_single_click
|
||||||
- automation.lighting_master_bedroom_toggle_ambient_lights_on_bedside_switch_double_click
|
- automation.lighting_master_bedroom_toggle_ambient_lights_on_bedside_switch_double_click
|
||||||
- type: divider
|
- type: divider
|
||||||
- automation.lighting_kitchen_day_mode_motion_turn_lights_on
|
- automation.lighting_kitchen_motion_on
|
||||||
- automation.lighting_kitchen_day_mode_motion_turn_lights_off
|
- automation.lighting_kitchen_motion_off
|
||||||
- automation.lighting_kitchen_night_mode_motion_turn_lights_on
|
|
||||||
- automation.lighting_kitchen_night_mode_motion_turn_lights_off
|
|
||||||
- type: divider
|
- type: divider
|
||||||
- automation.lighting_hallway_motion_on
|
- automation.lighting_hallway_motion_on
|
||||||
- automation.lighting_hallway_motion_off
|
- automation.lighting_hallway_motion_off
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ browser_mod:
|
|||||||
devices:
|
devices:
|
||||||
40b846ed-78c5016a:
|
40b846ed-78c5016a:
|
||||||
name: browser_kitchen
|
name: browser_kitchen
|
||||||
|
9c6af9cc-98bd8a5f:
|
||||||
|
name: browser_hallway
|
||||||
|
|
||||||
homeassistant:
|
homeassistant:
|
||||||
customize:
|
customize:
|
||||||
|
|||||||
@@ -4,8 +4,13 @@ automation:
|
|||||||
platform: state
|
platform: state
|
||||||
entity_id: binary_sensor.hallway_motion_occupancy
|
entity_id: binary_sensor.hallway_motion_occupancy
|
||||||
to: "on"
|
to: "on"
|
||||||
|
condition:
|
||||||
|
condition: state
|
||||||
|
entity_id: binary_sensor.georgi_home
|
||||||
|
state: "on"
|
||||||
action:
|
action:
|
||||||
- choose:
|
- choose:
|
||||||
|
# Day Mode
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_select.house_mode
|
entity_id: input_select.house_mode
|
||||||
@@ -14,13 +19,16 @@ automation:
|
|||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.hallway
|
entity_id: light.hallway
|
||||||
|
|
||||||
|
# Night Mode
|
||||||
default:
|
default:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.light_lohas_6
|
entity_id: light.light_lohas_6
|
||||||
data:
|
data:
|
||||||
brightness_pct: 30
|
brightness_pct: 30
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.light_le_8
|
entity_id:
|
||||||
|
- light.light_le_8
|
||||||
|
- light.browser_hallway
|
||||||
data:
|
data:
|
||||||
brightness_pct: 13
|
brightness_pct: 13
|
||||||
|
|
||||||
@@ -51,3 +59,4 @@ automation:
|
|||||||
entity_id:
|
entity_id:
|
||||||
- light.light_lohas_6
|
- light.light_lohas_6
|
||||||
- light.light_le_8
|
- light.light_le_8
|
||||||
|
- light.browser_hallway
|
||||||
|
|||||||
@@ -1,19 +1,21 @@
|
|||||||
automation:
|
automation:
|
||||||
- alias: Lighting · Kitchen · Day mode · Motion · Turn lights on
|
- alias: Lighting · Kitchen · Motion on
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: binary_sensor.kitchen_motion_occupancy
|
entity_id: binary_sensor.kitchen_motion_occupancy
|
||||||
to: "on"
|
to: "on"
|
||||||
condition:
|
condition:
|
||||||
condition: and
|
condition: state
|
||||||
conditions:
|
|
||||||
- condition: state
|
|
||||||
entity_id: binary_sensor.georgi_home
|
entity_id: binary_sensor.georgi_home
|
||||||
state: "on"
|
state: "on"
|
||||||
|
action:
|
||||||
|
- choose:
|
||||||
|
# Day Mode
|
||||||
|
- conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_select.house_mode
|
entity_id: input_select.house_mode
|
||||||
state: "day"
|
state: 'day'
|
||||||
action:
|
sequence:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.browser_kitchen
|
entity_id: light.browser_kitchen
|
||||||
data:
|
data:
|
||||||
@@ -31,7 +33,16 @@ automation:
|
|||||||
data:
|
data:
|
||||||
brightness_pct: 100
|
brightness_pct: 100
|
||||||
|
|
||||||
- alias: Lighting · Kitchen · Day mode · Motion · Turn lights off
|
# Night Mode
|
||||||
|
default:
|
||||||
|
- service: light.turn_on
|
||||||
|
entity_id:
|
||||||
|
- light.light_le_12
|
||||||
|
- light.browser_kitchen
|
||||||
|
data:
|
||||||
|
brightness_pct: 13 # this is the lowest LE will go ¯\_(ツ)_/¯
|
||||||
|
|
||||||
|
- alias: Lighting · Kitchen · Motion off
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: binary_sensor.kitchen_motion_occupancy
|
entity_id: binary_sensor.kitchen_motion_occupancy
|
||||||
@@ -40,59 +51,36 @@ automation:
|
|||||||
minutes: 30
|
minutes: 30
|
||||||
condition:
|
condition:
|
||||||
condition: state
|
condition: state
|
||||||
entity_id: input_select.house_mode
|
entity_id: binary_sensor.georgi_home
|
||||||
state: "day"
|
|
||||||
action:
|
|
||||||
- service: light.turn_off
|
|
||||||
entity_id: light.tuya_kitchen
|
|
||||||
- service: light.turn_on
|
|
||||||
entity_id: light.browser_kitchen
|
|
||||||
data:
|
|
||||||
brightness_pct: 5
|
|
||||||
|
|
||||||
- alias: Lighting · Kitchen · Night mode · Motion · Turn lights on
|
|
||||||
trigger:
|
|
||||||
platform: state
|
|
||||||
entity_id: binary_sensor.kitchen_motion_occupancy
|
|
||||||
to: "on"
|
|
||||||
condition:
|
|
||||||
- condition: not
|
|
||||||
conditions:
|
|
||||||
- condition: state
|
|
||||||
entity_id: input_select.house_mode
|
|
||||||
state: "day"
|
|
||||||
- condition: state
|
|
||||||
entity_id: input_boolean.georgi_home
|
|
||||||
state: "on"
|
state: "on"
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- choose:
|
||||||
entity_id:
|
# Day Mode
|
||||||
- light.light_le_12
|
- conditions:
|
||||||
- light.browser_kitchen
|
|
||||||
data:
|
|
||||||
brightness_pct: 13 # this is the lowest LE will go ¯\_(ツ)_/¯
|
|
||||||
|
|
||||||
- alias: Lighting · Kitchen · Night mode · Motion · Turn lights off
|
|
||||||
trigger:
|
|
||||||
platform: state
|
|
||||||
entity_id: binary_sensor.kitchen_motion_occupancy
|
|
||||||
to: "off"
|
|
||||||
for:
|
|
||||||
minutes: 5
|
|
||||||
condition:
|
|
||||||
condition: not
|
|
||||||
conditions:
|
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_select.house_mode
|
entity_id: input_select.house_mode
|
||||||
state: 'day'
|
state: 'day'
|
||||||
action:
|
sequence:
|
||||||
|
- service: light.turn_off
|
||||||
|
entity_id:
|
||||||
|
- light.tuya_kitchen
|
||||||
|
- light.browser_kitchen
|
||||||
|
# - service: light.turn_on
|
||||||
|
# entity_id: light.browser_kitchen
|
||||||
|
# data:
|
||||||
|
# brightness_pct: 5
|
||||||
|
|
||||||
|
# Night Mode
|
||||||
|
default:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.light_le_12
|
entity_id: light.light_le_12
|
||||||
data:
|
data:
|
||||||
brightness_pct: 100
|
brightness_pct: 100
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id: light.light_le_12
|
entity_id:
|
||||||
- service: light.turn_on
|
- light.light_le_12
|
||||||
entity_id: light.browser_kitchen
|
- light.browser_kitchen
|
||||||
data:
|
# - service: light.turn_on
|
||||||
brightness_pct: 5
|
# entity_id: light.browser_kitchen
|
||||||
|
# data:
|
||||||
|
# brightness_pct: 5
|
||||||
|
|||||||
@@ -40,7 +40,9 @@ script:
|
|||||||
- media_player.living_room_tv
|
- media_player.living_room_tv
|
||||||
- light.ceiling
|
- light.ceiling
|
||||||
- switch.titanium
|
- switch.titanium
|
||||||
- service: light.turn_on
|
- light.browser_kitchen
|
||||||
entity_id: light.browser_kitchen
|
- light.browser_hallway
|
||||||
data:
|
# - service: light.turn_on
|
||||||
brightness_pct: 1
|
# entity_id: light.browser_kitchen
|
||||||
|
# data:
|
||||||
|
# brightness_pct: 1
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ script:
|
|||||||
- light.hallway_entrance
|
- light.hallway_entrance
|
||||||
- light.bed_led
|
- light.bed_led
|
||||||
- light.browser_kitchen
|
- light.browser_kitchen
|
||||||
|
- light.browser_hallway
|
||||||
data:
|
data:
|
||||||
brightness_pct: 100
|
brightness_pct: 100
|
||||||
- service: script.security_camera_off
|
- service: script.security_camera_off
|
||||||
|
|||||||
@@ -27,8 +27,10 @@ script:
|
|||||||
- media_player.living_room_tv
|
- media_player.living_room_tv
|
||||||
- switch.titanium
|
- switch.titanium
|
||||||
- group.all_radiators
|
- group.all_radiators
|
||||||
|
- light.browser_kitchen
|
||||||
|
- light.browser_hallway
|
||||||
|
|
||||||
- service: light.turn_on
|
# - service: light.turn_on
|
||||||
entity_id: light.browser_kitchen
|
# entity_id: light.browser_kitchen
|
||||||
data:
|
# data:
|
||||||
brightness_pct: 1
|
# brightness_pct: 1
|
||||||
|
|||||||
@@ -13,10 +13,12 @@ script:
|
|||||||
- climate.toshiba_ac
|
- climate.toshiba_ac
|
||||||
- group.all_radiators
|
- group.all_radiators
|
||||||
- fan.philips_airpurifier
|
- fan.philips_airpurifier
|
||||||
|
- light.browser_kitchen
|
||||||
|
- light.browser_hallway
|
||||||
|
|
||||||
- service: media_player.media_stop
|
- service: media_player.media_stop
|
||||||
entity_id: group.all_sonos
|
entity_id: group.all_sonos
|
||||||
- service: light.turn_on
|
# - service: light.turn_on
|
||||||
entity_id: light.browser_kitchen
|
# entity_id: light.browser_kitchen
|
||||||
data:
|
# data:
|
||||||
brightness_pct: 1
|
# brightness_pct: 1
|
||||||
|
|||||||
Reference in New Issue
Block a user