A whole bunch of schtuff!

This commit is contained in:
CeeWeasel
2025-06-30 21:37:33 -04:00
parent 20322b2251
commit 919c396f8c
19 changed files with 72 additions and 61 deletions
@@ -1,35 +0,0 @@
alias: Frigate Notification Testing
id: automation_frigate_notification_testing
mode: single
max_exceeded: silent
trigger:
platform: mqtt
topic: frigate/events
condition:
- condition: or
conditions:
- "{{ 'driveway' in trigger.payload_json['after']['entered_zones'] }}"
- "{{ 'from_street' in trigger.payload_json['after']['entered_zones'] }}"
- "{{ trigger.payload_json['after']['label'] == 'person' }}"
- "{{ is_state('input_boolean.outdoor_snapshots','on') }}"
action:
- choose:
- conditions:
- "{{ 'driveway' in trigger.payload_json['after']['entered_zones'] }}"
- "{{ 'from_street' in trigger.payload_json['after']['entered_zones'] }}"
- "{{ trigger.payload_json['after']['top_score'] > 0.80 }}"
- "{{ not 'garage' in trigger.payload_json['before']['current_zones'] }}"
sequence:
- service: notify.mobile_app_pixel_7
data_template:
message: 'A {{trigger.payload_json["after"]["label"]}} entered the driveway.'
data:
image: 'https://automation.clintweaver.com/api/frigate/notifications/{{trigger.payload_json["after"]["id"]}}/thumbnail.jpg?format=android'
tag: '{{trigger.payload_json["after"]["id"]}}'
when: '{{trigger.payload_json["after"]["start_time"]|int}}'
- delay: '00:00:05'
@@ -27,13 +27,13 @@ action:
target:
entity_id: media_player.master_bedroom_clock
data:
media_content_id: media-source://media_source/local/Sounds/relaxing/thunderstorm.mp3
media_content_id: media-source://media_source/local/Sounds/relaxing/thunderstorm/thunderstorm.mp3
media_content_type: audio/mpeg
default:
- service: media_player.play_media
target:
entity_id: media_player.master_bedroom_clock
data:
media_content_id: media-source://media_source/local/Sounds/relaxing/thunderstorm.mp3
media_content_id: media-source://media_source/local/Sounds/relaxing/thunderstorm/thunderstorm.mp3
media_content_type: audio/mpeg
@@ -42,4 +42,23 @@ action:
attribute: current_playlist_title
state: "Kid's Goodnight Songs"
- service: script.goodnight_kids_youtube_music
#- service: script.goodnight_kids_youtube_music
- action: media_player.shuffle_set
data:
shuffle: false
target:
device_id: be28c87a729c28b9b27b540589895e20
- action: media_player.repeat_set
data:
repeat: all
target:
device_id: be28c87a729c28b9b27b540589895e20
- action: music_assistant.play_media
data:
media_id: library://playlist/3
media_type: playlist
enqueue: replace
target:
device_id: be28c87a729c28b9b27b540589895e20
@@ -38,7 +38,7 @@ action:
# target:
# entity_id: media_player.nursery_hub
# data:
# media_content_id: media-source://media_source/local/Sounds/relaxing/thunderstorm.mp3
# media_content_id: media-source://media_source/local/Sounds/relaxing/thunderstorm/thunderstorm.mp3
# media_content_type: audio/mpeg
@@ -1,14 +0,0 @@
alias: Notify of Frigate Events
id: automation_notify_of_frigate_events
initial_state: 'off'
trigger:
platform: mqtt
topic: frigate/events
action:
- service: notify.mobile_app_pixel_7
data:
message: 'A {{trigger.payload_json["after"]["label"]}} was detected.'
data:
image: 'https://automation.clintweaver.com/api/frigate/notifications/{{trigger.payload_json["after"]["id"]}}/thumbnail.jpg?format=android'
tag: '{{trigger.payload_json["after"]["id"]}}'
when: '{{trigger.payload_json["after"]["start_time"]|int}}'
+10
View File
@@ -0,0 +1,10 @@
# Example configuration.yaml
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 }}"
+2 -2
View File
@@ -134,7 +134,7 @@ script:
{% elif is_state("input_select.ambient_sound", "River") %} media-source://media_source/local/Sounds/relaxing/river.mp3
{% elif is_state("input_select.ambient_sound", "Female Rock-a-bye Baby") %} media-source://media_source/local/Sounds/relaxing/rock_a_bye_baby_hol.mp3
{% elif is_state("input_select.ambient_sound", "Male Rock-a-bye Baby") %} media-source://media_source/local/Sounds/relaxing/rock_a_bye_baby_jmp.mp3
{% elif is_state("input_select.ambient_sound", "Thunderstorm") %} media-source://media_source/local/Sounds/relaxing/thunderstorm.mp3
{% elif is_state("input_select.ambient_sound", "Thunderstorm") %} media-source://media_source/local/Sounds/relaxing/thunderstorm/thunderstorm.mp3
{% elif is_state("input_select.ambient_sound", "Female Twinkle Twinkle") %} media-source://media_source/local/Sounds/relaxing/twinkle_twinkle_hol.mp3
{% elif is_state("input_select.ambient_sound", "Male Twinkle Twinkle") %} media-source://media_source/local/Sounds/relaxing/twinkle_twinkle_jmp.mp3
{% elif is_state("input_select.ambient_sound", "White Noise") %} media-source://media_source/local/Sounds/relaxing/white_noise.mp3
@@ -144,7 +144,7 @@ script:
'media-source://media_source/local/Sounds/relaxing/oscillating_fan.mp3',
'media-source://media_source/local/Sounds/relaxing/rain.mp3',
'media-source://media_source/local/Sounds/relaxing/river.mp3',
'media-source://media_source/local/Sounds/relaxing/thunderstorm.mp3'] %}
'media-source://media_source/local/Sounds/relaxing/thunderstorm/thunderstorm.mp3'] %}
{{ noises|random }}
{% elif is_state("input_select.ambient_sound", "Random Kids Noise") %}
{% set noises = ['media-source://media_source/local/Sounds/relaxing/baby_shusher_hol.mp3',
+21
View File
@@ -0,0 +1,21 @@
# Example config/custom_sentences/en/media.yaml
language: "en"
intents:
SetVolume:
data:
- sentences:
- "(set|change) {media_player} volume to {volume} [percent]"
- "(set|change) [the] volume for {media_player} to {volume} [percent]"
lists:
media_player:
values:
- in: "front room"
out: "media_player.front_room_hub"
- in: "master bedroom"
out: "media_player.master_bedroom_clock"
- in: "downstairs"
out: "media_player.computer_area_hub"
volume:
range:
from: 0
to: 100
+1 -1
View File
@@ -32,7 +32,7 @@ font:
id: font1
size: 17
dallas:
dallas_temp:
- pin:
number: GPIO5 #D4
update_interval: 10s
+3
View File
@@ -75,4 +75,7 @@
- url: /hacsfiles/weather-card/weather-card.js
type: module
- url: /hacsfiles/mass-search-card/mass-search-card.js
type: module
- url: /local
+1
View File
@@ -4,5 +4,6 @@ sequence:
data:
entity_id: media_player.computer_area_hub
url: rtsp_cam03
force: true
extra:
mode: webrtc
@@ -4,5 +4,6 @@ sequence:
data:
entity_id: media_player.computer_area_hub
url: rtsp_cam03_sub
force: true
extra:
mode: webrtc
+1 -1
View File
@@ -3,6 +3,6 @@ sequence:
- service: webrtc.dash_cast
data:
entity_id: media_player.computer_area_hub
url: rtsp_cam08
url: rtsp_cam08_sub
extra:
mode: webrtc
+1
View File
@@ -4,5 +4,6 @@ sequence:
data:
entity_id: media_player.front_room_hub
url: rtsp_cam08_sub
force: true
extra:
mode: webrtc
+2 -1
View File
@@ -3,6 +3,7 @@ sequence:
- service: webrtc.dash_cast
data:
entity_id: media_player.computer_area_hub
url: rtsp://192.168.1.7:8554/rtsp_cam13_sub
url: rtsp_cam13_sub
force: true
extra:
mode: webrtc
+2 -1
View File
@@ -3,6 +3,7 @@ sequence:
- service: webrtc.dash_cast
data:
entity_id: media_player.front_room_hub
url: rtsp://192.168.1.7:8554/rtsp_cam13_sub
url: rtsp_cam13_sub
force: true
extra:
mode: webrtc
+2 -1
View File
@@ -3,6 +3,7 @@ sequence:
- service: webrtc.dash_cast
data:
entity_id: media_player.computer_area_hub
url: rtsp://192.168.1.7:8554/rtsp_cam19_sub
url: rtsp_cam19_sub
force: true
extra:
mode: webrtc
+2 -1
View File
@@ -3,6 +3,7 @@ sequence:
- service: webrtc.dash_cast
data:
entity_id: media_player.front_room_hub
url: rtsp://192.168.1.7:8554/rtsp_cam19_sub
url: rtsp_cam19_sub
force: true
extra:
mode: webrtc
Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB