mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-17 01:52:58 +00:00
Standartize naming
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
- alias: Trigger Domestina Start
|
||||
- alias: Domestina - Automate Start
|
||||
trigger:
|
||||
platform: time
|
||||
at: "08:30:00"
|
||||
@@ -9,7 +9,7 @@
|
||||
- service: input_boolean.turn_on
|
||||
entity_id: input_boolean.domestina
|
||||
|
||||
- alias: On Domestina Start
|
||||
- alias: Domestina - Start
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: input_boolean.domestina
|
||||
@@ -23,7 +23,7 @@
|
||||
- automation.cube_knock
|
||||
- automation.cube_shake
|
||||
|
||||
- alias: Trigger Domestina End
|
||||
- alias: Domestina - Automate End
|
||||
trigger:
|
||||
platform: time
|
||||
at: "13:00:00"
|
||||
@@ -34,7 +34,7 @@
|
||||
- service: input_boolean.turn_off
|
||||
entity_id: input_boolean.domestina
|
||||
|
||||
- alias: On Domestina End
|
||||
- alias: Domestina - End
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: input_boolean.domestina
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
- id: enable_guest_mode
|
||||
alias: Enable Guest Mode
|
||||
alias: Guest Mode - Enable
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: input_boolean.guest_mode
|
||||
@@ -14,7 +14,7 @@
|
||||
entity_id: input_boolean.speech_notifications
|
||||
|
||||
- id: disable_guest_mode
|
||||
alias: Disable Guest Mode
|
||||
alias: Guest Mode - Disable
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: input_boolean.guest_mode
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
- id: cube_knock
|
||||
alias: Go to bed on Cube Knock
|
||||
alias: Magic Cube - Knock - Go to bed
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: sensor.cube_multistate_input
|
||||
@@ -9,7 +9,7 @@
|
||||
entity_id: input_boolean.sleep_mode
|
||||
|
||||
- id: cube_shake
|
||||
alias: Wake up on Cube Shake
|
||||
alias: Magic Cube - Shake - Wake up
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: sensor.cube_multistate_input
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
- id: leaving_home
|
||||
alias: Leaving home
|
||||
alias: Presence - Leaving home
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: person.georgi
|
||||
@@ -16,7 +16,7 @@
|
||||
entity_id: input_boolean.speech_notifications
|
||||
|
||||
- id: coming_home
|
||||
alias: Coming home
|
||||
alias: Presence - Coming Home
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: person.georgi
|
||||
@@ -28,7 +28,8 @@
|
||||
- service: input_boolean.turn_on
|
||||
entity_id: input_boolean.speech_notifications
|
||||
|
||||
- alias: Play welcome music when I come back
|
||||
- id: coming_home_welcome
|
||||
alias: Presence - Coming Home - Play welcome music
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: person.georgi
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
- id: enable_sleep_mode
|
||||
alias: Enable Sleep Mode
|
||||
alias: Sleep Mode - Enable
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: input_boolean.sleep_mode
|
||||
@@ -26,7 +26,7 @@
|
||||
message: "Entering sleep mode. Good night!"
|
||||
|
||||
- id: disable_sleep_mode
|
||||
alias: Disable Sleep Mode
|
||||
alias: Sleep Mode - Disable
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: input_boolean.sleep_mode
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Hack - the switch.camera initial state is wrong (ON) when the server starts.
|
||||
- id: hass_startup
|
||||
alias: "Hass startup"
|
||||
alias: System - Startup
|
||||
trigger:
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
security_camera_on:
|
||||
alias: Turn security camera on
|
||||
alias: Security Camera - Turn on
|
||||
sequence:
|
||||
- service: camera.turn_on
|
||||
entity_id: camera.amcrest_camera
|
||||
@@ -15,7 +15,7 @@ security_camera_on:
|
||||
entity_id: camera.amcrest_camera
|
||||
|
||||
security_camera_off:
|
||||
alias: Turn security camera off
|
||||
alias: Security Camera - Turn off
|
||||
sequence:
|
||||
- service: amcrest.goto_preset
|
||||
entity_id: camera.amcrest_camera
|
||||
|
||||
+31
-35
@@ -1,5 +1,26 @@
|
||||
# ─── PREDEFINED SPEECH ──────────────────────────────────────────────────────────
|
||||
|
||||
sarah_briefing:
|
||||
alias: Speech - Briefing
|
||||
sequence:
|
||||
- service: script.talk
|
||||
data_template:
|
||||
message: !include ../templates/briefing.yaml
|
||||
|
||||
# ─── Public Scripts ─────────────────────────────────────────────────────────────
|
||||
|
||||
talk:
|
||||
alias: Speech - Talk
|
||||
sequence:
|
||||
- condition: state
|
||||
entity_id: input_boolean.sleep_mode
|
||||
state: "off"
|
||||
- service: script.say_discretely
|
||||
data_template:
|
||||
message: "{{ message }}"
|
||||
|
||||
say_discretely:
|
||||
alias: Say discretely
|
||||
alias: Speech - Say discretely
|
||||
sequence:
|
||||
- service_template: >
|
||||
{% if is_state('media_player.master_bedroom', 'playing')
|
||||
@@ -12,8 +33,15 @@ say_discretely:
|
||||
data_template:
|
||||
message: "{{ message }}"
|
||||
|
||||
telegram_say:
|
||||
alias: Speech - Telegram say
|
||||
sequence:
|
||||
- service: notify.telegram
|
||||
data_template:
|
||||
message: "{{ message }}"
|
||||
|
||||
sonos_blast:
|
||||
alias: Sonos blast
|
||||
alias: Speech - Sonos blast
|
||||
sequence:
|
||||
- service: tts.amazon_polly_say
|
||||
data_template:
|
||||
@@ -21,7 +49,7 @@ sonos_blast:
|
||||
message: "{{ message }}"
|
||||
|
||||
sonos_say:
|
||||
alias: Sonos say
|
||||
alias: Speech - Sonos say
|
||||
sequence:
|
||||
- service: sonos.snapshot
|
||||
data_template:
|
||||
@@ -36,35 +64,3 @@ sonos_say:
|
||||
data_template:
|
||||
with_group: yes
|
||||
entity_id: media_player.master_bedroom
|
||||
|
||||
telegram_say:
|
||||
alias: Telegram say
|
||||
sequence:
|
||||
- service: notify.telegram
|
||||
data_template:
|
||||
message: "{{ message }}"
|
||||
|
||||
sarah_talk:
|
||||
alias: SARAH - Talk
|
||||
sequence:
|
||||
- condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.sleep_mode
|
||||
state: "off"
|
||||
- condition: time
|
||||
after: "08:00:00"
|
||||
before: "23:59:00"
|
||||
- condition: state
|
||||
entity_id: input_boolean.speech_notifications
|
||||
state: "on"
|
||||
- service: script.say_discretely
|
||||
data_template:
|
||||
message: "{{ message }}"
|
||||
|
||||
sarah_briefing:
|
||||
alias: Briefing
|
||||
sequence:
|
||||
- service: script.sarah_talk
|
||||
data_template:
|
||||
message: !include ../templates/briefing.yaml
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
sarah_restart:
|
||||
alias: Restart SARAH
|
||||
alias: System - Restart SARAH
|
||||
sequence:
|
||||
service: homeassistant.restart
|
||||
|
||||
Reference in New Issue
Block a user