This commit is contained in:
Joshua
2025-07-01 13:23:50 -04:00
parent 584a37b6fb
commit 557ccb9c5b

View File

@@ -2,14 +2,11 @@
alias: Turn off living room lights alias: Turn off living room lights
description: '' description: ''
triggers: triggers:
- trigger: state - entity_id: binary_sensor.living_room_motion_2
entity_id:
- binary_sensor.living_room_temp_sensor_occupancy
to: 'off' to: 'off'
for: for:
hours: 0
minutes: 1 minutes: 1
seconds: 0 trigger: state
conditions: conditions:
- condition: time - condition: time
after: '19:00:00' after: '19:00:00'
@@ -23,19 +20,16 @@
- fri - fri
- sat - sat
actions: actions:
- action: light.turn_off - target:
metadata: {} entity_id:
- light.living_room_lamp_2_2
device_id: 77092d966014d6eb6222928cce911caf
action: light.turn_off
data: {}
- action: switch.turn_off
data: {} data: {}
target: target:
device_id: 77092d966014d6eb6222928cce911caf
- type: turn_off
device_id: 77092d966014d6eb6222928cce911caf
entity_id: af55f6e7e0ffa642407923fc6e8cdaf3
domain: light
- type: turn_off
device_id: f94b4f4c1b2239789d2c19db7650947d device_id: f94b4f4c1b2239789d2c19db7650947d
entity_id: 90375df689a68fe43b63994ae5457d46
domain: switch
mode: single mode: single
- id: '1739061820991' - id: '1739061820991'
alias: Turn off washing machine when leak sensed alias: Turn off washing machine when leak sensed
@@ -63,7 +57,7 @@
triggers: triggers:
- trigger: state - trigger: state
entity_id: entity_id:
- binary_sensor.living_room_temp_sensor_motion_2 - binary_sensor.living_room_motion_2
to: 'on' to: 'on'
conditions: conditions:
- condition: and - condition: and
@@ -71,7 +65,7 @@
- condition: sun - condition: sun
after: sunset after: sunset
- condition: time - condition: time
before: '23:59:00' before: '21:30:00'
actions: actions:
- action: light.turn_on - action: light.turn_on
metadata: {} metadata: {}
@@ -81,38 +75,7 @@
target: target:
entity_id: entity_id:
- light.living_room_lamp_1 - light.living_room_lamp_1
- light.living_room_lamp_2 - light.living_room_lamp_2_2
mode: single
- id: '1739831095321'
alias: Turn Off Living Room Light
description: ''
triggers:
- type: not_occupied
device_id: 6490580c401b733f92ab18ab70c5ed6c
entity_id: 6f20ea0b998c4f901d523bdcd3e5cfc5
domain: binary_sensor
trigger: device
conditions:
- condition: time
after: '20:00:00'
before: 05:00:00
weekday:
- sat
- fri
- thu
- wed
- tue
- mon
- sun
actions:
- type: turn_off
device_id: c248988685c61331586bda48ab8469f4
entity_id: 746fb1f656fcbf25a3614cb6d941c883
domain: light
- type: turn_off
device_id: 77092d966014d6eb6222928cce911caf
entity_id: af55f6e7e0ffa642407923fc6e8cdaf3
domain: light
mode: single mode: single
- id: '1739835025769' - id: '1739835025769'
alias: Turn on bedroom lights with motion alias: Turn on bedroom lights with motion
@@ -120,12 +83,12 @@
triggers: triggers:
- trigger: state - trigger: state
entity_id: entity_id:
- binary_sensor.master_bedroom_smart_sensor_motion - binary_sensor.bedroom_motion
to: 'on' to: 'on'
conditions: conditions:
- condition: time - condition: time
after: '17:00:00' after: '17:00:00'
before: '22:00:00' before: '21:00:00'
weekday: weekday:
- sun - sun
- mon - mon
@@ -151,7 +114,7 @@
triggers: triggers:
- trigger: state - trigger: state
entity_id: entity_id:
- binary_sensor.master_bedroom_smart_sensor_occupancy - binary_sensor.bedroom_occupancy
to: 'off' to: 'off'
for: for:
hours: 0 hours: 0
@@ -214,7 +177,12 @@
entity_id: 0ae75b98556682467fedf0ff441346ef entity_id: 0ae75b98556682467fedf0ff441346ef
domain: light domain: light
brightness_pct: 20 brightness_pct: 20
enabled: false enabled: true
- type: turn_on
device_id: ebe5b855306e22fa875326c566ba8024
entity_id: 921d709eb7937eff5935783d7fbea451
domain: light
brightness_pct: 50
mode: single mode: single
- id: '1739841729184' - id: '1739841729184'
alias: Declans Closet Open Notification alias: Declans Closet Open Notification
@@ -551,7 +519,7 @@
triggers: triggers:
- trigger: state - trigger: state
entity_id: entity_id:
- binary_sensor.office_smart_sensor_motion - binary_sensor.office_motion
to: 'on' to: 'on'
conditions: [] conditions: []
actions: actions:
@@ -587,11 +555,11 @@
triggers: triggers:
- trigger: state - trigger: state
entity_id: entity_id:
- binary_sensor.office_smart_sensor_occupancy - binary_sensor.office_motion
to: 'off' to: 'off'
for: for:
hours: 1 hours: 0
minutes: 0 minutes: 30
seconds: 0 seconds: 0
conditions: [] conditions: []
actions: actions:
@@ -619,19 +587,6 @@
entity_id: 3bd3f6e27efa6dd483510529f3faeb16 entity_id: 3bd3f6e27efa6dd483510529f3faeb16
domain: switch domain: switch
mode: single mode: single
- id: '1740144203014'
alias: 'Office Echo On '
description: ''
triggers:
- trigger: time
at: 08:00:00
conditions: []
actions:
- type: turn_on
device_id: 31d67bb445f5c8920a1dc076d0d71e76
entity_id: 6c1fd91e0ff15419f7bdb6b9e233cffc
domain: switch
mode: single
- id: '1740144319171' - id: '1740144319171'
alias: Living Room Tv On alias: Living Room Tv On
description: '' description: ''
@@ -655,8 +610,8 @@
to: 'off' to: 'off'
for: for:
hours: 0 hours: 0
minutes: 5 minutes: 2
seconds: 0 seconds: 30
conditions: conditions:
- condition: or - condition: or
conditions: conditions:
@@ -819,7 +774,7 @@
description: '' description: ''
triggers: triggers:
- trigger: time - trigger: time
at: '21:00:00' at: '22:00:00'
conditions: [] conditions: []
actions: actions:
- type: turn_on - type: turn_on
@@ -1225,54 +1180,50 @@
description: Schedule of Alexa announcements for structured daily routine description: Schedule of Alexa announcements for structured daily routine
trigger: trigger:
- platform: time - platform: time
at: "09:00:00" at: 09:00:00
- platform: time - platform: time
at: "10:00:00" at: '10:00:00'
- platform: time - platform: time
at: "10:15:00" at: '10:15:00'
- platform: time - platform: time
at: "11:00:00" at: '11:00:00'
- platform: time - platform: time
at: "12:00:00" at: '12:00:00'
- platform: time - platform: time
at: "12:30:00" at: '12:30:00'
- platform: time - platform: time
at: "13:00:00" at: '13:00:00'
- platform: time - platform: time
at: "13:30:00" at: '13:30:00'
- platform: time - platform: time
at: "14:00:00" at: '14:00:00'
- platform: time - platform: time
at: "14:30:00" at: '14:30:00'
- platform: time - platform: time
at: "19:29:00" at: '19:29:00'
condition: condition:
- condition: state - condition: state
entity_id: calendar.m365_family_events entity_id: calendar.m365_family_events
state: 'on' state: 'on'
- condition: template - condition: template
value_template: > value_template: "{{ 'no camp' in (\n (state_attr('calendar.m365_family_events',
{{ 'no camp' in ( 'data') or [])\n | selectattr('summary', 'defined')\n | map(attribute='summary')\n
(state_attr('calendar.m365_family_events', 'data') or []) \ | map('lower')\n | list\n) }}\n"
| selectattr('summary', 'defined')
| map(attribute='summary')
| map('lower')
| list
) }}
action: action:
- variables: - variables:
messages: messages:
"08:00:00": Time for breakfast and a little TV! 08:00:00: Time for breakfast and a little TV!
"09:00:00": Outside play time! If its bad weather, do your learning activities inside. 09:00:00: Outside play time! If its bad weather, do your learning activities
"10:00:00": Snack time! inside.
"10:15:00": Time for quiet play or outside fun. '10:00:00': Snack time!
"11:00:00": Creative time! Draw, color, or write something cool! '10:15:00': Time for quiet play or outside fun.
"12:00:00": Lunch time! Wash up and head to the table. '11:00:00': Creative time! Draw, color, or write something cool!
"12:30:00": Happy Helper Time! Do your chores like a champ! '12:00:00': Lunch time! Wash up and head to the table.
"13:00:00": TV break — relax and enjoy. '12:30:00': Happy Helper Time! Do your chores like a champ!
"13:30:00": Time to read a book or listen to a story. '13:00:00': TV break — relax and enjoy.
"14:00:00": Lets move! Try a Minecraft brain break! '13:30:00': Time to read a book or listen to a story.
"14:30:00": Time to relax with mindfulness or yoga. '14:00:00': Lets move! Try a Minecraft brain break!
'14:30:00': Time to relax with mindfulness or yoga.
- service: notify.alexa_media - service: notify.alexa_media
data: data:
target: target:
@@ -1281,92 +1232,89 @@
- media_player.chloe_s_room - media_player.chloe_s_room
- media_player.declan_s_room - media_player.declan_s_room
- media_player.kitchen - media_player.kitchen
message: "{{ messages[now().strftime('%H:%M:%S')] }}" message: '{{ messages[now().strftime(''%H:%M:%S'')] }}'
data: data:
type: announce type: announce
method: all method: all
mode: single mode: single
- id: '1744503044813' - id: '1744503044813'
alias: Announce day camp preparation and pause TV alias: Announce day camp preparation and pause TV
trigger: triggers:
- platform: time - at: 08:30:00
at: "08:30:00" trigger: time
condition: conditions:
- condition: state - condition: state
entity_id: calendar.m365_family_events entity_id: calendar.m365_family_events
state: 'on' state: 'on'
- condition: template - condition: template
value_template: > value_template: "{{ state_attr('calendar.m365_family_events', 'data')\n | selectattr('summary',
{{ state_attr('calendar.m365_family_events', 'data') 'defined')\n | map(attribute='summary')\n | map('lower')\n | select('search',
| selectattr('summary', 'defined') 'camp')\n | reject('search', 'no camp')\n | list | count > 0 }}\n"
| map(attribute='summary') actions:
| map('lower') - target:
| select('search', 'camp') entity_id: media_player.hisense_g204x_cd41
| reject('search', 'no camp') action: media_player.media_pause
| list | count > 0 }} data: {}
action: - data:
- service: media_player.play_media
data:
media_content_id: Pause kids TV
media_content_type: routine
target:
entity_id: media_player.kitchen_echo
- service: notify.alexa_media
data:
target: target:
- media_player.living_room - media_player.living_room
- media_player.declan_s_room - media_player.declan_s_room
- media_player.jordyn_s_room - media_player.jordyn_s_room
- media_player.kitchen - media_player.kitchen
- media_player.tv_alexa message: 'Time to prepare for day camp. Please do the following: Fill water
message: > bottles, put on deodorant, brush teeth, and Jordyn, brush your hair.
Time to prepare for day camp. Please do the following:
Fill water bottles, Put on deodorant, Brush teeth, and Jordyn Brush your hair. '
action: notify.alexa_media
mode: single
- id: '1744503044814' - id: '1744503044814'
alias: Announce time to leave for day camp and turn off TV alias: Announce time to leave for day camp and turn off TV
trigger: triggers:
- platform: time - at: 08:45:00
at: "08:45:00" trigger: time
condition: conditions:
- condition: state - condition: state
entity_id: calendar.m365_family_events entity_id: calendar.m365_family_events
state: 'on' state: 'on'
- condition: template - condition: template
value_template: > value_template: "{{ state_attr('calendar.m365_family_events', 'data')\n | selectattr('summary',
{{ state_attr('calendar.m365_family_events', 'data') 'defined')\n | map(attribute='summary')\n | map('lower')\n | select('search',
| selectattr('summary', 'defined') 'camp')\n | reject('search', 'no camp')\n | list | count > 0 }}\n"
| map(attribute='summary') actions:
| map('lower') - target:
| select('search', 'camp') entity_id: media_player.basement_show
| reject('search', 'no camp')
| list | count > 0 }}
action:
- service: media_player.play_media
data: data:
media_content_id: Turn Kids TV Off media_content_id: Turn Kids TV Off
media_content_type: routine media_content_type: routine
action: media_player.play_media
- data:
target: target:
entity_id: media_player.basement_show - media_player.living_room
- service: notify.alexa_media message: 'It is time to leave for day camp. Please do the following: Put on
data: shoes, get lunch, get water bottle, and grab your bag if needed.
target:
- media_player.parents_room '
message: > action: notify.alexa_media
It is time to leave for day camp. Please do the following: - target:
Put on shoes, Get lunch, Get water bottle, Get bag if needed. entity_id: media_player.hisense_g204x_cd41
action: media_player.turn_off
mode: single
- id: '1744503044145' - id: '1744503044145'
alias: Reset Alexa Announcement Volume - Camp Days alias: Reset Alexa Announcement Volume - Camp Days
description: Set Alexa announcement volume for structured daily routine description: Set Alexa announcement volume for structured daily routine
trigger: trigger:
- platform: time - platform: time
at: "09:15:00" at: 09:15:00
condition: condition:
- condition: state - condition: state
entity_id: calendar.m365_family_events entity_id: calendar.m365_family_events
state: 'on' state: 'on'
- condition: template - condition: template
value_template: > value_template: '{{ state_attr(''calendar.m365_family_events'', ''data'') | selectattr(''summary'',
{{ state_attr('calendar.m365_family_events', 'data') | selectattr('summary', 'defined') | map(attribute='summary') | map('lower') | select('search', 'camp') | select('search', 'no', invert=True) | list | count > 0 }} ''defined'') | map(attribute=''summary'') | map(''lower'') | select(''search'',
''camp'') | select(''search'', ''no'', invert=True) | list | count > 0 }}
'
action: action:
- service: media_player.play_media - service: media_player.play_media
data: data:
@@ -1380,20 +1328,15 @@
description: Set Alexa announcement volume for structured daily routine description: Set Alexa announcement volume for structured daily routine
trigger: trigger:
- platform: time - platform: time
at: "19:17:00" at: '19:17:00'
condition: condition:
- condition: state - condition: state
entity_id: calendar.m365_family_events entity_id: calendar.m365_family_events
state: 'on' state: 'on'
- condition: template - condition: template
value_template: > value_template: "{{ 'no camp' in (\n state_attr('calendar.m365_family_events',
{{ 'no camp' in ( 'data')\n | selectattr('summary', 'defined')\n | map(attribute='summary')\n
state_attr('calendar.m365_family_events', 'data') \ | map('lower')\n | list\n) }}\n"
| selectattr('summary', 'defined')
| map(attribute='summary')
| map('lower')
| list
) }}
action: action:
- service: media_player.play_media - service: media_player.play_media
data: data: