Files
sarah/config/packages/modules/system.yaml
T

54 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:
- 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"
- 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') }}