mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
A whole bunch of schtuff!
This commit is contained in:
@@ -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:
|
target:
|
||||||
entity_id: media_player.master_bedroom_clock
|
entity_id: media_player.master_bedroom_clock
|
||||||
data:
|
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
|
media_content_type: audio/mpeg
|
||||||
default:
|
default:
|
||||||
- service: media_player.play_media
|
- service: media_player.play_media
|
||||||
target:
|
target:
|
||||||
entity_id: media_player.master_bedroom_clock
|
entity_id: media_player.master_bedroom_clock
|
||||||
data:
|
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
|
media_content_type: audio/mpeg
|
||||||
|
|
||||||
|
|||||||
@@ -42,4 +42,23 @@ action:
|
|||||||
attribute: current_playlist_title
|
attribute: current_playlist_title
|
||||||
state: "Kid's Goodnight Songs"
|
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:
|
# target:
|
||||||
# entity_id: media_player.nursery_hub
|
# entity_id: media_player.nursery_hub
|
||||||
# data:
|
# 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
|
# 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}}'
|
|
||||||
@@ -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 }}"
|
||||||
@@ -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", "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", "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", "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", "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", "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
|
{% 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/oscillating_fan.mp3',
|
||||||
'media-source://media_source/local/Sounds/relaxing/rain.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/river.mp3',
|
||||||
'media-source://media_source/local/Sounds/relaxing/thunderstorm.mp3'] %}
|
'media-source://media_source/local/Sounds/relaxing/thunderstorm/thunderstorm.mp3'] %}
|
||||||
{{ noises|random }}
|
{{ noises|random }}
|
||||||
{% elif is_state("input_select.ambient_sound", "Random Kids Noise") %}
|
{% elif is_state("input_select.ambient_sound", "Random Kids Noise") %}
|
||||||
{% set noises = ['media-source://media_source/local/Sounds/relaxing/baby_shusher_hol.mp3',
|
{% set noises = ['media-source://media_source/local/Sounds/relaxing/baby_shusher_hol.mp3',
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -32,7 +32,7 @@ font:
|
|||||||
id: font1
|
id: font1
|
||||||
size: 17
|
size: 17
|
||||||
|
|
||||||
dallas:
|
dallas_temp:
|
||||||
- pin:
|
- pin:
|
||||||
number: GPIO5 #D4
|
number: GPIO5 #D4
|
||||||
update_interval: 10s
|
update_interval: 10s
|
||||||
|
|||||||
@@ -75,4 +75,7 @@
|
|||||||
- url: /hacsfiles/weather-card/weather-card.js
|
- url: /hacsfiles/weather-card/weather-card.js
|
||||||
type: module
|
type: module
|
||||||
|
|
||||||
|
- url: /hacsfiles/mass-search-card/mass-search-card.js
|
||||||
|
type: module
|
||||||
|
|
||||||
- url: /local
|
- url: /local
|
||||||
@@ -4,5 +4,6 @@ sequence:
|
|||||||
data:
|
data:
|
||||||
entity_id: media_player.computer_area_hub
|
entity_id: media_player.computer_area_hub
|
||||||
url: rtsp_cam03
|
url: rtsp_cam03
|
||||||
|
force: true
|
||||||
extra:
|
extra:
|
||||||
mode: webrtc
|
mode: webrtc
|
||||||
@@ -4,5 +4,6 @@ sequence:
|
|||||||
data:
|
data:
|
||||||
entity_id: media_player.computer_area_hub
|
entity_id: media_player.computer_area_hub
|
||||||
url: rtsp_cam03_sub
|
url: rtsp_cam03_sub
|
||||||
|
force: true
|
||||||
extra:
|
extra:
|
||||||
mode: webrtc
|
mode: webrtc
|
||||||
@@ -3,6 +3,6 @@ sequence:
|
|||||||
- service: webrtc.dash_cast
|
- service: webrtc.dash_cast
|
||||||
data:
|
data:
|
||||||
entity_id: media_player.computer_area_hub
|
entity_id: media_player.computer_area_hub
|
||||||
url: rtsp_cam08
|
url: rtsp_cam08_sub
|
||||||
extra:
|
extra:
|
||||||
mode: webrtc
|
mode: webrtc
|
||||||
@@ -4,5 +4,6 @@ sequence:
|
|||||||
data:
|
data:
|
||||||
entity_id: media_player.front_room_hub
|
entity_id: media_player.front_room_hub
|
||||||
url: rtsp_cam08_sub
|
url: rtsp_cam08_sub
|
||||||
|
force: true
|
||||||
extra:
|
extra:
|
||||||
mode: webrtc
|
mode: webrtc
|
||||||
@@ -3,6 +3,7 @@ sequence:
|
|||||||
- service: webrtc.dash_cast
|
- service: webrtc.dash_cast
|
||||||
data:
|
data:
|
||||||
entity_id: media_player.computer_area_hub
|
entity_id: media_player.computer_area_hub
|
||||||
url: rtsp://192.168.1.7:8554/rtsp_cam13_sub
|
url: rtsp_cam13_sub
|
||||||
|
force: true
|
||||||
extra:
|
extra:
|
||||||
mode: webrtc
|
mode: webrtc
|
||||||
@@ -3,6 +3,7 @@ sequence:
|
|||||||
- service: webrtc.dash_cast
|
- service: webrtc.dash_cast
|
||||||
data:
|
data:
|
||||||
entity_id: media_player.front_room_hub
|
entity_id: media_player.front_room_hub
|
||||||
url: rtsp://192.168.1.7:8554/rtsp_cam13_sub
|
url: rtsp_cam13_sub
|
||||||
|
force: true
|
||||||
extra:
|
extra:
|
||||||
mode: webrtc
|
mode: webrtc
|
||||||
@@ -3,6 +3,7 @@ sequence:
|
|||||||
- service: webrtc.dash_cast
|
- service: webrtc.dash_cast
|
||||||
data:
|
data:
|
||||||
entity_id: media_player.computer_area_hub
|
entity_id: media_player.computer_area_hub
|
||||||
url: rtsp://192.168.1.7:8554/rtsp_cam19_sub
|
url: rtsp_cam19_sub
|
||||||
|
force: true
|
||||||
extra:
|
extra:
|
||||||
mode: webrtc
|
mode: webrtc
|
||||||
@@ -3,6 +3,7 @@ sequence:
|
|||||||
- service: webrtc.dash_cast
|
- service: webrtc.dash_cast
|
||||||
data:
|
data:
|
||||||
entity_id: media_player.front_room_hub
|
entity_id: media_player.front_room_hub
|
||||||
url: rtsp://192.168.1.7:8554/rtsp_cam19_sub
|
url: rtsp_cam19_sub
|
||||||
|
force: true
|
||||||
extra:
|
extra:
|
||||||
mode: webrtc
|
mode: webrtc
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 66 KiB |
Reference in New Issue
Block a user