Move Assist things to regular packages due to filename conflicts

This commit is contained in:
2023-07-20 15:53:53 -04:00
parent 9c9c4b5f50
commit 64607570f1
11 changed files with 54 additions and 47 deletions

View File

@ -83,6 +83,15 @@ input_boolean:
name: Kallen Nightly Briefing Ran
icon: mdi:home-analytics
intent_script:
PlayAnnouncement:
action:
service: "script.{{announcement}}"
data:
who: "{{ who|default('everywhere') }}"
speech:
text: "Okay"
################################
# Announcment Automation - fires at the time of the above input_datetimes
################################

View File

@ -1,8 +0,0 @@
intent_script:
PlayAnnouncement:
action:
service: "script.{{announcement}}"
data:
who: "{{ who|default('everywhere') }}"
speech:
text: "Okay"

View File

@ -1,8 +0,0 @@
intent_script:
MasterBedroomModes:
action:
service: "button.press"
data:
entity_id: "{{ mode }}"
speech:
text: "Master bedroom set to {{ mode }}"

View File

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

View File

@ -1,15 +0,0 @@
intent_script:
SportsScore:
speech:
text: >
{% from 'sports.jinja' import sports_pregame, sports_main %}
{% set inhibit = "binary_sensor." + team + "_inhibit" %}
{% set sensor = "sensor." + team %}
{% if is_state(inhibit,'on') %}
I do not have any information about the {{ state_attr(team,'friendly_name') }} at this time.
{% elif states(sensor) in ["NOT_FOUND"] %}
They do not appear to have a game scheduled for today.
{% else %}
{{ sports_pregame(sensor) }}
{{ sports_main(sensor) }}
{% endif %}

View File

@ -256,3 +256,12 @@ input_number:
step: 1
unit_of_measurement: °F
icon: mdi:thermometer
intent_script:
MasterBedroomModes:
action:
service: "button.press"
data:
entity_id: "{{ mode }}"
speech:
text: "Master bedroom set to {{ mode }}"

View File

@ -3,6 +3,16 @@ input_boolean:
name: Spotify Idle or Paused
icon: mdi:spotify
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 }}"
automation:
- id: beac4fed-5326-49ef-951e-6615d0cf1a7c
alias: 'Spotify Page - Everywhere Media Player idle or paused '

View File

@ -417,13 +417,12 @@ script:
entity_id: input_datetime.daily_briefing
data:
time: >
{% from 'time.jinja' import time_from_calendar %}
{% if is_state('input_boolean.kallen_school_today','on') %}
{% if is_state('input_boolean.kallen_alternate_pickup','on') %}
15:00
{% elif is_state('input_boolean.kallen_school_early_release','on') %}
12:30
{% else %}
14:15
{{ time_from_calendar('calendar.kallen_school_days','end_time','set','subtract',1) }}
{% endif %}
{% elif is_state('input_boolean.kallen_school_today','off') and is_state('input_boolean.work_today','off') %}
15:00
@ -568,7 +567,7 @@ script:
{% elif is_state('input_boolean.kallen_school_early_release','on') %}
12:00
{% else %}
13:30
13:00
{% endif %}
{% else %}
14:00

View File

@ -407,7 +407,11 @@ script:
data:
time: >
{% from 'time.jinja' import time_from_calendar %}
{% if is_state('input_boolean.two_hour_delay','on') %}
{{ time_from_calendar('calendar.kallen_school_days','start_time','set','add',2) }}
{% else %}
{{ time_from_calendar('calendar.kallen_school_days','start_time','set') }}
{% endif %}
- service: input_boolean.turn_on
entity_id:
- input_boolean.kallen_school_today

View File

@ -48,3 +48,19 @@ template:
state: >
{% from 'sports.jinja' import sports_inhibit %}
{{ state_attr('sensor.los_angeles_dodgers','opponent_abbr') in ['CLE'] or sports_inhibit('sensor.los_angeles_dodgers') }}
intent_script:
SportsScore:
speech:
text: >
{% from 'sports.jinja' import sports_pregame, sports_main %}
{% set inhibit = "binary_sensor." + team + "_inhibit" %}
{% set sensor = "sensor." + team %}
{% if is_state(inhibit,'on') %}
I do not have any information about the {{ state_attr(team,'friendly_name') }} at this time.
{% elif states(sensor) in ["NOT_FOUND"] %}
They do not appear to have a game scheduled for today.
{% else %}
{{ sports_pregame(sensor) }}
{{ sports_main(sensor) }}
{% endif %}