diff --git a/automation/domestina.yaml b/automation/domestina.yaml index d66cb83..a81ab88 100644 --- a/automation/domestina.yaml +++ b/automation/domestina.yaml @@ -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 diff --git a/automation/guest_mode.yaml b/automation/guest_mode.yaml index e36d64a..8c91f64 100644 --- a/automation/guest_mode.yaml +++ b/automation/guest_mode.yaml @@ -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 diff --git a/automation/magic_cube.yaml b/automation/magic_cube.yaml index 57bbab9..b9e6c59 100644 --- a/automation/magic_cube.yaml +++ b/automation/magic_cube.yaml @@ -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 diff --git a/automation/presence.yaml b/automation/presence.yaml index cc8e8f8..86a4699 100644 --- a/automation/presence.yaml +++ b/automation/presence.yaml @@ -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 diff --git a/automation/sleep_mode.yaml b/automation/sleep_mode.yaml index 329f2f5..e1ea3bb 100644 --- a/automation/sleep_mode.yaml +++ b/automation/sleep_mode.yaml @@ -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 diff --git a/automation/startup.yaml b/automation/startup.yaml index 0819fdf..804d48f 100644 --- a/automation/startup.yaml +++ b/automation/startup.yaml @@ -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 diff --git a/scripts/camera.yaml b/scripts/camera.yaml index 302edf3..4652191 100644 --- a/scripts/camera.yaml +++ b/scripts/camera.yaml @@ -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 diff --git a/scripts/speech.yaml b/scripts/speech.yaml index 77d61a0..dcb6d12 100644 --- a/scripts/speech.yaml +++ b/scripts/speech.yaml @@ -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 diff --git a/scripts/system.yaml b/scripts/system.yaml index 82b6364..7490932 100644 --- a/scripts/system.yaml +++ b/scripts/system.yaml @@ -1,4 +1,4 @@ sarah_restart: - alias: Restart SARAH + alias: System - Restart SARAH sequence: service: homeassistant.restart