Add cameras and presence detection binary sensor
This commit is contained in:
parent
839bc45b01
commit
6a02d32d9d
|
@ -61,3 +61,45 @@
|
||||||
entity_id: switch.lab_lights
|
entity_id: switch.lab_lights
|
||||||
domain: switch
|
domain: switch
|
||||||
mode: single
|
mode: single
|
||||||
|
- id: '1628264103743'
|
||||||
|
alias: Send welcome home message when Joe arrives home.
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- platform: zone
|
||||||
|
entity_id: person.joe
|
||||||
|
zone: zone.home
|
||||||
|
event: enter
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: notify.lab_discord
|
||||||
|
data:
|
||||||
|
message: Welcome home <@185206201011798016>
|
||||||
|
target:
|
||||||
|
- '505468673754923049'
|
||||||
|
mode: single
|
||||||
|
- id: '1628291074276'
|
||||||
|
alias: Turn Off Lights When House is Empty
|
||||||
|
description: When everybody leaves, turn off the lights
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.people_home
|
||||||
|
to: 'off'
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: switch.turn_off
|
||||||
|
target:
|
||||||
|
entity_id: all
|
||||||
|
mode: single
|
||||||
|
- id: '1628359480237'
|
||||||
|
alias: Turn Off Downstairs Lights on Time Schedule
|
||||||
|
description: Just turn off lights we can assume without sensors wont be in use at
|
||||||
|
these hours
|
||||||
|
trigger:
|
||||||
|
- platform: time
|
||||||
|
at: 03:00
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: switch.turn_off
|
||||||
|
target:
|
||||||
|
entity_id: switch.on_off_relay_switch
|
||||||
|
mode: single
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
# Bluecherry cams
|
||||||
|
- platform: mjpeg
|
||||||
|
name: Server Room Camera
|
||||||
|
verify_ssl: false
|
||||||
|
mjpeg_url: https://homeassistant:homeassistant@bluecherry.kitsunehosting.net:7001/media/mjpeg.php?id=1&multipart=true
|
||||||
|
still_image_url: https://homeassistant:homeassistant@bluecherry.kitsunehosting.net:7001/media/mjpeg.php?id=1
|
||||||
|
- platform: mjpeg
|
||||||
|
name: Lab Camera
|
||||||
|
verify_ssl: false
|
||||||
|
mjpeg_url: https://homeassistant:homeassistant@bluecherry.kitsunehosting.net:7001/media/mjpeg.php?id=4&multipart=true
|
||||||
|
still_image_url: https://homeassistant:homeassistant@bluecherry.kitsunehosting.net:7001/media/mjpeg.php?id=4
|
||||||
|
- platform: mjpeg
|
||||||
|
name: Front Porch
|
||||||
|
verify_ssl: false
|
||||||
|
mjpeg_url: https://homeassistant:homeassistant@bluecherry.kitsunehosting.net:7001/media/mjpeg.php?id=2&multipart=true
|
||||||
|
still_image_url: https://homeassistant:homeassistant@bluecherry.kitsunehosting.net:7001/media/mjpeg.php?id=2
|
||||||
|
- platform: mjpeg
|
||||||
|
name: Foyer
|
||||||
|
verify_ssl: false
|
||||||
|
mjpeg_url: https://homeassistant:homeassistant@bluecherry.kitsunehosting.net:7001/media/mjpeg.php?id=7&multipart=true
|
||||||
|
still_image_url: https://homeassistant:homeassistant@bluecherry.kitsunehosting.net:7001/media/mjpeg.php?id=7
|
|
@ -11,7 +11,36 @@ device_tracker:
|
||||||
- platform: google_maps
|
- platform: google_maps
|
||||||
username: "kenwood364@gmail.com"
|
username: "kenwood364@gmail.com"
|
||||||
|
|
||||||
|
# Discord
|
||||||
|
notify:
|
||||||
|
- platform: discord
|
||||||
|
name: Lab Discord
|
||||||
|
token: NzIwMDI0NDc5MTE1NTA5ODMx.Xt_9DQ.FPqUrmvBRX50dzqDI1vRTn5DEBQ
|
||||||
|
|
||||||
|
# Motion Detection
|
||||||
|
binary_sensor:
|
||||||
|
- platform: ffmpeg_motion
|
||||||
|
name: Foyer Motion Detection
|
||||||
|
input: https://homeassistant:homeassistant@bluecherry.kitsunehosting.net:7001/media/mjpeg.php?id=7&multipart=true
|
||||||
|
- platform: ffmpeg_motion
|
||||||
|
name: Front Porch
|
||||||
|
input: https://homeassistant:homeassistant@bluecherry.kitsunehosting.net:7001/media/mjpeg.php?id=2&multipart=true
|
||||||
|
- platform: ffmpeg_motion
|
||||||
|
name: Lab Camera
|
||||||
|
input: https://homeassistant:homeassistant@bluecherry.kitsunehosting.net:7001/media/mjpeg.php?id=4&multipart=true
|
||||||
|
|
||||||
|
# Device tracker
|
||||||
|
- platform: template
|
||||||
|
sensors:
|
||||||
|
people_home:
|
||||||
|
value_template: >-
|
||||||
|
{{ is_state('person.joe', 'home')
|
||||||
|
or is_state('person.mark', 'home')
|
||||||
|
or is_state('person.dawn', 'home') }}
|
||||||
|
|
||||||
|
|
||||||
group: !include groups.yaml
|
group: !include groups.yaml
|
||||||
automation: !include automations.yaml
|
automation: !include automations.yaml
|
||||||
script: !include scripts.yaml
|
script: !include scripts.yaml
|
||||||
scene: !include scenes.yaml
|
scene: !include scenes.yaml
|
||||||
|
camera: !include cameras.yaml
|
||||||
|
|
Loading…
Reference in New Issue