Skip to content

Commit

Permalink
#1488 - pLUS REMOVED THE wAZE automations #1463
Browse files Browse the repository at this point in the history
  • Loading branch information
CCOSTAN committed Sep 3, 2024
1 parent 92c4553 commit 02efd9a
Show file tree
Hide file tree
Showing 7 changed files with 400 additions and 387 deletions.
2 changes: 1 addition & 1 deletion config/.HA_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024.9.0.dev202408050222
2024.9.0.dev202408230221
14 changes: 9 additions & 5 deletions config/packages/waze.yaml → config/packages/waze.yaml.disabled
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,15 @@ automation:
above: 34

condition:
- condition: or
conditions:
- condition: time
after: '08:00:00'
before: '20:30:00'
- condition: time
after: '08:00:00'
before: '20:30:00'
weekday:
- mon
- tue
- wed
- thu
- fri

action:
- service: script.notify_engine
Expand Down
20 changes: 6 additions & 14 deletions config/templates/speech/briefing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,6 @@
[Include a fact about something that happened in the past on this day at the end of the message]
{% endmacro %}

{%- macro traffic_time() -%}
Travel Time to Spectrum: {{ states.sensor.waze_travel_time.state }} minutes.
{%- endmacro -%}

{# a macro that removes all newline characters, empty spaces, and returns formatted text and replaces underscores with spaces #}
{%- macro cleanup(data) -%}
{%- for item in data.split("\n") if item | trim != "" -%}
Expand All @@ -230,12 +226,12 @@
{% set year = current_date.strftime('%Y') %}
{% set time = current_date.strftime('%I:%M %p') %}
Current date time: {{ month }} {{ day }}, {{ year }} {{ time }}
Residents:
- Carlo (Dad): {{ states('person.carlo') }}
- Stacey (Mom): {{ states('person.stacey') }}
- Justin (Son): {{ states('person.justin') }}
- Paige (Daughter): {{ states('person.paige') }}
and our cat Molly: Always home.
Residents: Location
- Carlo (Dad): {{ states('device_tracker.life360_carlo_costanzo') }} at {{ state_attr('device_tracker.life360_carlo_costanzo', 'place') | replace(' (Costanzo Family)', '') | replace(' (Desantis Family)', '') if state_attr('device_tracker.life360_carlo_costanzo', 'place') != None else 'Away' }}
- Stacey (Mom): {{ states('device_tracker.life360_stacey_costanzo')}} at {{ state_attr('device_tracker.life360_stacey_costanzo', 'place') | replace(' (Costanzo Family)', '') | replace(' (Desantis Family)', '') if state_attr('device_tracker.life360_stacey_costanzo', 'place') != None else 'Away' }}
- Justin (Son): {{ states('device_tracker.life360_justin_costanzo') }} at {{ state_attr('device_tracker.life360_justin_costanzo', 'place') | replace(' (Costanzo Family)', '') | replace(' (Desantis Family)', '') if state_attr('device_tracker.life360_justin_costanzo', 'place') != None else 'Away' }}
- Paige (Daughter): {{ states('device_tracker.life360_paige_costanzo') }} at {{ state_attr('device_tracker.life360_paige_costanzo', 'place') | replace(' (Costanzo Family)', '') | replace(' (Desantis Family)', '') if state_attr('device_tracker.life360_paige_costanzo', 'place') != None else 'Away' }}
and our cat Molly: Always home.
Previous broadcast: "{{ state_attr('sensor.openai_response', 'response') }}"
[Avoid repeating information from the previous broadcast if it was within the hour]

Expand Down Expand Up @@ -310,10 +306,6 @@
{{ medicine() }}
{% endif %}

{% if day_of_week in ['Mon', 'Wed', 'Sun'] and (hour in [7, 8, 13, 14] or 17 <= hour <= 21) %}
{{ traffic_time() }}
{% endif %}

{% if value1 is not none %}
{{ value1 | default }}
{% endif %}
Expand Down
8 changes: 4 additions & 4 deletions config/www/community/clock-weather-card/clock-weather-card.js

Large diffs are not rendered by default.

Binary file modified config/www/community/clock-weather-card/clock-weather-card.js.gz
Binary file not shown.
743 changes: 380 additions & 363 deletions config/www/community/lovelace-mushroom/mushroom.js

Large diffs are not rendered by default.

Binary file modified config/www/community/lovelace-mushroom/mushroom.js.gz
Binary file not shown.

0 comments on commit 02efd9a

Please sign in to comment.