blue_room to boys_room

This commit is contained in:
CeeWeasel
2025-10-10 20:24:52 -04:00
parent 10e297961b
commit 5b688e7c78
382 changed files with 8674 additions and 8739 deletions
+9 -10
View File
@@ -47,7 +47,7 @@
# - https://www.paramountplus.com/shows/paw-patrol/
# condition: []
# action:
# - service: androidtv.adb_command
# - action: androidtv.adb_command
# data:
# entity_id: media_player.fire_10
# command: am start -a android.intent.action.VIEW -d {{trigger.event.data.tag_id}}
@@ -56,7 +56,7 @@
# - condition: trigger
# id: disney
# sequence:
# - service: androidtv.adb_command
# - action: androidtv.adb_command
# data:
# entity_id: media_player.fire_10
# command: >-
@@ -67,7 +67,7 @@
# minutes: 0
# seconds: 5
# milliseconds: 0
# - service: androidtv.adb_command
# - action: androidtv.adb_command
# data:
# entity_id: media_player.fire_10
# command: >-
@@ -77,7 +77,7 @@
# - condition: trigger
# id: paramount
# sequence:
# - service: androidtv.adb_command
# - action: androidtv.adb_command
# data:
# entity_id: media_player.fire_10
# command: >-
@@ -88,7 +88,7 @@
# minutes: 0
# seconds: 10
# milliseconds: 0
# - service: androidtv.adb_command
# - action: androidtv.adb_command
# data:
# entity_id: media_player.fire_10
# command: input keyevent 19 && input keyevent 19 && input keyevent 23
@@ -96,7 +96,7 @@
# - condition: trigger
# id: pbs
# sequence:
# - service: androidtv.adb_command
# - action: androidtv.adb_command
# data:
# entity_id: media_player.fire_10
# command: >-
@@ -107,12 +107,12 @@
# minutes: 0
# seconds: 5
# milliseconds: 0
# - service: androidtv.adb_command
# - action: androidtv.adb_command
# data:
# entity_id: media_player.fire_10
# command: ls /
# default:
# - service: androidtv.adb_command
# - action: androidtv.adb_command
# data:
# entity_id: media_player.fire_10
# command: >-
@@ -120,7 +120,6 @@
# {{trigger.event.data.tag_id}}
# mode: single
# # Got my kid setup with an NFC card system for their favorite shows!
# # https://imgur.com/a/akZZYjk
@@ -151,4 +150,4 @@
# # https://github.com/adonno/tagreader
# # Figured I'd share this little project, as it lets us better control what is watched (no going through the menu and getting distracted) and is WAY easier to find the show quickly.
# # Figured I'd share this little project, as it lets us better control what is watched (no going through the menu and getting distracted) and is WAY easier to find the show quickly.
+13 -13
View File
@@ -77,7 +77,7 @@ action:
nursery_fan_speed: "{{((states('sensor.nursery_multisensor_air_temperature') | float(default=0) - states('input_number.nursery_fan_min_temp') | float(default=0))/(states('input_number.nursery_fan_high_temp') | float(default=1) - states('input_number.nursery_fan_min_temp') | float(default=0)) * 100)|int(default=0) }}"
master_bedroom_fan_speed: "{{((states('sensor.master_bedroom_multisensor_air_temperature') | float(default=0) - states('input_number.master_bedroom_fan_min_temp') | float(default=0))/(states('input_number.master_bedroom_fan_high_temp') | float(default=1) - states('input_number.master_bedroom_fan_min_temp') | float(default=0)) * 100)|int(default=0) }}"
# - service: logbook.log
# - action: logbook.log
# data_template:
# name: Automatic Fan Speeds
# entity_id: automation.automatic_fan_speeds
@@ -105,7 +105,7 @@ action:
state: "on"
sequence:
- alias: "Turn nursery fan off because it is too cold outside"
service: fan.turn_off
action: fan.turn_off
target:
entity_id: fan.nursery
- conditions:
@@ -127,7 +127,7 @@ action:
state: "off"
sequence:
- alias: "Turn nursery fan off because room isn't occupied"
service: fan.turn_off
action: fan.turn_off
target:
entity_id: fan.nursery
- conditions:
@@ -141,7 +141,7 @@ action:
state: "on"
sequence:
- alias: "Turn nursery fan off because the room is too cool"
service: fan.turn_off
action: fan.turn_off
target:
entity_id: fan.nursery
- conditions:
@@ -155,7 +155,7 @@ action:
sequence:
- alias: "Turn nursery fan on to percentage speed"
service: fan.set_percentage
action: fan.set_percentage
target:
entity_id: fan.nursery
data:
@@ -172,7 +172,7 @@ action:
sequence:
- alias: "Turn nursery fan on to percentage speed"
service: fan.set_percentage
action: fan.set_percentage
target:
entity_id: fan.nursery
data:
@@ -189,7 +189,7 @@ action:
sequence:
- alias: "Turn nursery fan on to percentage speed"
service: fan.set_percentage
action: fan.set_percentage
target:
entity_id: fan.nursery
data:
@@ -204,7 +204,7 @@ action:
below: input_number.master_bedroom_fan_min_temp
sequence:
- alias: "Turn master bedroom fan off because it is too cold outside"
service: fan.turn_off
action: fan.turn_off
target:
entity_id: fan.master_bedroom
- conditions:
@@ -226,7 +226,7 @@ action:
state: "off"
sequence:
- alias: "Turn master bedroom fan off because room isn't occupied"
service: fan.turn_off
action: fan.turn_off
target:
entity_id: fan.master_bedroom
@@ -241,7 +241,7 @@ action:
state: "on"
sequence:
- alias: "Turn master bedroom fan off because the room is too cool"
service: fan.turn_off
action: fan.turn_off
target:
entity_id: fan.master_bedroom
@@ -256,7 +256,7 @@ action:
sequence:
- alias: "Turn master bedroom fan on to percentage speed"
service: fan.set_percentage
action: fan.set_percentage
target:
entity_id: fan.master_bedroom
data:
@@ -273,7 +273,7 @@ action:
sequence:
- alias: "Turn master bedroom fan on to percentage speed"
service: fan.set_percentage
action: fan.set_percentage
target:
entity_id: fan.master_bedroom
data:
@@ -290,7 +290,7 @@ action:
sequence:
- alias: "Turn master bedroom fan on to percentage speed"
service: fan.set_percentage
action: fan.set_percentage
target:
entity_id: fan.master_bedroom
data:
+4 -4
View File
@@ -10,13 +10,13 @@ trigger:
action:
#- alias: "Clear segment first"
# service: rest_command.bridget_clear
# action: rest_command.bridget_clear
#- alias: "Call new WLED segment settings"
# service: "rest_command.bridget_{{states('input_select.bridget_wled') | string | lower | replace(' ','_') }}"
# action: "rest_command.bridget_{{states('input_select.bridget_wled') | string | lower | replace(' ','_') }}"
- alias: "Update select.white_bed_wled_preset"
service: select.select_option
action: select.select_option
data:
option: "{{states('input_select.bridget_wled')}}"
target:
entity_id: select.white_bed_wled_preset
entity_id: select.white_bed_wled_preset
+12 -12
View File
@@ -1,4 +1,4 @@
initial_state: 'on'
initial_state: "on"
id: automation_car_away
alias: Car Away
trigger:
@@ -6,24 +6,24 @@ trigger:
entity_id:
- binary_sensor.gray_suv_east_side
- binary_sensor.gray_suv_west_side
to: 'off'
for: '00:00:30'
to: "off"
for: "00:00:30"
- platform: homeassistant
event: start
condition:
- condition: state
entity_id: input_boolean.car_home
state: 'on'
state: "on"
- condition: and
conditions:
- condition: state
entity_id: binary_sensor.gray_suv_east_side
state: 'off'
- condition: state
entity_id: binary_sensor.gray_suv_west_side
state: 'off'
- condition: state
entity_id: binary_sensor.gray_suv_east_side
state: "off"
- condition: state
entity_id: binary_sensor.gray_suv_west_side
state: "off"
action:
- service: input_boolean.turn_off
entity_id: input_boolean.car_home
- action: input_boolean.turn_off
entity_id: input_boolean.car_home
+17 -17
View File
@@ -1,4 +1,4 @@
initial_state: 'on'
initial_state: "on"
id: automation_car_home
alias: Car Home
trigger:
@@ -6,29 +6,29 @@ trigger:
entity_id:
- binary_sensor.gray_suv_east_side
- binary_sensor.gray_suv_west_side
to: 'on'
to: "on"
- platform: homeassistant
event: start
condition:
- condition: state
entity_id: input_boolean.car_home
state: 'off'
state: "off"
- condition: or
conditions:
- condition: state
entity_id: binary_sensor.gray_suv_east_side
state: 'on'
- condition: state
entity_id: binary_sensor.gray_suv_west_side
state: 'on'
- condition: state
entity_id: binary_sensor.east_side_vehicle_occupancy
state: 'on'
- condition: state
entity_id: binary_sensor.west_side_vehicle_occupancy
state: 'on'
- condition: state
entity_id: binary_sensor.gray_suv_east_side
state: "on"
- condition: state
entity_id: binary_sensor.gray_suv_west_side
state: "on"
- condition: state
entity_id: binary_sensor.east_side_vehicle_occupancy
state: "on"
- condition: state
entity_id: binary_sensor.west_side_vehicle_occupancy
state: "on"
action:
- service: input_boolean.turn_on
entity_id: input_boolean.car_home
- action: input_boolean.turn_on
entity_id: input_boolean.car_home
+12 -12
View File
@@ -47,12 +47,12 @@ action:
# state: 'on'
sequence:
- service: input_boolean.turn_off
- action: input_boolean.turn_off
data: {}
target:
entity_id:
- input_boolean.announce_dishwasher_done
- service: input_boolean.turn_on
- action: input_boolean.turn_on
data: {}
target:
entity_id:
@@ -60,20 +60,20 @@ action:
# - input_boolean.announcement_pending
- choose:
- conditions:
- "{{is_state('binary_sensor.dreambox_recently_active','on') }}"
- conditions:
- "{{is_state('binary_sensor.dreambox_recently_active','on') }}"
sequence:
- service: notify.dreambox
data:
message: The dishwasher is done
sequence:
- action: notify.dreambox
data:
message: The dishwasher is done
- choose:
- conditions:
- "{{is_state('binary_sensor.dreamsurface_recently_active','on') }}"
- "{{is_state('binary_sensor.dreamsurface_recently_active','on') }}"
sequence:
- service: notify.dreamsurface
- action: notify.dreamsurface
data:
message: The dishwasher is done
@@ -84,7 +84,7 @@ action:
state: "off"
sequence:
- service: notify.mobile_app_pixel_7
- action: notify.mobile_app_pixel_7
data:
message: The dishwasher is done
data:
@@ -95,7 +95,7 @@ action:
- delay:
minutes: 30
- service: input_boolean.turn_off
- action: input_boolean.turn_off
data: {}
target:
entity_id:
+4 -4
View File
@@ -10,13 +10,13 @@ trigger:
action:
#- alias: "Clear segment first"
# service: rest_command.emmett_clear
# action: rest_command.emmett_clear
#- alias: "Call new WLED segment settings"
# service: "rest_command.emmett_{{states('input_select.emmett_wled') | string | lower | replace(' ','_') }}"
# action: "rest_command.emmett_{{states('input_select.emmett_wled') | string | lower | replace(' ','_') }}"
- alias: "Update select.black_bed_wled_preset"
service: select.select_option
action: select.select_option
data:
option: "{{states('input_select.emmett_wled')}}"
target:
entity_id: select.black_bed_wled_preset
entity_id: select.black_bed_wled_preset
+14 -14
View File
@@ -1,6 +1,6 @@
alias: Handle Clints Meds
id: automation_handle_clints_meds
description: 'Manage the booleans associated with Clints meds'
description: "Manage the booleans associated with Clints meds"
trigger:
- id: homeassistant_start
platform: homeassistant
@@ -14,21 +14,21 @@ trigger:
action:
- choose:
- conditions:
- condition: state
entity_id:
- input_boolean.clint_needs_am_meds
- input_boolean.clint_needs_pm_meds
state: 'off'
- conditions:
- condition: state
entity_id:
- input_boolean.clint_needs_am_meds
- input_boolean.clint_needs_pm_meds
state: "off"
sequence:
- service: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.clint_needs_meds
sequence:
- action: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.clint_needs_meds
default:
- service: input_boolean.turn_on
- action: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.clint_needs_meds
entity_id: input_boolean.clint_needs_meds
@@ -32,7 +32,7 @@ action:
id: going_to_bed
sequence:
- service: button.press
- action: button.press
data: {}
target:
entity_id: button.dreamsurface_low_brightness
@@ -42,7 +42,7 @@ action:
id: waking_up
sequence:
- service: button.press
- action: button.press
data: {}
target:
entity_id: button.dreamsurface_normal_brightness
entity_id: button.dreamsurface_normal_brightness
+4 -5
View File
@@ -1,13 +1,13 @@
alias: Handle Jasco Buttons
id: automation_handle_jasco_buttons
description: 'Tries to catch all of the buttons pressed on any of the Jasco switches.'
description: "Tries to catch all of the buttons pressed on any of the Jasco switches."
mode: queued
variables:
# Map scanner device ID to media player entity ID
sources:
9975a90a307974388d6655c5a1bbba75: entryway_motion_switch
ac9942c01ebc59124e6ca3bb0597dc50: bathroom_vent_switch
5b2a9ae622deb2c1276f4bb772f709bf: blue_room_motion_switch
5b2a9ae622deb2c1276f4bb772f709bf: boys_room_motion_switch
ae49ef7725fa7ca095f8bcd6bcce355e: dining_room_motion_switch
d3e866b0495a5793d8bc7d0e1530d44b: driveway_switch
64aefd7592f9792796f2b15a033b0c26: front_room_motion_switch
@@ -25,7 +25,6 @@ variables:
8d77dcb0ee41302d5de67b4c333f5099: utility_room_motion_switch
b3f9869ae389ab96de294152b43f40a3: utility_room_vent_switch
trigger:
- platform: event
event_type: zwave_js_value_notification
@@ -41,7 +40,7 @@ action:
value_raw: "{{ trigger.event.data.value_raw }}"
#value: "{{ tags[trigger.event.data.tag_id].light_command }}"
- service: logbook.log
- action: logbook.log
data_template:
name: Handle Jasco Buttons
entity_id: automation.handle_jasco_buttons
@@ -50,4 +49,4 @@ action:
Command Class: {{ command_class }}
Command Class Name: {{ command_class_name }}
Value: {{ value }}
Value Raw: {{ value_raw }}
Value Raw: {{ value_raw }}
+48 -49
View File
@@ -15,7 +15,7 @@ variables:
04-AE-91-3A-B4-6D-80:
input_select: nursery_wled
select_option: Read
light_command: 'No change'
light_command: "No change"
#preset: 6
#lights: light.black_bed_wled, light.white_bed_wled
@@ -23,7 +23,7 @@ variables:
04-8F-50-3A-B4-6D-80:
input_select: nursery_wled
select_option: Bedtime
light_command: 'No change'
light_command: "No change"
#preset: 3
#lights: light.black_bed_wled, light.white_bed_wled
@@ -31,7 +31,7 @@ variables:
04-16-E1-3A-B4-6D-81:
input_select: bridget_wled
select_option: Bouncing Balls
light_command: 'No change'
light_command: "No change"
#preset: 13
#lights: light.white_bed_wled
@@ -39,7 +39,7 @@ variables:
04-32-FB-3A-B4-6D-81:
input_select: emmett_wled
select_option: Bouncing Balls
light_command: 'No change'
light_command: "No change"
#preset: 13
#lights: light.black_bed_wled
@@ -47,7 +47,7 @@ variables:
04-09-F8-3A-B4-6D-81:
input_select: bridget_wled
select_option: Fireworks
light_command: 'No change'
light_command: "No change"
#preset: 4
#lights: light.white_bed_wled
@@ -55,7 +55,7 @@ variables:
04-F0-E1-3A-B4-6D-80:
input_select: emmett_wled
select_option: Fireworks
light_command: 'No change'
light_command: "No change"
#preset: 4
#lights: light.black_bed_wled
@@ -63,31 +63,31 @@ variables:
04-7C-B8-3A-B4-6D-80:
input_select: nursery_wled
select_option: Twinkle
light_command: 'No change'
light_command: "No change"
#preset: 2
#lights: light.black_bed_wled, light.white_bed_wled
# Lights:Dim
04-98-2F-3A-B4-6D-80:
input_select: nursery_wled
select_option: 'Off'
light_command: 'Dimmed'
select_option: "Off"
light_command: "Dimmed"
#preset: -2
#lights: light.black_bed_wled, light.white_bed_wled
# Lights: Normal
04-0C-22-3A-B4-6D-81:
input_select: nursery_wled
select_option: 'Off'
light_command: 'Auto'
select_option: "Off"
light_command: "Auto"
#preset: -1
#lights: light.black_bed_wled, light.white_bed_wled
# Lights: Off
04-6D-46-3A-B4-6D-81:
input_select: nursery_wled
select_option: 'Off'
light_command: 'Off'
select_option: "Off"
light_command: "Off"
#preset: 0
#lights: light.black_bed_wled, light.white_bed_wled
trigger:
@@ -106,7 +106,7 @@ action:
select_option: "{{ tags[trigger.event.data.tag_id].select_option }}"
light_command: "{{ tags[trigger.event.data.tag_id].light_command }}"
- service: logbook.log
- action: logbook.log
data_template:
name: Handle Light Tag Scan
entity_id: automation.handle_light_tag_scan
@@ -114,47 +114,46 @@ action:
Tag {{ trigger.event.data.tag_id }} scanned on device {{ trigger.event.data.device_id }}. input_select: {{ input_select }} - select_option: {{ select_option }}
- choose:
- conditions:
- condition: template
value_template: "{{ light_command | string != 'No change'}}"
sequence:
- service: input_select.select_option
data:
entity_id: input_select.nursery_mode
option: "{{ light_command }}"
- conditions:
- condition: template
value_template: "{{ light_command | string != 'No change'}}"
sequence:
- action: input_select.select_option
data:
entity_id: input_select.nursery_mode
option: "{{ light_command }}"
- conditions:
- condition: template
value_template: "{{ input_select | string == 'nursery_wled'}}"
sequence:
- service: input_select.select_option
data:
entity_id: input_select.nursery_wled
option: "{{ select_option }}"
- conditions:
- condition: template
value_template: "{{ input_select | string == 'nursery_wled'}}"
sequence:
- action: input_select.select_option
data:
entity_id: input_select.nursery_wled
option: "{{ select_option }}"
- conditions:
- condition: template
value_template: "{{ input_select | string == 'bridget_wled'}}"
sequence:
- service: select.select_option
data:
entity_id: select.white_bed_wled_preset
option: "{{ select_option }}"
- conditions:
- condition: template
value_template: "{{ input_select | string == 'bridget_wled'}}"
sequence:
- action: select.select_option
data:
entity_id: select.white_bed_wled_preset
option: "{{ select_option }}"
- conditions:
- condition: template
value_template: "{{ input_select | string == 'emmett_wled'}}"
sequence:
- service: select.select_option
data:
entity_id: select.black_bed_wled_preset
option: "{{ select_option }}"
- conditions:
- condition: template
value_template: "{{ input_select | string == 'emmett_wled'}}"
sequence:
- action: select.select_option
data:
entity_id: select.black_bed_wled_preset
option: "{{ select_option }}"
# - service: input_select.select_option
# - action: input_select.select_option
# data:
# option: "{{ select_option }}"
# target:
# entity_id: "input_select.{{ input_select }}"
- delay: 2 # timeout before we allow processing next scan
- delay: 2 # timeout before we allow processing next scan
+37 -37
View File
@@ -7,7 +7,7 @@ max_exceeded: silent
variables:
# Map scanner device ID to media player entity ID
sources:
299e280bcc3579ca9b3ef714677dbf9b: nursery_hub
299e280bcc3579ca9b3ef714677dbf9b: girls_room_hub
75060fd1afdd90be: upstairs_speakers
# Map tag ID to content
tags:
@@ -15,105 +15,105 @@ variables:
04-59-32-3A-B4-6D-81:
media_content_id: hL1m4__BUPs
media_content_type: track
shuffle: 'off'
repeat: 'off'
shuffle: "off"
repeat: "off"
# Song: Three Little Birds
04-1D-6D-3A-B4-6D-80:
media_content_id: g3U6YQiIHc0
media_content_type: track
shuffle: 'off'
repeat: 'off'
shuffle: "off"
repeat: "off"
# Song: Don't Worry Be Happy
04-D4-9A-3A-B4-6D-80:
media_content_id: qTuntvl6oLQ
media_content_type: track
shuffle: 'off'
repeat: 'off'
shuffle: "off"
repeat: "off"
# Song: Lollipop
04-AD-10-3A-B4-6D-84:
media_content_id: Yw0qIyZMtH8
media_content_type: track
shuffle: 'off'
repeat: 'off'
shuffle: "off"
repeat: "off"
# Song: Life is a Highway
04-F6-5D-3A-B4-6D-80:
media_content_id: 8v9V6oNGAvw
media_content_type: track
shuffle: 'off'
repeat: 'off'
shuffle: "off"
repeat: "off"
# Song: Gummy Bear
04-6C-29-3A-B4-6D-80:
media_content_id: n-PzpfWclIE
media_content_type: track
shuffle: 'off'
repeat: 'off'
shuffle: "off"
repeat: "off"
# Song: Yellow Submarine
04-CE-D2-3A-B4-6D-80:
media_content_id: j_JaDDcyIIU
media_content_type: track
shuffle: 'off'
repeat: 'off'
shuffle: "off"
repeat: "off"
# Song: Day-O
04-A2-41-3A-B4-6D-80:
media_content_id: DYYkJ0kwNss
media_content_type: track
shuffle: 'off'
repeat: 'off'
shuffle: "off"
repeat: "off"
# Song: We Are Family
04-2B-23-3A-B4-6D-81:
media_content_id: jdsqht1m1rE
media_content_type: track
shuffle: 'off'
repeat: 'off'
shuffle: "off"
repeat: "off"
# Song: The Cat Came Back
04-63-CB-3A-B4-6D-81:
media_content_id: LjMffHG1V_Q
media_content_type: track
shuffle: 'off'
repeat: 'off'
shuffle: "off"
repeat: "off"
# Song: Ooga Chaka
04-7A-CC-3A-B4-6D-81:
media_content_id: 7q0UTFq-o-o
media_content_type: track
shuffle: 'off'
repeat: 'off'
shuffle: "off"
repeat: "off"
# Song: Big Girls Don't Cry
04-6F-2D-3A-B4-6D-80:
media_content_id: HV-9NaF4KXE
media_content_type: track
shuffle: 'off'
repeat: 'off'
shuffle: "off"
repeat: "off"
# Song: Walk the Dinosaur
04-A3-A9-3A-B4-6D-80:
media_content_id: 3CA9prE6pKs
media_content_type: track
shuffle: 'off'
repeat: 'off'
shuffle: "off"
repeat: "off"
# Room: Master Bathroom
04-57-86-8A-21-6E-81:
media_content_id: MPREb_iNWH4dO6PQO
media_content_type: album
shuffle: 'off'
repeat: 'off'
shuffle: "off"
repeat: "off"
# Song: Kids Playlist
04-69-CA-3A-B4-6D-80:
media_content_id: PLtfKVM9o2_5ag5qC9nHxl7tKBvGRnh2HM
media_content_type: playlist
shuffle: 'off'
repeat: 'all'
shuffle: "off"
repeat: "all"
trigger:
platform: event
event_type: tag_scanned
@@ -129,31 +129,31 @@ action:
shuffle: "{{ tags[trigger.event.data.tag_id].shuffle }}"
repeat: "{{ tags[trigger.event.data.tag_id].repeat }}"
- service: logbook.log
- action: logbook.log
data_template:
name: Handle Music Tag Scan
entity_id: automation.handle_music_tag_scan
message: >
Tag {{ trigger.event.data.tag_id }} scanned on device {{ trigger.event.data.device_id }}
- service: media_player.select_source
- action: media_player.select_source
data:
source: "{{ source }}"
entity_id: media_player.ytube_music_player
- service: media_player.shuffle_set
- action: media_player.shuffle_set
data:
shuffle: "{{ shuffle }}"
entity_id: media_player.ytube_music_player
- service: media_player.repeat_set
- action: media_player.repeat_set
data:
repeat: "{{ repeat }}"
entity_id: media_player.ytube_music_player
- service: media_player.play_media
- action: media_player.play_media
data:
entity_id: media_player.ytube_music_player
media_content_id: "{{ media_content_id }}"
media_content_type: "{{ media_content_type }}"
- delay: 2 # timeout before we allow processing next scan
- delay: 2 # timeout before we allow processing next scan
+15 -15
View File
@@ -8,7 +8,7 @@ max_exceeded: silent
variables:
# Map scanner device ID to media player entity ID
sources:
299e280bcc3579ca9b3ef714677dbf9b: nursery_hub
299e280bcc3579ca9b3ef714677dbf9b: girls_room_hub
75060fd1afdd90be: front_room_hub
# Map tag ID to content
tags:
@@ -16,26 +16,26 @@ variables:
04-59-32-3A-B4-6D-81:
media_content_id: hL1m4__BUPs
media_content_type: track
shuffle: 'off'
repeat: 'off'
shuffle: "off"
repeat: "off"
# Song: Three Little Birds
04-1D-6D-3A-B4-6D-80:
media_content_id: g3U6YQiIHc0
media_content_type: track
shuffle: 'off'
repeat: 'off'
shuffle: "off"
repeat: "off"
# Song: Don't Worry Be Happy
04-D4-9A-3A-B4-6D-80:
media_content_id: qTuntvl6oLQ
media_content_type: track
shuffle: 'off'
repeat: 'off'
shuffle: "off"
repeat: "off"
# Room: Master Bathroom
04-57-86-8A-21-6E-81:
media_content_id: MPREb_iNWH4dO6PQO
media_content_type: album
shuffle: 'off'
repeat: 'off'
shuffle: "off"
repeat: "off"
trigger:
platform: event
event_type: tag_scanned
@@ -51,31 +51,31 @@ action:
shuffle: "{{ tags[trigger.event.data.tag_id].shuffle }}"
repeat: "{{ tags[trigger.event.data.tag_id].repeat }}"
- service: logbook.log
- action: logbook.log
data_template:
name: Handle Tag Scan Example
entity_id: automation.handle_tag_scan_example
message: >
Tag {{ trigger.event.data.tag_id }} scanned on device {{ trigger.event.data.device_id }}
- service: media_player.select_source
- action: media_player.select_source
data:
source: "{{ source }}"
entity_id: media_player.ytube_music_player
- service: media_player.shuffle_set
- action: media_player.shuffle_set
data:
shuffle: "{{ shuffle }}"
entity_id: media_player.ytube_music_player
- service: media_player.repeat_set
- action: media_player.repeat_set
data:
repeat: "{{ repeat }}"
entity_id: media_player.ytube_music_player
- service: media_player.play_media
- action: media_player.play_media
data:
entity_id: media_player.ytube_music_player
media_content_id: "{{ media_content_id }}"
media_content_type: "{{ media_content_type }}"
- delay: 2 # timeout before we allow processing next scan
- delay: 2 # timeout before we allow processing next scan
@@ -7,7 +7,7 @@ max_exceeded: silent
variables:
# Map scanner device ID to media player entity ID
devices:
299e280bcc3579ca9b3ef714677dbf9b: media_player.nursery_hub
299e280bcc3579ca9b3ef714677dbf9b: media_player.girls_room_hub
# Map tag ID to content
tags:
@@ -54,21 +54,21 @@ action:
video_id: "{{ tags[trigger.event.data.tag_id].video_id }}"
playlist_id: "{{ tags[trigger.event.data.tag_id].playlist_id }}"
- service: logbook.log
- action: logbook.log
data_template:
name: Handle Video Tag Scan
entity_id: automation.handle_video_tag_scan
message: >
Tag {{ trigger.event.data.tag_id }} scanned on device {{ trigger.event.data.device_id }}
- service: media_player.play_media
- action: media_player.play_media
data:
entity_id: "{{ device }}"
media_content_id: '
{
"app_name": "{{ app_name }}",
"media_id": "{{ video_id }}",
"playlist_id": "{{ playlist_id }}"
"app_name": "{{ app_name }}",
"media_id": "{{ video_id }}",
"playlist_id": "{{ playlist_id }}"
}'
media_content_type: cast
- delay: 2 # timeout before we allow processing next scan
- delay: 2 # timeout before we allow processing next scan
+1 -1
View File
@@ -52,6 +52,6 @@ action:
state: "playing"
sequence:
- alias: "Announce that the coffee is ready"
service: script.make_clever_announcement
action: script.make_clever_announcement
data:
media_content_id: media-source://media_source/tts/coffee_ready.mp3
+2 -2
View File
@@ -44,7 +44,7 @@ action:
state: "on"
sequence:
- service: script.make_clever_announcement
- action: script.make_clever_announcement
data:
media_content_id: media-source://media_source/tts/kitchen_fridge_open_too_long.mp3
@@ -55,7 +55,7 @@ action:
state: "off"
sequence:
- service: notify.mobile_app_pixel_7
- action: notify.mobile_app_pixel_7
data:
message: The kitchen fridge has been open for too long!
@@ -17,8 +17,8 @@ condition:
action:
- alias: "Set Master Bedroom Dimmer to 255"
service: light.turn_on
action: light.turn_on
target:
entity_id: light.master_bedroom_dimmer_main
data:
brightness: 255
brightness: 255
+16 -18
View File
@@ -22,24 +22,22 @@ trigger:
action:
- choose:
- conditions:
- condition: numeric_state
entity_id: sensor.mail_usps_mail
above: 0
- conditions:
- condition: numeric_state
entity_id: sensor.mail_usps_mail
above: 0
sequence:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.incoming_mail
- conditions:
- condition: numeric_state
entity_id: sensor.mail_usps_mail
below: 1
sequence:
- service: input_boolean.turn_off
target:
entity_id: input_boolean.incoming_mail
sequence:
- action: input_boolean.turn_on
target:
entity_id: input_boolean.incoming_mail
- conditions:
- condition: numeric_state
entity_id: sensor.mail_usps_mail
below: 1
sequence:
- action: input_boolean.turn_off
target:
entity_id: input_boolean.incoming_mail
+2 -2
View File
@@ -17,8 +17,8 @@ condition:
action:
- alias: "Set Nursery Dimmer to 255"
service: light.turn_on
action: light.turn_on
target:
entity_id: light.nursery_dimmer_main
data:
brightness: 255
brightness: 255
+4 -4
View File
@@ -10,15 +10,15 @@ trigger:
action:
#- alias: "Clear segment first"
# service: rest_command.bridget_clear
# action: rest_command.bridget_clear
#- alias: "Call new WLED segment settings"
# service: "rest_command.bridget_{{states('input_select.bridget_wled') | string | lower | replace(' ','_') }}"
# action: "rest_command.bridget_{{states('input_select.bridget_wled') | string | lower | replace(' ','_') }}"
- alias: "Update wled presets for both beds"
service: select.select_option
action: select.select_option
data:
option: "{{states('input_select.nursery_wled')}}"
target:
entity_id:
- select.black_bed_wled_preset
- select.white_bed_wled_preset
- select.white_bed_wled_preset
+7 -7
View File
@@ -4,24 +4,24 @@ id: automation_reset_climate
trigger:
- platform: state
entity_id: group.my_hvac_affecting_openings
to: 'off'
for: '00:00:03'
to: "off"
for: "00:00:03"
condition:
- condition: state
entity_id: group.my_hvac_affecting_openings
state: 'off'
state: "off"
- condition: state
entity_id: climate.thermostat
state: 'off'
state: "off"
action:
- service: climate.turn_on
- action: climate.turn_on
target:
entity_id: climate.thermostat
- service: climate.set_preset_mode
- action: climate.set_preset_mode
target:
entity_id: climate.thermostat
data:
preset_mode: 'auto'
preset_mode: "auto"
+32 -32
View File
@@ -12,42 +12,42 @@ trigger:
- id: boolean_turned_on
platform: state
entity_id: input_boolean.restart_modem
from: 'off'
to: 'on'
from: "off"
to: "on"
action:
- choose:
- conditions:
- condition: trigger
id: button_pressed
sequence:
- alias: Create a persistent notification for testing
service: persistent_notification.create
data:
message: "The modem would have restarted at {{now()}}"
title: "Modem restarting"
- conditions:
- condition: trigger
id: button_pressed
sequence:
- alias: Create a persistent notification for testing
action: persistent_notification.create
data:
message: "The modem would have restarted at {{now()}}"
title: "Modem restarting"
- conditions:
- condition: trigger
id: boolean_turned_on
sequence:
- alias: Turn off switch controlling modem
service: switch.turn_off
data: {}
target:
entity_id: switch.furnace_room_plug
- conditions:
- condition: trigger
id: boolean_turned_on
sequence:
- alias: Turn off switch controlling modem
action: switch.turn_off
data: {}
target:
entity_id: switch.furnace_room_plug
- alias: Wait for 10 seconds
delay: '00:00:10'
- alias: Wait for 10 seconds
delay: "00:00:10"
- alias: Turn on switch controlling modem
service: switch.turn_on
data: {}
target:
entity_id: switch.furnace_room_plug
- alias: Turn on switch controlling modem
action: switch.turn_on
data: {}
target:
entity_id: switch.furnace_room_plug
- alias: Turn of input_boolean controlling the restart
service: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.restart_modem
- alias: Turn of input_boolean controlling the restart
action: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.restart_modem
+44 -45
View File
@@ -12,58 +12,57 @@ trigger:
- id: boolean_turned_on
platform: state
entity_id: input_boolean.restart_network
from: 'off'
to: 'on'
from: "off"
to: "on"
action:
- choose:
- conditions:
- condition: trigger
id: button_pressed
sequence:
- alias: Create a persistent notification for testing
service: persistent_notification.create
data:
message: "The network would have restarted at {{now()}}"
title: "Network restarting"
- conditions:
- condition: trigger
id: button_pressed
sequence:
- alias: Create a persistent notification for testing
action: persistent_notification.create
data:
message: "The network would have restarted at {{now()}}"
title: "Network restarting"
- conditions:
- condition: trigger
id: boolean_turned_on
sequence:
- alias: Turn off switch controlling router
service: switch.turn_off
data: {}
target:
entity_id: switch.computer_area_double_power_plug_router
- conditions:
- condition: trigger
id: boolean_turned_on
sequence:
- alias: Turn off switch controlling router
action: switch.turn_off
data: {}
target:
entity_id: switch.computer_area_double_power_plug_router
- alias: Turn off switch controlling modem
service: switch.turn_off
data: {}
target:
entity_id: switch.computer_area_double_power_plug_modem
- alias: Turn off switch controlling modem
action: switch.turn_off
data: {}
target:
entity_id: switch.computer_area_double_power_plug_modem
- alias: Waiting for 10 seconds
delay: '00:00:10'
- alias: Waiting for 10 seconds
delay: "00:00:10"
- alias: Turn on switch controlling modem
service: switch.turn_on
data: {}
target:
entity_id: switch.computer_area_double_power_plug_modem
- alias: Turn on switch controlling modem
action: switch.turn_on
data: {}
target:
entity_id: switch.computer_area_double_power_plug_modem
- alias: Waiting for 10 seconds
delay: '00:00:10'
- alias: Waiting for 10 seconds
delay: "00:00:10"
- alias: Turn on switch controlling router
service: switch.turn_on
data: {}
target:
entity_id: switch.computer_area_double_power_plug_router
- alias: Turn of input_boolean controlling the restart
service: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.restart_network
- alias: Turn on switch controlling router
action: switch.turn_on
data: {}
target:
entity_id: switch.computer_area_double_power_plug_router
- alias: Turn of input_boolean controlling the restart
action: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.restart_network
+32 -35
View File
@@ -12,44 +12,41 @@ trigger:
- id: boolean_turned_on
platform: state
entity_id: input_boolean.restart_router
from: 'off'
to: 'on'
from: "off"
to: "on"
action:
- choose:
- conditions:
- condition: trigger
id: button_pressed
sequence:
- alias: Create a persistent notification for testing
service: persistent_notification.create
data:
message: "The router would have restarted at {{now()}}"
title: "Router restarting"
- conditions:
- condition: trigger
id: boolean_turned_on
sequence:
- alias: Turn off switch controlling router
service: switch.turn_off
data: {}
target:
entity_id: switch.computer_area_double_power_plug_router
- alias: Wait for 10 seconds
delay: '00:00:10'
- alias: Turn on switch controlling router
service: switch.turn_on
data: {}
target:
entity_id: switch.computer_area_double_power_plug_router
- alias: Turn of input_boolean controlling the restart
service: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.restart_router
- conditions:
- condition: trigger
id: button_pressed
sequence:
- alias: Create a persistent notification for testing
action: persistent_notification.create
data:
message: "The router would have restarted at {{now()}}"
title: "Router restarting"
- conditions:
- condition: trigger
id: boolean_turned_on
sequence:
- alias: Turn off switch controlling router
action: switch.turn_off
data: {}
target:
entity_id: switch.computer_area_double_power_plug_router
- alias: Wait for 10 seconds
delay: "00:00:10"
- alias: Turn on switch controlling router
action: switch.turn_on
data: {}
target:
entity_id: switch.computer_area_double_power_plug_router
- alias: Turn of input_boolean controlling the restart
action: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.restart_router
+2 -2
View File
@@ -13,10 +13,10 @@ condition:
- alias: "VR switch is powered off"
condition: state
entity_id: switch.virtual_reality
state: 'off'
state: "off"
action:
- alias: "Turn on the VR Headset plug"
service: switch.turn_on
action: switch.turn_on
target:
entity_id: switch.virtual_reality
+2 -2
View File
@@ -15,10 +15,10 @@ condition:
- alias: "VR switch is powered on"
condition: state
entity_id: switch.virtual_reality
state: 'on'
state: "on"
action:
- alias: "Turn off the VR Headset plug"
service: switch.turn_off
action: switch.turn_off
target:
entity_id: switch.virtual_reality
@@ -27,10 +27,10 @@ trigger:
# state: 'today'
action:
- choose:
- conditions:
- condition: trigger
id: trash-day-end
sequence:
- service: input_boolean.turn_off
entity_id: input_boolean.trash_out
- choose:
- conditions:
- condition: trigger
id: trash-day-end
sequence:
- action: input_boolean.turn_off
entity_id: input_boolean.trash_out
+12 -12
View File
@@ -56,12 +56,12 @@ action:
# state: 'on'
sequence:
- service: input_boolean.turn_off
- action: input_boolean.turn_off
data: {}
target:
entity_id:
- input_boolean.announce_dryer_done
- service: input_boolean.turn_on
- action: input_boolean.turn_on
data: {}
target:
entity_id:
@@ -69,20 +69,20 @@ action:
# - input_boolean.announcement_pending
- choose:
- conditions:
- "{{ is_state('binary_sensor.dreambox_recently_active','on') }}"
- conditions:
- "{{ is_state('binary_sensor.dreambox_recently_active','on') }}"
sequence:
- service: notify.dreambox
data:
message: The dryer is done
sequence:
- action: notify.dreambox
data:
message: The dryer is done
- choose:
- conditions:
- "{{ is_state('binary_sensor.dreamsurface_recently_active','on') }}"
- "{{ is_state('binary_sensor.dreamsurface_recently_active','on') }}"
sequence:
- service: notify.dreamsurface
- action: notify.dreamsurface
data:
message: The dryer is done
@@ -93,7 +93,7 @@ action:
state: "off"
sequence:
- service: notify.mobile_app_pixel_7
- action: notify.mobile_app_pixel_7
data:
message: The dryer is done
data:
@@ -104,7 +104,7 @@ action:
- delay:
minutes: 15
- service: input_boolean.turn_off
- action: input_boolean.turn_off
data: {}
target:
entity_id:
+12 -12
View File
@@ -56,12 +56,12 @@ action:
# state: 'on'
sequence:
- service: input_boolean.turn_off
- action: input_boolean.turn_off
data: {}
target:
entity_id:
- input_boolean.announce_washing_machine_done
- service: input_boolean.turn_on
- action: input_boolean.turn_on
data: {}
target:
entity_id:
@@ -69,20 +69,20 @@ action:
# - input_boolean.announcement_pending
- choose:
- conditions:
- "{{is_state('binary_sensor.dreambox_recently_active','on') }}"
- conditions:
- "{{is_state('binary_sensor.dreambox_recently_active','on') }}"
sequence:
- service: notify.dreambox
data:
message: The washing machine is done
sequence:
- action: notify.dreambox
data:
message: The washing machine is done
- choose:
- conditions:
- "{{is_state('binary_sensor.dreamsurface_recently_active','on') }}"
- "{{is_state('binary_sensor.dreamsurface_recently_active','on') }}"
sequence:
- service: notify.dreamsurface
- action: notify.dreamsurface
data:
message: The washing machine is done
@@ -93,7 +93,7 @@ action:
state: "off"
sequence:
- service: notify.mobile_app_pixel_7
- action: notify.mobile_app_pixel_7
data:
message: The washing machine is done
data:
@@ -104,7 +104,7 @@ action:
- delay:
minutes: 15
- service: input_boolean.turn_off
- action: input_boolean.turn_off
data: {}
target:
entity_id: