First adventures into the world of Assist

This commit is contained in:
2023-07-19 21:55:39 -04:00
parent ae1675216f
commit dd8fef251c
4 changed files with 90 additions and 0 deletions

27
packages/assist.yaml Normal file
View File

@ -0,0 +1,27 @@
intent_script:
SetVolume:
action:
service: "media_player.volume_set"
data:
entity_id: "{{ media_player }}"
volume_level: "{{ volume / 100.0 }}"
speech:
text: "Volume changed to {{ volume }}"
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 %}