Updated apps
This commit is contained in:
+288
-63
@@ -467,14 +467,14 @@
|
||||
- action: persistent_notification.create
|
||||
data:
|
||||
title: Dishwasher Filter Maintenance
|
||||
message: The dishwasher has completed 40 cycles. Please clean the physical mesh
|
||||
message: The dishwasher has completed 30 cycles. Please clean the physical mesh
|
||||
filter and press Reset on your dashboard.
|
||||
notification_id: dishwasher_filter_reminder
|
||||
- action: notify.notify
|
||||
metadata: {}
|
||||
data:
|
||||
title: Dishwasher Filter Maintenance
|
||||
message: The dishwasher has completed 40 cycles. Please clean the physical mesh
|
||||
message: The dishwasher has completed 30 cycles. Please clean the physical mesh
|
||||
filter and press Reset on your dashboard.
|
||||
mode: single
|
||||
- id: '1781283661169'
|
||||
@@ -701,45 +701,56 @@
|
||||
- id: '1781445544080'
|
||||
alias: 'Kitchen: Coffee Maker Cycle Status'
|
||||
description: 'Triggers on the high-wattage grinder spike. Dynamically waits for
|
||||
the cycle to finish: it requires a minimum of 4 minutes to pass AND the power
|
||||
to drop back to the TV baseline.'
|
||||
the cycle to finish: it requires a minimum of 1 minute to pass AND the power to
|
||||
drop back to the TV baseline.'
|
||||
triggers:
|
||||
- trigger: state
|
||||
- trigger: numeric_state
|
||||
entity_id: sensor.coffee_maker_power
|
||||
conditions:
|
||||
- condition: template
|
||||
value_template: '{{ states(''sensor.coffee_maker_power'') | float(0) > 1000 }}'
|
||||
- condition: state
|
||||
entity_id: input_boolean.coffee_maker_running
|
||||
state: 'off'
|
||||
above: 800
|
||||
id: coffee_started
|
||||
- trigger: numeric_state
|
||||
entity_id: sensor.coffee_maker_power
|
||||
below: 15
|
||||
for:
|
||||
hours: 0
|
||||
minutes: 1
|
||||
seconds: 0
|
||||
id: coffee_finished
|
||||
conditions: []
|
||||
actions:
|
||||
- action: input_boolean.turn_on
|
||||
target:
|
||||
entity_id: input_boolean.coffee_maker_running
|
||||
- action: notify.notify
|
||||
data:
|
||||
title: ☕ Coffee Time
|
||||
message: Someone is making coffee.
|
||||
- action: notify.persistent_notification
|
||||
data:
|
||||
title: ☕ Coffee Time
|
||||
message: Someone is making coffee.
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 4
|
||||
seconds: 0
|
||||
- wait_template: '{{ states(''sensor.coffee_maker_power'') | float(0) < 350 }}'
|
||||
timeout:
|
||||
hours: 0
|
||||
minutes: 5
|
||||
seconds: 0
|
||||
- action: input_boolean.turn_off
|
||||
target:
|
||||
entity_id: input_boolean.coffee_maker_running
|
||||
- action: notify.notify
|
||||
data:
|
||||
title: ☕ Coffee Ready
|
||||
message: Your coffee is ready to enjoy!
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: coffee_started
|
||||
- condition: state
|
||||
entity_id: input_boolean.coffee_maker_running
|
||||
state: 'off'
|
||||
sequence:
|
||||
- action: input_boolean.turn_on
|
||||
target:
|
||||
entity_id: input_boolean.coffee_maker_running
|
||||
- action: notify.notify
|
||||
data:
|
||||
title: ☕ Coffee Time
|
||||
message: Someone is making coffee.
|
||||
- action: notify.persistent_notification
|
||||
data:
|
||||
title: ☕ Coffee Time
|
||||
message: Someone is making coffee.
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: coffee_finished
|
||||
- condition: state
|
||||
entity_id: input_boolean.coffee_maker_running
|
||||
state: 'on'
|
||||
sequence:
|
||||
- action: input_boolean.turn_off
|
||||
target:
|
||||
entity_id: input_boolean.coffee_maker_running
|
||||
- action: notify.notify
|
||||
data:
|
||||
title: ☕ Coffee Ready
|
||||
message: Your coffee is ready to enjoy!
|
||||
mode: single
|
||||
- id: '1781793117883'
|
||||
alias: Basement Temperature Change
|
||||
@@ -806,14 +817,16 @@
|
||||
data:
|
||||
title: "\U0001F6A8 Commute Delay Alert!"
|
||||
message: "Traffic is heavier than usual this morning. \nGoogle Maps: {{ states('sensor.google_travel_time_work_work')
|
||||
}} mins. Waze: {{ states('sensor.waze_travel_time') }} mins."
|
||||
}} mins. Waze: {{ states('sensor.waze_to_work_travel_time') }} mins."
|
||||
data:
|
||||
image: /local/commute_snapshot.jpg
|
||||
enabled: false
|
||||
- action: notify.persistent_notification
|
||||
data:
|
||||
title: "\U0001F6A8 Commute Delay Alert!"
|
||||
message: "Traffic is heavier than usual this morning. \nGoogle Maps: {{ states('sensor.google_travel_time_work_work')
|
||||
}} mins. Waze: {{ states('sensor.waze_travel_time') }} mins.\n"
|
||||
}} mins. Waze: {{ states('sensor.waze_to_work_travel_time') }} mins.\n"
|
||||
mode: single
|
||||
- *id001
|
||||
- *id001
|
||||
@@ -863,7 +876,7 @@
|
||||
data:
|
||||
title: "\U0001F697 Morning Commute"
|
||||
message: "Google: {{ states('sensor.google_travel_time_work_work') }} min\nWaze:
|
||||
{{ states('sensor.waze_travel_time') }} min\n{% set g = states('sensor.google_travel_time_work_work')
|
||||
{{ states('sensor.waze_to_work_travel_time') }} min\n{% set g = states('sensor.google_travel_time_work_work')
|
||||
| float(0) %} {% if g > 50 %} \U0001F6A8 Major traffic delays. {% elif g >
|
||||
40 %} ⚠️ Heavy traffic. {% else %} \U0001F7E1 Moderate traffic. {% endif %}"
|
||||
mode: single
|
||||
@@ -891,38 +904,96 @@
|
||||
action_rotate_ccw_face_1: []
|
||||
action_flipped90_face_1: []
|
||||
- id: '1783162325964'
|
||||
alias: Backyard Shed Camera Motion AI Description
|
||||
description: Takes a snapshot when the Blink camera detects motion, analyzes it
|
||||
with AI, and sends a mobile and persistent notification.
|
||||
alias: Motion Shed - AI Description
|
||||
description: Takes a snapshot when the Nest camera detects motion, a person, an
|
||||
animal, or a doorbell press, analyzes it with AI, and sends a mobile and persistent
|
||||
notification.
|
||||
triggers:
|
||||
- trigger: event
|
||||
event_type: state_changed
|
||||
event_data:
|
||||
entity_id: event.front_door_front_door_motion
|
||||
enabled: false
|
||||
- trigger: state
|
||||
entity_id: binary_sensor.backyard_shed_motion
|
||||
to: 'on'
|
||||
entity_id: event.living_room_living_room_camera_motion
|
||||
enabled: false
|
||||
- trigger: state
|
||||
entity_id: event.front_door_front_door_motion
|
||||
enabled: false
|
||||
- trigger: event.received
|
||||
target:
|
||||
entity_id: event.entryway_entryway_camera_motion
|
||||
options:
|
||||
event_type:
|
||||
- camera_motion
|
||||
- camera_person
|
||||
- camera_sound
|
||||
enabled: false
|
||||
- trigger: event.received
|
||||
target:
|
||||
device_id: 290f56e5a655e3af82cbf3cf9fd22406
|
||||
options:
|
||||
event_type:
|
||||
- camera_motion
|
||||
- camera_person
|
||||
- camera_sound
|
||||
- ring
|
||||
enabled: false
|
||||
- trigger: event.received
|
||||
target:
|
||||
device_id: 679d52e0d16cf48648d11dd024b961f8
|
||||
options:
|
||||
event_type:
|
||||
- camera_motion
|
||||
- camera_sound
|
||||
- camera_person
|
||||
enabled: true
|
||||
conditions:
|
||||
- condition: template
|
||||
value_template: '{{ trigger.event.data.new_state.attributes.event_type in [''motion'',
|
||||
''person'', ''animal'', ''chime''] }}'
|
||||
enabled: false
|
||||
actions:
|
||||
- action: blink.trigger_camera
|
||||
target:
|
||||
entity_id: camera.backyard_shed
|
||||
- delay: 00:00:02
|
||||
data: {}
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 0
|
||||
seconds: 5
|
||||
milliseconds: 0
|
||||
- action: homeassistant.update_entity
|
||||
target:
|
||||
entity_id: camera.backyard_shed
|
||||
- variables:
|
||||
snapshot_filename: blink_shed_{{ now().strftime('%Y%m%d_%H%M%S') }}.jpg
|
||||
- variables:
|
||||
notification_id: blink_shed_{{ now().strftime('%Y%m%d_%H%M%S_%f') }}
|
||||
- action: camera.snapshot
|
||||
target:
|
||||
entity_id: camera.backyard_shed
|
||||
data:
|
||||
filename: /media/blink_shed.jpg
|
||||
filename: /media/{{ snapshot_filename }}
|
||||
- action: camera.snapshot
|
||||
target:
|
||||
entity_id: camera.backyard_shed
|
||||
data:
|
||||
filename: /config/www/blink_shed.jpg
|
||||
- delay: 00:00:02
|
||||
filename: /config/www/{{ snapshot_filename }}
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 0
|
||||
seconds: 4
|
||||
milliseconds: 0
|
||||
- action: ai_task.generate_data
|
||||
continue_on_error: true
|
||||
data:
|
||||
task_name: Backyard Shed Camera Analysis
|
||||
task_name: Blink Shed Camera Analysis
|
||||
entity_id: ai_task.google_ai_task
|
||||
instructions: Describe what you see in this image in brief. Focus on any people,
|
||||
objects, animals or activities. Text needs to be max 240 characters.
|
||||
attachments:
|
||||
- media_content_id: media-source://media_source/local/blink_shed.jpg
|
||||
- media_content_id: media-source://media_source/local/{{ snapshot_filename }}
|
||||
media_content_type: image/jpeg
|
||||
response_variable: ai_profile
|
||||
- action: notify.notify
|
||||
@@ -932,16 +1003,15 @@
|
||||
message: '{{ ai_profile.data if ai_profile is defined and ''data'' in ai_profile
|
||||
else ''Motion detected, but the AI Task integration failed to return a response.''
|
||||
}}'
|
||||
- action: notify.persistent_notification
|
||||
- action: persistent_notification.create
|
||||
data:
|
||||
title: Motion Detected - Backyard Shed
|
||||
message: '{{ ai_profile.data if ai_profile is defined and ''data'' in ai_profile
|
||||
else ''Motion detected, but the AI Task integration failed to return a response.''
|
||||
}}
|
||||
|
||||
'
|
||||
data:
|
||||
notification_id: backyard_shed_motion
|
||||
'
|
||||
notification_id: '{{ notification_id }}'
|
||||
mode: queued
|
||||
max: 10
|
||||
- id: '1783293479398'
|
||||
@@ -1115,7 +1185,7 @@
|
||||
'
|
||||
mode: queued
|
||||
max: 10
|
||||
- id: '1783469453396'
|
||||
- id: '1783540959739'
|
||||
alias: Motion Front Door - AI Description
|
||||
description: Takes a snapshot when the Nest camera detects motion, a person, an
|
||||
animal, or a doorbell press, analyzes it with AI, and sends a mobile and persistent
|
||||
@@ -1169,18 +1239,33 @@
|
||||
target:
|
||||
entity_id: camera.front
|
||||
data: {}
|
||||
- delay: 00:00:02
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 0
|
||||
seconds: 5
|
||||
milliseconds: 0
|
||||
- action: homeassistant.update_entity
|
||||
target:
|
||||
entity_id: camera.front
|
||||
- variables:
|
||||
snapshot_filename: blink_Front_{{ now().strftime('%Y%m%d_%H%M%S') }}.jpg
|
||||
- variables:
|
||||
notification_id: blink_front_{{ now().strftime('%Y%m%d_%H%M%S_%f') }}
|
||||
- action: camera.snapshot
|
||||
target:
|
||||
entity_id: camera.front
|
||||
data:
|
||||
filename: /media/blink_Front.jpg
|
||||
filename: /media/{{ snapshot_filename }}
|
||||
- action: camera.snapshot
|
||||
target:
|
||||
entity_id: camera.front
|
||||
data:
|
||||
filename: /config/www/blink_Front.jpg
|
||||
- delay: 00:00:02
|
||||
filename: /config/www/{{ snapshot_filename }}
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 0
|
||||
seconds: 4
|
||||
milliseconds: 0
|
||||
- action: ai_task.generate_data
|
||||
continue_on_error: true
|
||||
data:
|
||||
@@ -1189,7 +1274,7 @@
|
||||
instructions: Describe what you see in this image in brief. Focus on any people,
|
||||
objects, animals or activities. Text needs to be max 240 characters.
|
||||
attachments:
|
||||
- media_content_id: media-source://media_source/local/blink_Front.jpg
|
||||
- media_content_id: media-source://media_source/local/{{ snapshot_filename }}
|
||||
media_content_type: image/jpeg
|
||||
response_variable: ai_profile
|
||||
- action: notify.notify
|
||||
@@ -1206,8 +1291,148 @@
|
||||
else ''Motion detected, but the AI Task integration failed to return a response.''
|
||||
}}
|
||||
|
||||
'
|
||||
'
|
||||
data:
|
||||
notification_id: nest_front_motion
|
||||
enabled: false
|
||||
- action: persistent_notification.create
|
||||
metadata: {}
|
||||
data:
|
||||
message: '{{ ai_profile.data if ai_profile is defined and ''data'' in ai_profile
|
||||
else ''Motion detected, but the AI Task integration failed to return a response.''
|
||||
}} '
|
||||
title: Motion Detected - Front Door
|
||||
notification_id: '{{ notification_id }}'
|
||||
mode: queued
|
||||
max: 10
|
||||
- id: '1783541174963'
|
||||
alias: Daily Snapshot Purge
|
||||
description: Triggers the snapshot purge script every night at midnight.
|
||||
triggers:
|
||||
- trigger: time
|
||||
at: 00:00:00
|
||||
conditions: []
|
||||
actions:
|
||||
- action: script.purge_old_blink_snapshot
|
||||
data: {}
|
||||
mode: single
|
||||
- id: '1783615071224'
|
||||
alias: 'TEST: AI Camera Motion Detection OLLAMA'
|
||||
description: Takes a snapshot when the Nest camera detects motion, a person, an
|
||||
animal, or a doorbell press, analyzes it with AI, and sends a mobile and persistent
|
||||
notification.
|
||||
triggers:
|
||||
- trigger: event
|
||||
event_type: state_changed
|
||||
event_data:
|
||||
entity_id: event.front_door_front_door_motion
|
||||
enabled: false
|
||||
- trigger: state
|
||||
entity_id: event.living_room_living_room_camera_motion
|
||||
enabled: false
|
||||
- trigger: state
|
||||
entity_id: event.front_door_front_door_motion
|
||||
enabled: false
|
||||
- trigger: event.received
|
||||
target:
|
||||
entity_id: event.entryway_entryway_camera_motion
|
||||
options:
|
||||
event_type:
|
||||
- camera_motion
|
||||
- camera_person
|
||||
- camera_sound
|
||||
enabled: false
|
||||
- trigger: event.received
|
||||
target:
|
||||
device_id: 290f56e5a655e3af82cbf3cf9fd22406
|
||||
options:
|
||||
event_type:
|
||||
- camera_motion
|
||||
- camera_person
|
||||
- camera_sound
|
||||
- ring
|
||||
- trigger: event.received
|
||||
target:
|
||||
device_id: 679d52e0d16cf48648d11dd024b961f8
|
||||
options:
|
||||
event_type:
|
||||
- camera_motion
|
||||
- camera_sound
|
||||
- camera_person
|
||||
enabled: false
|
||||
conditions:
|
||||
- condition: template
|
||||
value_template: '{{ trigger.event.data.new_state.attributes.event_type in [''motion'',
|
||||
''person'', ''animal'', ''chime''] }}'
|
||||
enabled: false
|
||||
actions:
|
||||
- action: blink.trigger_camera
|
||||
target:
|
||||
entity_id: camera.front
|
||||
data: {}
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 0
|
||||
seconds: 10
|
||||
milliseconds: 0
|
||||
- action: homeassistant.update_entity
|
||||
target:
|
||||
entity_id: camera.front
|
||||
- variables:
|
||||
snapshot_filename: blink_Front_{{ now().strftime('%Y%m%d_%H%M%S') }}.jpg
|
||||
- variables:
|
||||
notification_id: blink_front_{{ now().strftime('%Y%m%d_%H%M%S_%f') }}
|
||||
- action: camera.snapshot
|
||||
target:
|
||||
entity_id: camera.front
|
||||
data:
|
||||
filename: /media/{{ snapshot_filename }}
|
||||
- action: camera.snapshot
|
||||
target:
|
||||
entity_id: camera.front
|
||||
data:
|
||||
filename: /config/www/{{ snapshot_filename }}
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 0
|
||||
seconds: 4
|
||||
milliseconds: 0
|
||||
- action: ai_task.generate_data
|
||||
continue_on_error: true
|
||||
data:
|
||||
task_name: Nest Front Camera Analysis
|
||||
entity_id: ai_task.ollama_ai_task
|
||||
instructions: Describe what you see in this image in brief. Focus on any people,
|
||||
objects, animals or activities. Text needs to be max 240 characters.
|
||||
attachments:
|
||||
- media_content_id: media-source://media_source/local/{{ snapshot_filename }}
|
||||
media_content_type: image/jpeg
|
||||
response_variable: ai_profile
|
||||
- action: notify.notify
|
||||
continue_on_error: true
|
||||
data:
|
||||
title: Motion Detected - Front Door
|
||||
message: '{{ ai_profile.data if ai_profile is defined and ''data'' in ai_profile
|
||||
else ''Motion detected, but the AI Task integration failed to return a response.''
|
||||
}}'
|
||||
- action: notify.persistent_notification
|
||||
data:
|
||||
title: Motion Detected - Front Door
|
||||
message: '{{ ai_profile.data if ai_profile is defined and ''data'' in ai_profile
|
||||
else ''Motion detected, but the AI Task integration failed to return a response.''
|
||||
}}
|
||||
|
||||
'
|
||||
data:
|
||||
notification_id: nest_front_motion
|
||||
enabled: false
|
||||
- action: persistent_notification.create
|
||||
metadata: {}
|
||||
data:
|
||||
message: '{{ ai_profile.data if ai_profile is defined and ''data'' in ai_profile
|
||||
else ''Motion detected, but the AI Task integration failed to return a response.''
|
||||
}} '
|
||||
title: Motion Detected - Front Door
|
||||
notification_id: '{{ notification_id }}'
|
||||
mode: queued
|
||||
max: 10
|
||||
|
||||
Reference in New Issue
Block a user