Changed my mind on how to organize files for Assist

This commit is contained in:
2023-07-20 13:24:29 -04:00
parent dd8fef251c
commit 87a81ee419
2 changed files with 9 additions and 9 deletions

View File

@ -0,0 +1,18 @@
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 %}

View File

@ -0,0 +1,9 @@
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 }}"