Reduce and refactor automations

This commit is contained in:
Georgi Gardev
2022-12-01 16:02:00 +02:00
parent c35975492f
commit d58a40a0c2
12 changed files with 174 additions and 334 deletions
-28
View File
@@ -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