mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-21 10:57:43 +00:00
Move config to a subfolder
This commit is contained in:
@@ -1,69 +0,0 @@
|
||||
input_boolean:
|
||||
domestina:
|
||||
name: Domestina time
|
||||
icon: mdi:broom
|
||||
|
||||
group:
|
||||
domestina_disabled_automations:
|
||||
- automation.presence_arrival_detection
|
||||
- automation.presence_coming_home
|
||||
- automation.routine_coming_home_left_work
|
||||
- automation.presence_leaving_home
|
||||
- automation.sleep_mode_enable
|
||||
- automation.sleep_mode_disable
|
||||
- automation.sleep_mode_toggle_on_bedside_switch_double_click
|
||||
- automation.music_play_pause_on_magic_cube_knock
|
||||
- automation.music_volume_down_on_magic_cube_rotate_left
|
||||
- automation.music_volume_up_on_magic_cube_rotate_right
|
||||
- automation.lighting_turn_on_all_lights_after_sunset
|
||||
- automation.lighting_turn_off_all_lights_after_sunrise
|
||||
- automation.lighting_living_room_turn_all_lights_on_on_magic_cube_flip_90
|
||||
- automation.lighting_living_room_turn_all_lights_off_on_magic_cube_flip_180
|
||||
- automation.routine_bedtime_toggle_on_bedside_switch_hold
|
||||
|
||||
automation:
|
||||
- alias: Domestina · Automate start
|
||||
trigger:
|
||||
platform: time
|
||||
at: "08:30:00"
|
||||
condition:
|
||||
- condition: time
|
||||
weekday: thu
|
||||
action:
|
||||
- service: input_boolean.turn_on
|
||||
entity_id: input_boolean.domestina
|
||||
|
||||
- alias: Domestina · Start
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: input_boolean.domestina
|
||||
from: "off"
|
||||
to: "on"
|
||||
action:
|
||||
- service: input_boolean.turn_on
|
||||
entity_id: input_boolean.guest_mode
|
||||
- service: automation.turn_off
|
||||
entity_id: group.domestina_disabled_automations
|
||||
|
||||
- alias: Domestina · Automate end
|
||||
trigger:
|
||||
platform: time
|
||||
at: "13:00:00"
|
||||
condition:
|
||||
- condition: time
|
||||
weekday: thu
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
entity_id: input_boolean.domestina
|
||||
|
||||
- alias: Domestina · End
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: input_boolean.domestina
|
||||
from: "on"
|
||||
to: "off"
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
entity_id: input_boolean.guest_mode
|
||||
- service: automation.turn_on
|
||||
entity_id: group.domestina_disabled_automations
|
||||
@@ -1,62 +0,0 @@
|
||||
input_boolean:
|
||||
guest_mode:
|
||||
name: Guest mode
|
||||
initial: off
|
||||
icon: mdi:human-greeting
|
||||
|
||||
automation:
|
||||
- alias: Guest mode · Enable
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: input_boolean.guest_mode
|
||||
from: "off"
|
||||
to: "on"
|
||||
action:
|
||||
- service: automation.turn_off
|
||||
entity_id:
|
||||
- automation.presence_leaving_home
|
||||
- automation.presence_coming_home
|
||||
- service: input_boolean.turn_off
|
||||
entity_id: input_boolean.speech_notifications
|
||||
|
||||
- alias: Guest mode · Disable
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: input_boolean.guest_mode
|
||||
from: "on"
|
||||
to: "off"
|
||||
action:
|
||||
- service: automation.turn_on
|
||||
entity_id:
|
||||
- automation.presence_leaving_home
|
||||
- automation.presence_coming_home
|
||||
- service: input_boolean.turn_on
|
||||
entity_id: input_boolean.speech_notifications
|
||||
|
||||
- alias: Guest mode · Enable · From Telegram
|
||||
trigger:
|
||||
platform: event
|
||||
event_type: telegram_command
|
||||
event_data:
|
||||
command: "/guest_mode_on"
|
||||
action:
|
||||
- service: input_boolean.turn_on
|
||||
entity_id: input_boolean.guest_mode
|
||||
- service: notify.telegram
|
||||
data:
|
||||
title: "⚙️ *System Module*"
|
||||
message: "Okay, turning Guest mode on!"
|
||||
|
||||
- alias: Guest mode · Disable · From Telegram
|
||||
trigger:
|
||||
platform: event
|
||||
event_type: telegram_command
|
||||
event_data:
|
||||
command: "/guest_mode_off"
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
entity_id: input_boolean.guest_mode
|
||||
- service: notify.telegram
|
||||
data:
|
||||
title: "⚙️ *System Module*"
|
||||
message: "Okay, turning Guest mode off!"
|
||||
@@ -1,40 +0,0 @@
|
||||
input_boolean:
|
||||
sleep_mode:
|
||||
name: Sleep mode
|
||||
initial: off
|
||||
icon: mdi:sleep
|
||||
|
||||
automation:
|
||||
- alias: Sleep mode · Enable
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: input_boolean.sleep_mode
|
||||
from: "off"
|
||||
to: "on"
|
||||
action:
|
||||
- service: script.routine_good_night
|
||||
|
||||
- alias: Sleep mode · Disable
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: input_boolean.sleep_mode
|
||||
from: "on"
|
||||
to: "off"
|
||||
action:
|
||||
- service: script.routine_waking_up
|
||||
|
||||
- alias: Sleep mode · Toggle on bedside switch double click
|
||||
trigger:
|
||||
- platform: event
|
||||
event_type: zha_event
|
||||
event_data:
|
||||
device_ieee: !secret master_bedroom_bedside_switch_ieee
|
||||
command: double
|
||||
action:
|
||||
- service_template: >-
|
||||
{% if now().strftime('%H')|int > 20 or now().strftime('%H')|int < 6 %}
|
||||
input_boolean.turn_on
|
||||
{% else %}
|
||||
input_boolean.turn_off
|
||||
{% endif %}
|
||||
entity_id: input_boolean.sleep_mode
|
||||
Reference in New Issue
Block a user