mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-07 01:14:42 +00:00
09b7a2ea3a
- add python script to download youtube videos - add new Media tab in UI to download youtube videos - track PDS - Script to play latest PDS, play from Media tab - Automate latest PDS download
56 lines
1.5 KiB
YAML
56 lines
1.5 KiB
YAML
sensor:
|
|
- platform: template
|
|
sensors:
|
|
sarah_url:
|
|
friendly_name: "SARAH's URL"
|
|
value_template: !secret sarah_url
|
|
|
|
script:
|
|
sarah_restart:
|
|
alias: System · Restart SARAH
|
|
sequence:
|
|
service: homeassistant.restart
|
|
|
|
automation:
|
|
- id: system_announce_start
|
|
alias: System · Announce start
|
|
trigger:
|
|
platform: homeassistant
|
|
event: start
|
|
action:
|
|
- delay: 00:00:06
|
|
- 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') }}
|