Move config out of subfolder

This commit is contained in:
Georgi Gardev
2022-12-01 16:01:59 +02:00
parent addfa33f6f
commit 1ae0c6d0b8
221 changed files with 0 additions and 0 deletions
+75
View File
@@ -0,0 +1,75 @@
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.alarm_wake_up
- automation.lighting_living_room_toggle_ceiling_lights_on_desk_switch_single_click
- automation.lighting_living_room_toggle_ambient_lights_on_desk_switch_double_click
- automation.media_sonos_volume_up_on_bathroom_switch_click
- automation.music_living_room_play_pause_on_desk_switch_hold
- automation.music_master_bedroom_play_pause_on_switch_hold
- automation.notification_door_opened
- automation.bedroom_mode_set_to_night
- automation.bedroom_mode_set_to_bed
- automation.bedroom_mode_set_to_day
- automation.bedroom_mode_toggle_on_bedside_switch_hold
- automation.security_door_opened_while_away
- automation.purifier_turn_on_low_humidity
- automation.purifier_turn_on_low_air_quality
- automation.purifier_turn_off_okay_humidity
- automation.system_announce_start
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
+74
View File
@@ -0,0 +1,74 @@
input_boolean:
guest_mode:
name: Guest mode
icon: mdi:human-greeting
guest_bedroom:
name: Guest Bedroom
icon: mdi:cogs
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 · Telegram*"
message: "Okay, turning Guest mode on!"
- service: logbook.log
data:
name: "⚙️ System Module · "
message: "Telegram · Turning Guest mode on"
domain: input_boolean
- 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 · Telegram*"
message: "Okay, turning Guest mode off!"
- service: logbook.log
data:
name: "⚙️ System Module · "
message: "Telegram · Turning Guest mode off"
domain: input_boolean
+121
View File
@@ -0,0 +1,121 @@
# Mode config
input_select:
bedroom_mode:
name: Bedroom mode
options:
- day
- bed
- night
guest_bedroom_mode:
name: Guest Bedroom mode
options:
- day
- night
binary_sensor:
- platform: template
sensors:
bedroom_mode:
friendly_name: Bedroom mode
value_template: "{{ states('input_select.bedroom_mode') }}"
icon_template: >-
{% if is_state('input_select.bedroom_mode', 'day') %}
mdi:weather-sunny
{% elif is_state('input_select.bedroom_mode', 'bed') %}
mdi:bed-king-outline
{% else %}
mdi:weather-night
{% endif %}
someone_sleeping:
friendly_name: Someone sleeping
value_template: >-
{% if is_state('input_boolean.guest_bedroom', 'off') %}
{{ is_state('input_select.bedroom_mode', 'night') }}
{% else %}
{{ is_state('input_select.bedroom_mode', 'night') or is_state('input_select.guest_bedroom_mode', 'night') }}
{% endif %}
sensor:
- platform: template
sensors:
house_mode:
friendly_name: House mode
value_template: >-
{% if is_state('input_boolean.guest_bedroom', 'off') %}
{% if is_state('input_select.bedroom_mode', 'night') %}
night
{% else %}
day
{% endif %}
{% else %}
{% if (is_state('input_select.bedroom_mode', 'night') or is_state('input_select.bedroom_mode', 'bed'))
and is_state('input_select.guest_bedroom_mode', 'night') %}
night
{% else %}
day
{% endif %}
{% endif %}
script:
toggle_bedroom_mode:
alias: Toggle bedroom mode
sequence:
- service: input_select.select_option
entity_id: input_select.bedroom_mode
data_template:
option: "{{ is_state('input_select.bedroom_mode', 'day') | iif('night', 'day') }}"
automation:
- alias: Bedroom mode · Set to day
trigger:
platform: state
entity_id: input_select.bedroom_mode
to: "day"
action:
- service: script.routine_bedroom_morning
- alias: Bedroom mode · Set to bed
trigger:
platform: state
entity_id: input_select.bedroom_mode
to: "bed"
action:
- service: script.routine_bedroom_bedtime
- alias: Bedroom mode · Set to night
trigger:
platform: state
entity_id: input_select.bedroom_mode
to: "night"
action:
- service: script.bedroom_good_night
- alias: Guest Bedroom mode · Set to night
trigger:
platform: state
entity_id: input_select.guest_bedroom_mode
to: "night"
action:
- service: light.turn_off
entity_id: light.tradfri_large
- alias: House mode · Set to day
trigger:
platform: state
entity_id: sensor.house_mode
to: "day"
action:
- service: script.routine_waking_up
- alias: House mode · Set to night
trigger:
platform: state
entity_id: sensor.house_mode
to: "night"
action:
- service: script.routine_good_night
+93
View File
@@ -0,0 +1,93 @@
input_boolean:
simulation_mode:
name: Simulation mode
icon: mdi:robot
group:
simulation_automations:
name: Simulation automation
entities:
- automation.simulation_mode_0300
- automation.simulation_mode_1100
- automation.simulation_mode_1400
- automation.simulation_mode_1700
- automation.simulation_mode_2200
automation:
- alias: Simulation mode · Enable
trigger:
platform: state
entity_id: input_boolean.simulation_mode
to: "on"
action:
- service: script.say
data:
message: "Simulation mode - on"
- service: homeassistant.turn_on
entity_id: group.simulation_automations
- alias: Simulation mode · Disable
trigger:
platform: state
entity_id: input_boolean.simulation_mode
to: "off"
action:
- service: script.say
data:
message: "Simulation mode - off"
- service: homeassistant.turn_off
entity_id: group.simulation_automations
- alias: Simulation mode · 0300
trigger:
platform: time
at: "03:00:00"
action:
- service: light.turn_off
entity_id: light.all
- service: media_player.media_stop
entity_id:
- media_player.master_bedroom
- media_player.bathroom
- media_player.kitchen
- media_player.living_room
- alias: Simulation mode · 1100
trigger:
platform: time
at: "11:00:00"
action:
- service: script.music_play
- alias: Simulation mode · 1400
trigger:
platform: time
at: "14:00:00"
action:
- service: media_player.media_stop
entity_id:
- media_player.master_bedroom
- media_player.bathroom
- media_player.kitchen
- media_player.living_room
- alias: Simulation mode · 1700
trigger:
platform: time
at: "17:00:00"
action:
- service: light.turn_on
entity_id: light.all
- service: script.music_play
- alias: Simulation mode · 2200
trigger:
platform: time
at: "22:00:00"
action:
- service: media_player.media_stop
entity_id:
- media_player.master_bedroom
- media_player.bathroom
- media_player.kitchen
- media_player.living_room