mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-05 08:44:24 +00:00
Reduce and refactor automations
This commit is contained in:
@@ -108,31 +108,3 @@ script:
|
||||
}}
|
||||
- delay: 00:00:02
|
||||
- service: script.music_play
|
||||
|
||||
automation:
|
||||
- alias: Routine · Coming home · Left work
|
||||
trigger:
|
||||
platform: event
|
||||
event_type: telegram_callback
|
||||
event_data:
|
||||
command: "/leaving_work_to_home"
|
||||
action:
|
||||
- service: telegram_bot.edit_replymarkup
|
||||
data_template:
|
||||
message_id: "last"
|
||||
chat_id: "{{ trigger.event.data.chat_id }}"
|
||||
inline_keyboard:
|
||||
- service: notify.telegram
|
||||
data_template:
|
||||
title: "🏠 *Presence Module · Leaving Work*"
|
||||
message: >-
|
||||
|
||||
{{
|
||||
[
|
||||
"Okay, I'll be expecting you!",
|
||||
"Awesome! I'm prepping for your arrival",
|
||||
"Cool, I'll be ready!"
|
||||
] | random
|
||||
}}
|
||||
- service: script.turn_on_all_radiators
|
||||
- service: script.toshiba_ac_on_cool_if_hot
|
||||
|
||||
Reference in New Issue
Block a user