Adding more and more Value from @3vasi0n89 REPO. Adding in Camera images to my IOS notifications. DoorBell and Garage Door.

This commit is contained in:
ccostan 2019-03-16 17:36:18 -04:00
parent 486dda8c45
commit bcf71aef69
5 changed files with 55 additions and 41 deletions

View File

@ -10,7 +10,8 @@
action:
- service: script.notify_engine
data_template:
value1: 'Startup: Home Assistant is Up and Running!'
title: 'Home Assistant StartUp'
value1: 'Home Assistant is Up and Running!'
who: 'carlo'
- service: light.turn_off

View File

@ -24,10 +24,11 @@
action:
- service: script.notify_engine
data_template:
value1: 'Check Garage Doors Reflection:'
value2: "Small: {{ states('sensor.small_garage_reflection_rate')}}"
value3: "Large: {{ states('sensor.large_garage_reflection_rate')}}"
title: 'Check Garage Doors Reflection:'
value1: "Small: {{ states('sensor.small_garage_reflection_rate')}}"
value2: "Large: {{ states('sensor.large_garage_reflection_rate')}}"
who: "carlo"
camera_entity: "camera.camera2"
##############################################################################
@ -75,10 +76,11 @@
action:
- service: script.notify_engine
data_template:
value1: 'Check Garage Doors:'
value2: "Small: {{ states('cover.small_garage')}}"
value3: "Large: {{ states('cover.large_garage')}}"
title: 'Check Garage Doors:'
value1: "Small: {{ states('cover.small_garage')}}"
value2: "Large: {{ states('cover.large_garage')}}"
who: "family"
camera_entity: "camera.camera2"
- service: script.speech_engine
data_template:

View File

@ -83,31 +83,7 @@ automation:
action:
- service: script.skybell_pressed
- service: script.tweet_engine_image
data_template:
tweet: >
{{ [
"Oh, that tickled. Someone just pressed the @MySkyBell.",
"Ouch! That hurt. Who touched the SkyBell Doorbell?",
"Someone just poked me in the @MySkybell!",
"I see you! You are at the @MySkyBell and you just pressed it.",
"Someone answer my door. Someone just pressed the doorbell.",
"Knock, Knock. Housekeeping? Just kiddin', someone just rang the doorbell."
] | random + [
" #Security",
" (https://github.com/CCOSTAN/Home-AssistantConfig#cameras)",
" (http://www.vmwareinfo.com/2017/07/my-smart-home-look-at-parts-that-make.html)",
" #HomeAutomation"
] | random }}
image: >-
{{ [
"/config/www/custom_ui/floorplan/images/branding/sleeping.png",
"/config/www/custom_ui/floorplan/images/branding/door.png",
"/config/www/custom_ui/floorplan/images/branding/door2.png",
"/config/www/custom_ui/floorplan/images/branding/light4.png",
"/config/www/custom_ui/floorplan/images/branding/landscape_light.png",
"/config/www/custom_ui/floorplan/images/branding/camera.png",
] | random }}
# Motion Sensing
- alias: 'Log SkyBell Motion detection'

View File

@ -28,10 +28,19 @@ notify_engine:
notify.ios_carloxsmax
{% elif who == 'parents' %}
notify.ios_parents
{% elif who == 'family' %}
notify.ios_family
{% else %}
notify.ios_family
{% endif %}
data_template:
title: "{{ title }}"
message: "{{ value1 }} {{ value2 }} {{ value3 }}"
data:
subtitle: "Home Assistant Notify"
attachment:
content-type: "{{ content_type }}"
push:
sound: "{{ ios_sound }}"
badge: "{{ ios_badge }}"
category: "{{ ios_category }}"
entity_id: "{{ camera_entity }}"

View File

@ -13,15 +13,41 @@ skybell_pressed:
name: "SkyBell HD Doorbell:"
message: "Someone Pressed the Doorbell."
- service: script.flash_notify
- service: script.speech_engine
data:
value1: 'Please check the Front Door. Someone Pressed the Doorbell.'
- service: notify.ios_family
data:
message: Someone Pressed the Doorbell!
data:
push:
category: camera
entity_id: camera.stone_door
- service: script.notify_engine
data_template:
ios_title: 'DoorBell'
value1: 'Someone pressed the doorbell'
who: 'family'
camera_entity: camera.stone_door
- service: script.flash_notify
- service: script.tweet_engine_image
data_template:
tweet: >
{{ [
"Oh, that tickled. Someone just pressed the @MySkyBell.",
"Ouch! That hurt. Who touched the SkyBell Doorbell?",
"Someone just poked me in the @MySkybell!",
"I see you! You are at the @MySkyBell and you just pressed it.",
"Someone answer my door. Someone just pressed the doorbell.",
"Knock, Knock. Housekeeping? Just kidding. Someone just rang the doorbell."
] | random + [
" #Security",
" (https://github.com/CCOSTAN/Home-AssistantConfig#cameras)",
" (http://www.vmwareinfo.com/2017/07/my-smart-home-look-at-parts-that-make.html)",
" #HomeAutomation"
] | random }}
image: >-
{{ [
"/config/www/custom_ui/floorplan/images/branding/sleeping.png",
"/config/www/custom_ui/floorplan/images/branding/door.png",
"/config/www/custom_ui/floorplan/images/branding/door2.png",
"/config/www/custom_ui/floorplan/images/branding/light4.png",
"/config/www/custom_ui/floorplan/images/branding/landscape_light.png",
"/config/www/custom_ui/floorplan/images/branding/camera.png",
] | random }}