mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-15 12:34:42 +00:00
Rename house mode to bedroom mode
This commit is contained in:
@@ -17,7 +17,7 @@ trigger:
|
|||||||
|
|
||||||
condition:
|
condition:
|
||||||
condition: state
|
condition: state
|
||||||
entity_id: input_select.house_mode
|
entity_id: input_select.bedroom_mode
|
||||||
state: "day"
|
state: "day"
|
||||||
|
|
||||||
action:
|
action:
|
||||||
|
|||||||
@@ -129,13 +129,13 @@ cards:
|
|||||||
- automation.notification_door_opened
|
- automation.notification_door_opened
|
||||||
|
|
||||||
- type: entities
|
- type: entities
|
||||||
title: House Mode
|
title: Bedroom Mode
|
||||||
show_header_toggle: false
|
show_header_toggle: false
|
||||||
entities:
|
entities:
|
||||||
- automation.house_mode_set_to_day
|
- automation.bedroom_mode_set_to_day
|
||||||
- automation.house_mode_set_to_bed
|
- automation.bedroom_mode_set_to_bed
|
||||||
- automation.house_mode_set_to_night
|
- automation.bedroom_mode_set_to_night
|
||||||
- automation.house_mode_set_to_day_if_bedroom_door_was_opened
|
- automation.bedroom_mode_set_to_day_if_bedroom_door_was_opened
|
||||||
|
|
||||||
- type: entities
|
- type: entities
|
||||||
title: Guest mode
|
title: Guest mode
|
||||||
|
|||||||
@@ -47,13 +47,13 @@
|
|||||||
name: Speech
|
name: Speech
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: v3_button
|
template: v3_button
|
||||||
entity: input_select.house_mode
|
entity: input_select.bedroom_mode
|
||||||
name: House
|
name: Bedroom
|
||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: input_select.select_next
|
service: input_select.select_next
|
||||||
service_data:
|
service_data:
|
||||||
entity_id: input_select.house_mode
|
entity_id: input_select.bedroom_mode
|
||||||
|
|
||||||
- type: horizontal-stack
|
- type: horizontal-stack
|
||||||
cards:
|
cards:
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
binary_sensor.house_mode:
|
binary_sensor.bedroom_mode:
|
||||||
title: House mode
|
title: Bedroom mode
|
||||||
card:
|
card:
|
||||||
type: entities
|
type: entities
|
||||||
entities:
|
entities:
|
||||||
- input_select.house_mode
|
- input_select.bedroom_mode
|
||||||
|
|
||||||
binary_sensor.kitchen_motion_occupancy:
|
binary_sensor.kitchen_motion_occupancy:
|
||||||
title: Kitchen motion
|
title: Kitchen motion
|
||||||
|
|||||||
@@ -37,11 +37,11 @@ automation:
|
|||||||
data_template:
|
data_template:
|
||||||
entity_id: light.master_bedroom
|
entity_id: light.master_bedroom
|
||||||
brightness_pct: >-
|
brightness_pct: >-
|
||||||
{% if not is_state('input_select.house_mode', 'day') %} 40 {% else %} 100 {% endif %}
|
{% if not is_state('input_select.bedroom_mode', 'day') %} 40 {% else %} 100 {% endif %}
|
||||||
- service: script.bed_led_on
|
- service: script.bed_led_on
|
||||||
data_template:
|
data_template:
|
||||||
brightness_pct: >-
|
brightness_pct: >-
|
||||||
{% if not is_state('input_select.house_mode', 'day') %} 40 {% else %} 100 {% endif %}
|
{% if not is_state('input_select.bedroom_mode', 'day') %} 40 {% else %} 100 {% endif %}
|
||||||
|
|
||||||
button_1_double:
|
button_1_double:
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
@@ -53,7 +53,7 @@ automation:
|
|||||||
entity_id: light.master_bedroom_main
|
entity_id: light.master_bedroom_main
|
||||||
brightness_pct: >-
|
brightness_pct: >-
|
||||||
|
|
||||||
{% if not is_state('input_select.house_mode', 'day') %}
|
{% if not is_state('input_select.bedroom_mode', 'day') %}
|
||||||
40
|
40
|
||||||
{% else %}
|
{% else %}
|
||||||
100
|
100
|
||||||
@@ -72,7 +72,7 @@ automation:
|
|||||||
- light.bedside
|
- light.bedside
|
||||||
brightness_pct: >-
|
brightness_pct: >-
|
||||||
|
|
||||||
{% if not is_state('input_select.house_mode', 'day') %}
|
{% if not is_state('input_select.bedroom_mode', 'day') %}
|
||||||
40
|
40
|
||||||
{% else %}
|
{% else %}
|
||||||
100
|
100
|
||||||
|
|||||||
@@ -24,19 +24,19 @@ automation:
|
|||||||
- service: script.bed_led_toggle
|
- service: script.bed_led_toggle
|
||||||
data_template:
|
data_template:
|
||||||
brightness_pct: >-
|
brightness_pct: >-
|
||||||
{% if is_state('input_select.house_mode', 'night') %} 40 {% else %} 100 {% endif %}
|
{% if is_state('input_select.bedroom_mode', 'night') %} 40 {% else %} 100 {% endif %}
|
||||||
|
|
||||||
- service: light.toggle
|
- service: light.toggle
|
||||||
data_template:
|
data_template:
|
||||||
entity_id: >-
|
entity_id: >-
|
||||||
|
|
||||||
{% if is_state('input_select.house_mode', 'day') %}
|
{% if is_state('input_select.bedroom_mode', 'day') %}
|
||||||
light.master_bedroom_main
|
light.master_bedroom_main
|
||||||
{% elif is_state('input_select.house_mode', 'bed') %}
|
{% elif is_state('input_select.bedroom_mode', 'bed') %}
|
||||||
light.bedside
|
light.bedside
|
||||||
{% endif %}
|
{% endif %}
|
||||||
brightness_pct: >-
|
brightness_pct: >-
|
||||||
{% if is_state('input_select.house_mode', 'night') %} 40 {% else %} 100 {% endif %}
|
{% if is_state('input_select.bedroom_mode', 'night') %} 40 {% else %} 100 {% endif %}
|
||||||
|
|
||||||
double_click:
|
double_click:
|
||||||
- service: light.toggle
|
- service: light.toggle
|
||||||
@@ -46,8 +46,8 @@ automation:
|
|||||||
- service: script.bed_led_toggle
|
- service: script.bed_led_toggle
|
||||||
data_template:
|
data_template:
|
||||||
brightness_pct: >-
|
brightness_pct: >-
|
||||||
{% if is_state('input_select.house_mode', 'night') %} 40 {% else %} 100 {% endif %}
|
{% if is_state('input_select.bedroom_mode', 'night') %} 40 {% else %} 100 {% endif %}
|
||||||
|
|
||||||
hold:
|
hold:
|
||||||
- service: input_select.select_next
|
- service: input_select.select_next
|
||||||
entity_id: input_select.house_mode
|
entity_id: input_select.bedroom_mode
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ automation:
|
|||||||
entity_id: light.living_room_main
|
entity_id: light.living_room_main
|
||||||
brightness_pct: >-
|
brightness_pct: >-
|
||||||
|
|
||||||
{% if is_state('input_select.house_mode', 'night') %}
|
{% if is_state('input_select.bedroom_mode', 'night') %}
|
||||||
40
|
40
|
||||||
{% else %}
|
{% else %}
|
||||||
100
|
100
|
||||||
@@ -39,7 +39,7 @@ automation:
|
|||||||
entity_id: light.living_room_ambient
|
entity_id: light.living_room_ambient
|
||||||
brightness_pct: >-
|
brightness_pct: >-
|
||||||
|
|
||||||
{% if is_state('input_select.house_mode', 'night') %}
|
{% if is_state('input_select.bedroom_mode', 'night') %}
|
||||||
40
|
40
|
||||||
{% else %}
|
{% else %}
|
||||||
100
|
100
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ automation:
|
|||||||
to: "off"
|
to: "off"
|
||||||
condition:
|
condition:
|
||||||
condition: state
|
condition: state
|
||||||
entity_id: input_select.house_mode
|
entity_id: input_select.bedroom_mode
|
||||||
state: "day"
|
state: "day"
|
||||||
action:
|
action:
|
||||||
- service: script.sonos_join_bedroom
|
- service: script.sonos_join_bedroom
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Mode config
|
# Mode config
|
||||||
input_select:
|
input_select:
|
||||||
house_mode:
|
bedroom_mode:
|
||||||
name: House mode
|
name: Bedroom mode
|
||||||
icon: mdi:home-analytics
|
icon: mdi:home-analytics
|
||||||
options:
|
options:
|
||||||
- day
|
- day
|
||||||
@@ -11,14 +11,14 @@ input_select:
|
|||||||
binary_sensor:
|
binary_sensor:
|
||||||
- platform: template
|
- platform: template
|
||||||
sensors:
|
sensors:
|
||||||
house_mode:
|
bedroom_mode:
|
||||||
friendly_name: House mode
|
friendly_name: Bedroom mode
|
||||||
value_template: "{{ states('input_select.house_mode') }}"
|
value_template: "{{ states('input_select.bedroom_mode') }}"
|
||||||
icon_template: >-
|
icon_template: >-
|
||||||
|
|
||||||
{% if is_state('input_select.house_mode', 'day') %}
|
{% if is_state('input_select.bedroom_mode', 'day') %}
|
||||||
mdi:weather-sunny
|
mdi:weather-sunny
|
||||||
{% elif is_state('input_select.house_mode', 'bed') %}
|
{% elif is_state('input_select.bedroom_mode', 'bed') %}
|
||||||
mdi:bed-king-outline
|
mdi:bed-king-outline
|
||||||
{% else %}
|
{% else %}
|
||||||
mdi:weather-night
|
mdi:weather-night
|
||||||
@@ -26,31 +26,31 @@ binary_sensor:
|
|||||||
|
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
- alias: House mode · Set to day
|
- alias: Bedroom mode · Set to day
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: input_select.house_mode
|
entity_id: input_select.bedroom_mode
|
||||||
to: "day"
|
to: "day"
|
||||||
action:
|
action:
|
||||||
- service: script.routine_waking_up
|
- service: script.routine_waking_up
|
||||||
|
|
||||||
- alias: House mode · Set to bed
|
- alias: Bedroom mode · Set to bed
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: input_select.house_mode
|
entity_id: input_select.bedroom_mode
|
||||||
to: "bed"
|
to: "bed"
|
||||||
action:
|
action:
|
||||||
- service: script.routine_bedtime
|
- service: script.routine_bedtime
|
||||||
|
|
||||||
- alias: House mode · Set to night
|
- alias: Bedroom mode · Set to night
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: input_select.house_mode
|
entity_id: input_select.bedroom_mode
|
||||||
to: "night"
|
to: "night"
|
||||||
action:
|
action:
|
||||||
- service: script.routine_good_night
|
- service: script.routine_good_night
|
||||||
|
|
||||||
- alias: House mode · Set to day if bedroom door was opened
|
- alias: Bedroom mode · Set to day if bedroom door was opened
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.bedroom_door
|
entity_id: binary_sensor.bedroom_door
|
||||||
@@ -63,13 +63,13 @@ automation:
|
|||||||
- condition: not
|
- condition: not
|
||||||
conditions:
|
conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_select.house_mode
|
entity_id: input_select.bedroom_mode
|
||||||
state: "day"
|
state: "day"
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.georgi_home
|
entity_id: input_boolean.georgi_home
|
||||||
state: "on"
|
state: "on"
|
||||||
action:
|
action:
|
||||||
- service: input_select.select_option
|
- service: input_select.select_option
|
||||||
entity_id: input_select.house_mode
|
entity_id: input_select.bedroom_mode
|
||||||
data:
|
data:
|
||||||
option: "day"
|
option: "day"
|
||||||
@@ -17,10 +17,10 @@ group:
|
|||||||
- automation.music_living_room_play_pause_on_desk_switch_hold
|
- automation.music_living_room_play_pause_on_desk_switch_hold
|
||||||
- automation.music_master_bedroom_play_pause_on_switch_hold
|
- automation.music_master_bedroom_play_pause_on_switch_hold
|
||||||
- automation.notification_door_opened
|
- automation.notification_door_opened
|
||||||
- automation.house_mode_set_to_night
|
- automation.bedroom_mode_set_to_night
|
||||||
- automation.house_mode_set_to_bed
|
- automation.bedroom_mode_set_to_bed
|
||||||
- automation.house_mode_set_to_day
|
- automation.bedroom_mode_set_to_day
|
||||||
- automation.house_mode_toggle_on_bedside_switch_hold
|
- automation.bedroom_mode_toggle_on_bedside_switch_hold
|
||||||
- automation.security_door_opened_while_away
|
- automation.security_door_opened_while_away
|
||||||
- automation.purifier_turn_on_low_humidity
|
- automation.purifier_turn_on_low_humidity
|
||||||
- automation.purifier_turn_on_low_air_quality
|
- automation.purifier_turn_on_low_air_quality
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ automation:
|
|||||||
entity_id: input_boolean.alarm_enabled
|
entity_id: input_boolean.alarm_enabled
|
||||||
state: "on"
|
state: "on"
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_select.house_mode
|
entity_id: input_select.bedroom_mode
|
||||||
state: "night"
|
state: "night"
|
||||||
action:
|
action:
|
||||||
- service: script.music_play
|
- service: script.music_play
|
||||||
@@ -31,7 +31,7 @@ automation:
|
|||||||
|
|
||||||
- delay: 00:01:00
|
- delay: 00:01:00
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_select.house_mode
|
entity_id: input_select.bedroom_mode
|
||||||
state: "night"
|
state: "night"
|
||||||
- service: script.sonos_say
|
- service: script.sonos_say
|
||||||
data:
|
data:
|
||||||
@@ -45,7 +45,7 @@ automation:
|
|||||||
|
|
||||||
- delay: 00:02:00
|
- delay: 00:02:00
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_select.house_mode
|
entity_id: input_select.bedroom_mode
|
||||||
state: "night"
|
state: "night"
|
||||||
- service: script.sonos_say
|
- service: script.sonos_say
|
||||||
data:
|
data:
|
||||||
@@ -59,7 +59,7 @@ automation:
|
|||||||
|
|
||||||
- delay: 00:05:00
|
- delay: 00:05:00
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_select.house_mode
|
entity_id: input_select.bedroom_mode
|
||||||
state: "night"
|
state: "night"
|
||||||
- service: script.sonos_say
|
- service: script.sonos_say
|
||||||
data:
|
data:
|
||||||
@@ -74,7 +74,7 @@ automation:
|
|||||||
- alias: Alarm · Set time
|
- alias: Alarm · Set time
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: input_select.house_mode
|
entity_id: input_select.bedroom_mode
|
||||||
to: "day"
|
to: "day"
|
||||||
action:
|
action:
|
||||||
- service: input_datetime.set_datetime
|
- service: input_datetime.set_datetime
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ automation:
|
|||||||
title: "📱 *iOS Module*"
|
title: "📱 *iOS Module*"
|
||||||
message: "iOS alarm is off. Switching to Day Mode!"
|
message: "iOS alarm is off. Switching to Day Mode!"
|
||||||
- service: input_select.select_option
|
- service: input_select.select_option
|
||||||
entity_id: input_select.house_mode
|
entity_id: input_select.bedroom_mode
|
||||||
data:
|
data:
|
||||||
option: "day"
|
option: "day"
|
||||||
|
|
||||||
@@ -27,7 +27,7 @@ automation:
|
|||||||
title: "📱 *iOS Module*"
|
title: "📱 *iOS Module*"
|
||||||
message: "iOS wind_down is on. Switching to Bed Mode!"
|
message: "iOS wind_down is on. Switching to Bed Mode!"
|
||||||
- service: input_select.select_option
|
- service: input_select.select_option
|
||||||
entity_id: input_select.house_mode
|
entity_id: input_select.bedroom_mode
|
||||||
data:
|
data:
|
||||||
option: "bed"
|
option: "bed"
|
||||||
|
|
||||||
@@ -40,7 +40,6 @@ automation:
|
|||||||
title: "📱 *iOS Module*"
|
title: "📱 *iOS Module*"
|
||||||
message: "iOS bedtime is on. Switching to Night Mode!"
|
message: "iOS bedtime is on. Switching to Night Mode!"
|
||||||
- service: input_select.select_option
|
- service: input_select.select_option
|
||||||
entity_id: input_select.house_mode
|
entity_id: input_select.bedroom_mode
|
||||||
data:
|
data:
|
||||||
option: "night"
|
option: "night"
|
||||||
|
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ automation:
|
|||||||
after: sunset
|
after: sunset
|
||||||
after_offset: "-02:00:00"
|
after_offset: "-02:00:00"
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_select.house_mode
|
entity_id: input_select.bedroom_mode
|
||||||
state: 'day'
|
state: 'day'
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ automation:
|
|||||||
# Turn on in Day Mode
|
# Turn on in Day Mode
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_select.house_mode
|
entity_id: input_select.bedroom_mode
|
||||||
state: 'day'
|
state: 'day'
|
||||||
sequence:
|
sequence:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
@@ -42,7 +42,7 @@ automation:
|
|||||||
# Turn off in Day Mode
|
# Turn off in Day Mode
|
||||||
- conditions:
|
- conditions:
|
||||||
condition: state
|
condition: state
|
||||||
entity_id: input_select.house_mode
|
entity_id: input_select.bedroom_mode
|
||||||
state: 'day'
|
state: 'day'
|
||||||
sequence:
|
sequence:
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ automation:
|
|||||||
# Turn on in Day Mode
|
# Turn on in Day Mode
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_select.house_mode
|
entity_id: input_select.bedroom_mode
|
||||||
state: 'day'
|
state: 'day'
|
||||||
sequence:
|
sequence:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
@@ -57,7 +57,7 @@ automation:
|
|||||||
condition: not
|
condition: not
|
||||||
conditions:
|
conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_select.house_mode
|
entity_id: input_select.bedroom_mode
|
||||||
state: 'day'
|
state: 'day'
|
||||||
action:
|
action:
|
||||||
# Turn off in Night Mode
|
# Turn off in Night Mode
|
||||||
@@ -85,7 +85,7 @@ automation:
|
|||||||
minutes: 15
|
minutes: 15
|
||||||
condition:
|
condition:
|
||||||
condition: state
|
condition: state
|
||||||
entity_id: input_select.house_mode
|
entity_id: input_select.bedroom_mode
|
||||||
state: 'day'
|
state: 'day'
|
||||||
action:
|
action:
|
||||||
# Turn off in Day Mode
|
# Turn off in Day Mode
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ script:
|
|||||||
- condition: not
|
- condition: not
|
||||||
conditions:
|
conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_select.house_mode
|
entity_id: input_select.bedroom_mode
|
||||||
state: 'night'
|
state: 'night'
|
||||||
# Combine partials for speech message.
|
# Combine partials for speech message.
|
||||||
- service: script.say_discretely
|
- service: script.say_discretely
|
||||||
|
|||||||
Reference in New Issue
Block a user