Files
Home-Assistant-Configs/packages/computers.yaml

18 lines
595 B
YAML

intent_script:
BootComputers:
action:
service: "script.{{person}}_{{action}}"
speech:
text: >
{% if person == "tony_desktop" %}
{% set computer = "tony's computer" %}
{% elif person == "tina_desktop" %}
{% set computer = "tina's computer" %}
{% elif person == "kallen_desktop" %}
{% set computer = "collin's computer" %}
{% endif %}
{% if action == "wake" %}
{{ computer }} is now booting up
{% elif action == "shutdown" %}
{{ computer }} is shutting down
{% endif %}