mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-07 10:18:44 +00:00
Add telegram keyboard actions
This commit is contained in:
@@ -18,6 +18,8 @@ cards:
|
||||
- automation.cube_shake
|
||||
- automation.enable_guest_mode
|
||||
- automation.disable_guest_mode
|
||||
- automation.telegram_enable_guest_mode
|
||||
- automation.telegram_disable_guest_mode
|
||||
- automation.enable_sleep_mode
|
||||
- automation.disable_sleep_mode
|
||||
- automation.sleep_toggle_on_switch_tap
|
||||
@@ -28,6 +30,7 @@ cards:
|
||||
- automation.speech_telegram_do_nothing
|
||||
- automation.camera_turn_off_on_startup
|
||||
- automation.system_announce_start
|
||||
- automation.system_telegram_status
|
||||
|
||||
- type: entities
|
||||
title: Batteries
|
||||
|
||||
@@ -34,3 +34,33 @@ automation:
|
||||
- automation.coming_home
|
||||
- service: input_boolean.turn_on
|
||||
entity_id: input_boolean.speech_notifications
|
||||
|
||||
- id: telegram_enable_guest_mode
|
||||
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*"
|
||||
message: "Okay, turning Guest mode on!"
|
||||
|
||||
- id: telegram_disable_guest_mode
|
||||
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*"
|
||||
message: "Okay, turning Guest mode off!"
|
||||
|
||||
@@ -15,3 +15,34 @@ automation:
|
||||
- service: script.say
|
||||
data:
|
||||
message: "Hey! I was out for a bit, but I'm back online!"
|
||||
- service: notify.telegram
|
||||
data:
|
||||
title: "⚙️ *System Module*"
|
||||
message: "Ask me to do something anytime!"
|
||||
data:
|
||||
keyboard:
|
||||
- "/guest_mode_on, /guest_mode_off"
|
||||
- "/status"
|
||||
|
||||
- id: system_telegram_status
|
||||
alias: System · Telegram · Announce status
|
||||
trigger:
|
||||
platform: event
|
||||
event_type: telegram_command
|
||||
event_data:
|
||||
command: "/status"
|
||||
action:
|
||||
- service: notify.telegram
|
||||
data_template:
|
||||
title: "⚙️ *System Module*"
|
||||
message: >-
|
||||
|
||||
Guest mode: {{ states('input_boolean.guest_mode') }}
|
||||
|
||||
Windows:
|
||||
Living room: {{ states('binary_sensor.living_room_right_window_on_off') }}
|
||||
Master bedroom: {{ states('binary_sensor.master_bedroom_right_window_on_off') }}
|
||||
|
||||
Lights:
|
||||
Living room: {{ states('light.living_room_all_lights') }}
|
||||
Master bedroom: {{ states('light.bedside_light') }}
|
||||
|
||||
Reference in New Issue
Block a user