Updating for Reolink video:
This commit is contained in:
parent
61e12d5153
commit
ee034bae26
|
@ -1,3 +1,31 @@
|
||||||
|
- id: doods_testing
|
||||||
|
alias: Doods Testing
|
||||||
|
trigger:
|
||||||
|
- entity_id: binary_sensor.driveway_motion
|
||||||
|
from: 'off'
|
||||||
|
platform: state
|
||||||
|
to: 'on'
|
||||||
|
action:
|
||||||
|
- service: image_processing.scan
|
||||||
|
entity_id: image_processing.doods_driveway
|
||||||
|
- choose:
|
||||||
|
- conditions:
|
||||||
|
- condition: numeric_state
|
||||||
|
entity_id: image_processing.doods_driveway
|
||||||
|
above: '0'
|
||||||
|
sequence:
|
||||||
|
- service: script.text_alert_image
|
||||||
|
data:
|
||||||
|
who: jeff
|
||||||
|
title: Person Detected!
|
||||||
|
message: '{{ states("image_processing.doods_driveway") | int}} people detected
|
||||||
|
near vehicles
|
||||||
|
|
||||||
|
'
|
||||||
|
url: /media/images/driveway_latest.jpg
|
||||||
|
content_type: JPEG
|
||||||
|
default: []
|
||||||
|
mode: single
|
||||||
- id: family_has_arrived
|
- id: family_has_arrived
|
||||||
alias: Family Has arrived
|
alias: Family Has arrived
|
||||||
trigger:
|
trigger:
|
||||||
|
@ -52,8 +80,6 @@
|
||||||
from: Home
|
from: Home
|
||||||
platform: state
|
platform: state
|
||||||
to: Away
|
to: Away
|
||||||
- platform: webhook
|
|
||||||
webhook_id: away_webhook
|
|
||||||
- entity_id: group.family
|
- entity_id: group.family
|
||||||
from: home
|
from: home
|
||||||
platform: state
|
platform: state
|
||||||
|
@ -141,13 +167,16 @@
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: sun.sun
|
entity_id: sun.sun
|
||||||
state: below_horizon
|
state: below_horizon
|
||||||
|
- condition: state
|
||||||
|
entity_id: switch.driveway_light
|
||||||
|
state: 'off'
|
||||||
action:
|
action:
|
||||||
- service: switch.turn_on
|
- service: switch.turn_on
|
||||||
entity_id: switch.driveway_light
|
entity_id: switch.driveway_light
|
||||||
- delay:
|
- delay:
|
||||||
minutes: 3
|
minutes: 1
|
||||||
- service: switch.turn_off
|
- service: script.turn_on
|
||||||
entity_id: switch.driveway_light
|
entity_id: script.driveway_off
|
||||||
- id: show_time_over
|
- id: show_time_over
|
||||||
alias: Show Time over
|
alias: Show Time over
|
||||||
initial_state: true
|
initial_state: true
|
||||||
|
@ -160,36 +189,6 @@
|
||||||
action:
|
action:
|
||||||
- service: scene.turn_on
|
- service: scene.turn_on
|
||||||
entity_id: scene.theater_dark
|
entity_id: scene.theater_dark
|
||||||
- id: theater_fan_on
|
|
||||||
alias: Theater Fan On
|
|
||||||
initial_state: true
|
|
||||||
trigger:
|
|
||||||
- above: 74
|
|
||||||
platform: numeric_state
|
|
||||||
entity_id: sensor.theater_temperature
|
|
||||||
condition:
|
|
||||||
- condition: state
|
|
||||||
entity_id: media_player.theater_tv
|
|
||||||
state: 'on'
|
|
||||||
action:
|
|
||||||
- data:
|
|
||||||
entity_id: switch.theater_fan
|
|
||||||
service: switch.turn_on
|
|
||||||
- id: theater_fan_off
|
|
||||||
alias: Theater Fan Off
|
|
||||||
initial_state: true
|
|
||||||
trigger:
|
|
||||||
- below: 72
|
|
||||||
platform: numeric_state
|
|
||||||
entity_id: sensor.theater_temperature
|
|
||||||
condition:
|
|
||||||
- condition: state
|
|
||||||
entity_id: media_player.theater_tv
|
|
||||||
state: 'off'
|
|
||||||
action:
|
|
||||||
- data:
|
|
||||||
entity_id: switch.theater_fan
|
|
||||||
service: switch.turn_on
|
|
||||||
- id: theater_light_pressed_up
|
- id: theater_light_pressed_up
|
||||||
alias: Theater Light Pressed Up
|
alias: Theater Light Pressed Up
|
||||||
initial_state: true
|
initial_state: true
|
||||||
|
@ -208,8 +207,6 @@
|
||||||
action:
|
action:
|
||||||
- service: scene.turn_on
|
- service: scene.turn_on
|
||||||
entity_id: scene.theater_dark
|
entity_id: scene.theater_dark
|
||||||
|
|
||||||
|
|
||||||
- id: '1607350354349'
|
- id: '1607350354349'
|
||||||
alias: WFH Video Call Lights On
|
alias: WFH Video Call Lights On
|
||||||
description: ''
|
description: ''
|
||||||
|
@ -243,8 +240,7 @@
|
||||||
data: {}
|
data: {}
|
||||||
entity_id: switch.tplink_a2
|
entity_id: switch.tplink_a2
|
||||||
mode: single
|
mode: single
|
||||||
|
- id: test_tag_event
|
||||||
- id: 'test_tag_event'
|
|
||||||
alias: Tag desk is scanned
|
alias: Tag desk is scanned
|
||||||
description: ''
|
description: ''
|
||||||
trigger:
|
trigger:
|
||||||
|
@ -257,5 +253,49 @@
|
||||||
action:
|
action:
|
||||||
- service: notify.jeff_ios
|
- service: notify.jeff_ios
|
||||||
data:
|
data:
|
||||||
message: "Jeff someone scanned desk tag"
|
message: Jeff someone scanned desk tag
|
||||||
|
mode: single
|
||||||
|
- id: '1613442280682'
|
||||||
|
alias: Master Bath Humidity Too High
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- platform: numeric_state
|
||||||
|
entity_id: sensor.master_bath_humidity
|
||||||
|
above: '62'
|
||||||
|
for: 00:03:00
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: switch.master_bath_fan
|
||||||
|
state: 'off'
|
||||||
|
action:
|
||||||
|
- service: switch.turn_on
|
||||||
|
data: {}
|
||||||
|
entity_id: switch.master_bath_fan
|
||||||
|
mode: single
|
||||||
|
- id: '1613442381930'
|
||||||
|
alias: Master Bath Humidity Normal
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- platform: numeric_state
|
||||||
|
entity_id: sensor.master_bath_humidity
|
||||||
|
below: '62'
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: switch.master_bath_fan
|
||||||
|
state: 'on'
|
||||||
|
action:
|
||||||
|
- service: switch.turn_off
|
||||||
|
data: {}
|
||||||
|
entity_id: switch.master_bath_fan
|
||||||
|
mode: single
|
||||||
|
- id: '1614313318267'
|
||||||
|
alias: testing wh
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- platform: webhook
|
||||||
|
webhook_id: test-webooking
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- event: test_complete
|
||||||
|
event_data: {}
|
||||||
mode: single
|
mode: single
|
||||||
|
|
|
@ -13,15 +13,31 @@ camera:
|
||||||
ffmpeg_arguments: '-pred 1 -q:v 2'
|
ffmpeg_arguments: '-pred 1 -q:v 2'
|
||||||
- platform: ffmpeg
|
- platform: ffmpeg
|
||||||
input: !secret livingroom_cam # wyze cam v2
|
input: !secret livingroom_cam # wyze cam v2
|
||||||
name: livingroom
|
name: livingroom camera
|
||||||
- platform: ffmpeg
|
- platform: ffmpeg
|
||||||
input: !secret kitchen_cam # wyze cam v2
|
input: !secret kitchen_cam # wyze cam v2
|
||||||
name: kitchen
|
name: kitchen camera
|
||||||
- platform: ffmpeg
|
- platform: ffmpeg
|
||||||
input: !secret theater_cam # wyze cam v2
|
input: !secret theater_cam # wyze cam v2
|
||||||
name: theater
|
name: theater camera
|
||||||
- platform: ffmpeg
|
- platform: ffmpeg
|
||||||
input: !secret laundry_cam # wyze cam v2
|
input: !secret laundry_cam # wyze cam v2
|
||||||
name: laundry
|
name: laundry camera
|
||||||
ffmpeg:
|
ffmpeg:
|
||||||
ffmpeg_bin: /usr/bin/ffmpeg
|
ffmpeg_bin: /usr/bin/ffmpeg
|
||||||
|
|
||||||
|
image_processing:
|
||||||
|
- platform: doods
|
||||||
|
url: http://192.168.7.187:8080
|
||||||
|
detector: default
|
||||||
|
scan_interval: 10000
|
||||||
|
source:
|
||||||
|
- entity_id: camera.driveway
|
||||||
|
file_out:
|
||||||
|
- "/media/images/{{ camera_entity.split('.')[1] }}_latest.jpg"
|
||||||
|
labels:
|
||||||
|
- name: person
|
||||||
|
confidence: 50
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue