Added Alexa Music

This commit is contained in:
2026-07-17 10:12:15 -04:00
parent 92c5268dc8
commit 28a8cb98f6
757 changed files with 151171 additions and 85450 deletions
+219 -37
View File
@@ -834,8 +834,6 @@
- condition: template
value_template: '{{ states(''sensor.google_travel_time_work'') | float(0) >
35 }}'
- condition: template
value_template: '{{ states(''sensor.waze_travel_time'') | float(0) > 35 }}'
actions:
- action: camera.snapshot
target:
@@ -846,8 +844,7 @@
data:
title: "\U0001F6A8 Commute Delay Alert!"
message: "Traffic to Work is heavier than usual this morning. \n- Google Maps:
{{ states('sensor.google_travel_time_work') }} mins.\n- Waze: {{ states('sensor.waze_to_work_travel_time')
}} mins."
{{ states('sensor.google_travel_time_work') }} mins."
data:
image: /local/commute_snapshot.jpg
enabled: false
@@ -855,8 +852,7 @@
data:
title: "\U0001F6A8 Commute Delay Alert!"
message: "Traffic to Work is heavier than usual this morning. \n- Google Maps:
{{ states('sensor.google_travel_time_work') }} mins. \n- Waze: {{ states('sensor.waze_to_work_travel_time')
}} mins.\n![Commute Map](/local/commute_snapshot.jpg)"
{{ states('sensor.google_travel_time_work') }} mins. \n![Commute Map](/local/commute_snapshot.jpg)"
mode: single
- *id001
- *id001
@@ -898,17 +894,14 @@
- condition: numeric_state
entity_id: sensor.google_travel_time_work
above: 35
- condition: numeric_state
entity_id: sensor.waze_travel_time
above: 35
actions:
- action: notify.notify
data:
title: "\U0001F697 Morning Commute"
message: "Google: {{ states('sensor.google_travel_time_work') }} min\nWaze:
{{ states('sensor.waze_to_work_travel_time') }} min\n{% set g = states('sensor.google_travel_time_work')
| float(0) %} {% if g > 50 %} \U0001F6A8 Major traffic delays. {% elif g >
40 %} ⚠️ Heavy traffic. {% else %} \U0001F7E1 Moderate traffic. {% endif %}"
message: "Google: {{ states('sensor.google_travel_time_work') }} min\n\n{% set
g = states('sensor.google_travel_time_work') | float(0) %} {% if g > 50 %}
\U0001F6A8 Major traffic delays. {% elif g > 40 %} ⚠️ Heavy traffic. {% else
%} \U0001F7E1 Moderate traffic. {% endif %}"
mode: single
- id: '1783162325964'
alias: Motion Shed - AI Description
@@ -972,11 +965,16 @@
- delay:
hours: 0
minutes: 0
seconds: 3
seconds: 6
milliseconds: 0
- action: homeassistant.update_entity
target:
entity_id: camera.backyard_shed
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- variables:
snapshot_filename: blink_shed_{{ now().strftime('%Y%m%d_%H%M%S') }}.jpg
- variables:
@@ -1784,8 +1782,8 @@
mode: single
- id: '1783737753660'
alias: 'Office: Manual Meeting Status Busy Light - Working Hours'
description: 'Work hours: Toggle controls Red/Green (Motion ignored). After hours:
Pure motion night light (Toggle ignored).'
description: 'Work hours: Toggle controls Red/Green (Motion ignored). After hours
OR Away Mode: Pure motion night light (Toggle ignored).'
triggers:
- id: status_changed
entity_id: input_boolean.in_a_meeting
@@ -1807,6 +1805,9 @@
- condition: state
entity_id: input_boolean.in_a_meeting
state: 'on'
- condition: state
entity_id: input_boolean.away_mode
state: 'off'
- condition: time
after: 08:00:00
before: '18:00:00'
@@ -1832,6 +1833,9 @@
- condition: state
entity_id: input_boolean.in_a_meeting
state: 'off'
- condition: state
entity_id: input_boolean.away_mode
state: 'off'
- condition: time
after: 08:00:00
before: '18:00:00'
@@ -1854,17 +1858,22 @@
- conditions:
- condition: trigger
id: motion_detected
- condition: not
- condition: or
conditions:
- condition: time
after: 08:00:00
before: '18:00:00'
weekday:
- mon
- tue
- wed
- thu
- fri
- condition: state
entity_id: input_boolean.away_mode
state: 'on'
- condition: not
conditions:
- condition: time
after: 08:00:00
before: '18:00:00'
weekday:
- mon
- tue
- wed
- thu
- fri
sequence:
- target:
entity_id: light.night_light
@@ -1878,22 +1887,27 @@
- conditions:
- condition: trigger
id: motion_cleared
- condition: not
- condition: or
conditions:
- condition: time
after: 08:00:00
before: '18:00:00'
weekday:
- mon
- tue
- wed
- thu
- fri
- condition: state
entity_id: input_boolean.away_mode
state: 'on'
- condition: not
conditions:
- condition: time
after: 08:00:00
before: '18:00:00'
weekday:
- mon
- tue
- wed
- thu
- fri
sequence:
- target:
entity_id: light.night_light
action: light.turn_off
mode: single
mode: restart
- id: '1783738120074'
alias: 'Office: Webhook Toggle Meeting Status'
description: Toggles the meeting status boolean when the secret webhook URL is opened
@@ -2316,6 +2330,13 @@
- light.office_lamp
- light.playroom_light
scroll_wheel_mode_ext_ch3: instant
on_hold_action_ch1:
- action: light.turn_on
metadata: {}
target:
entity_id: light.playroom_light
data:
brightness_pct: 30
- id: '1784073759556'
alias: 'Office: Desk Lamp Meeting Alert'
description: Flashes the desk lamp color temperature for a few seconds when a meeting
@@ -2345,3 +2366,164 @@
entity_id: scene.desk_lamp_before_alert
data: {}
mode: restart
- id: '1784153893584'
alias: 'Office: Manual Meeting Status Busy Light - Working Hours v2'
description: 'Work hours: Toggle controls Red/Green (Motion ignored). After hours
OR Away Mode: Pure motion night light (Toggle ignored).'
triggers:
- id: status_changed
entity_id: input_boolean.in_a_meeting
trigger: state
- id: motion_detected
entity_id: binary_sensor.night_light_occupancy
trigger: state
to: 'on'
- id: motion_cleared
entity_id: binary_sensor.night_light_occupancy
trigger: state
to: 'off'
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id: status_changed
- condition: state
entity_id: input_boolean.in_a_meeting
state: 'on'
- condition: state
entity_id: input_boolean.away_mode
state: 'off'
- condition: time
after: 08:00:00
before: '18:00:00'
weekday:
- mon
- tue
- wed
- thu
- fri
sequence:
- action: light.turn_on
target:
entity_id: light.night_light
data:
brightness_pct: 100
rgb_color:
- 255
- 0
- 0
- conditions:
- condition: trigger
id: status_changed
- condition: state
entity_id: input_boolean.in_a_meeting
state: 'off'
- condition: state
entity_id: input_boolean.away_mode
state: 'off'
- condition: time
after: 08:00:00
before: '18:00:00'
weekday:
- mon
- tue
- wed
- thu
- fri
sequence:
- action: light.turn_on
target:
entity_id: light.night_light
data:
brightness_pct: 20
rgb_color:
- 5
- 245
- 45
- conditions:
- condition: trigger
id: motion_detected
- condition: or
conditions:
- condition: state
entity_id: input_boolean.away_mode
state: 'on'
- condition: not
conditions:
- condition: time
after: 08:00:00
before: '18:00:00'
weekday:
- mon
- tue
- wed
- thu
- fri
sequence:
- action: light.turn_on
target:
entity_id: light.night_light
data:
brightness_pct: 30
- conditions:
- condition: trigger
id: motion_cleared
- condition: or
conditions:
- condition: state
entity_id: input_boolean.away_mode
state: 'on'
- condition: not
conditions:
- condition: time
after: 08:00:00
before: '18:00:00'
weekday:
- mon
- tue
- wed
- thu
- fri
sequence:
- delay: 00:00:02
- action: light.turn_off
target:
entity_id: light.night_light
mode: restart
- id: '1784246257858'
alias: Sync Alexa Volume Slider
description: Syncs the Alexa Master Volume slider with the currently selected speaker.
triggers:
- entity_id: input_number.alexa_master_volume
id: slider_changed
trigger: state
- entity_id: input_select.alexa_target_device
id: speaker_changed
trigger: state
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id: slider_changed
sequence:
- action: media_player.volume_set
target:
entity_id: '{{ states(''input_select.alexa_target_device'') }}'
data:
volume_level: '{{ states(''input_number.alexa_master_volume'') | float /
100 }}'
- conditions:
- condition: trigger
id: speaker_changed
sequence:
- action: input_number.set_value
target:
entity_id: input_number.alexa_master_volume
data:
value: "{% set target = states('input_select.alexa_target_device') %} {%
if state_attr(target, 'volume_level') != none %}\n {{ (state_attr(target,
'volume_level') | float * 100) | round(0) }}\n{% else %}\n 20\n{% endif
%}"
mode: restart