Updated #750 - Adding collapable IOS notifications

This commit is contained in:
ccostan
2020-05-29 17:50:36 -04:00
parent ae2790c0c6
commit 8c466d50be
15 changed files with 34 additions and 37 deletions

View File

@@ -19,29 +19,6 @@ automation:
event_type: feedreader
action:
- service: persistent_notification.create
data_template:
title: >
{{ trigger.event.data.title }}
message: >
{% set url = trigger.event.data.feed_url.split('https://')[1] %}
{% set source = {'https://us12.campaign-archive.com/feed?u=45cab4343ffdbeb9667c28a26&id=e01847e94f':'vCloudInfo.com',
'hasspodcast.io/feed/podcast':'Hass podcast'} %}
New Rss feed for {{source[url] if url in source else 'Unknown'}}, see
{{trigger.event.data.link}},{{trigger.event.data.author}}
notification_id: >
{% set url = trigger.event.data.feed_url.split('https://')[1] %}
{% set source = {'https://us12.campaign-archive.com/feed?u=45cab4343ffdbeb9667c28a26&id=e01847e94f':'vCloudInfo.com',
'hasspodcast.io/feed/podcast':'Hass podcast'} %}
rss-feed-{{source[url] if url in source else 'Unknown'}}
############ everything below this line should be deleted if using as a drop in package. ####################
- service: script.notify_engine
data_template:
value1: 'There is a new RSS item available for {{trigger.event.data.title}}.'
value2: '{{trigger.event.data.link}}'
who: 'carlo'
- service: script.tweet_engine_image
data_template:

View File

@@ -22,7 +22,7 @@ switch:
group:
juicenet:
name: JuiceBox Charger
entities:
- sensor.carlojuice_amps
- sensor.carlojuice_charge_time
@@ -48,6 +48,7 @@ automation:
data_template:
value1: "The Garage charger is now in {{ states('sensor.carlojuice_charging_status') }} mode."
who: 'carlo'
apns_id: 'JuiceBox'
- alias: 'Juicebox Self-Heal'
initial_state: 'on'
@@ -101,6 +102,8 @@ automation:
above: 24
for:
minutes: 2
- platform: event
event_type: event_did_someone_help_juicebox
action:
- service: input_boolean.turn_on
entity_id: input_boolean.alert_mode
@@ -109,11 +112,15 @@ automation:
data_template:
value1: "The Juice Box Charger is pulling {{ states('sensor.carlojuice_amps') }} AMPs. This is above the safety mark of 30. Please unplug charger immediately."
who: 'parents'
apns_id: 'JuiceBox'
- service: script.speech_engine
data_template:
value1: "The Juice Box Charger is pulling {{ states('sensor.carlojuice_amps') }} AMPs. This is above the safety mark of 30. Please unplug charger immediately."
- delay: 00:02:00
- event: event_did_someone_help_juicebox
- alias: 'JuiceBox Tweet Stat!'
initial_state: 'on'
trigger:

View File

@@ -51,7 +51,7 @@ automation:
entity_id: vacuum.carlo_neato
to: 'error'
- platform: event
event_type: event_did_someone_help
event_type: event_did_someone_help_neato
condition:
- condition: state
@@ -84,8 +84,7 @@ automation:
ios_category: 'camera'
camera_entity: 'camera.carlo_neato_cleaning_map'
content_type: 'jpeg'
apns_headers:
'apns-collapse-id': 'neato-carlo_neato_cleaning_map'
apns_id: 'neato-carlo_neato_cleaning_map'
- delay: 00:20:00
- event: event_did_someone_help
- event: event_did_someone_help_neato

View File

@@ -22,7 +22,7 @@ homeassistant:
"sensor.*_security_state":
hidden: True
homebridge_hidden: true
customize:
binary_sensor.hallway_nest_protect_kids_hallway_online:
@@ -83,7 +83,7 @@ group:
#-------------------------------------------
automation:
- alias: Nest protect emergency
trigger:
platform: state
entity_id:
@@ -125,7 +125,7 @@ automation:
tweet: "An emergency has been detected on {{ trigger.to_state.attributes.friendly_name }} @CCostan (https://www.vcloudinfo.com/2017/06/psa-check-out-your-smoke-detectors-once.html)"
- alias: Nest Protect Offline Notify
trigger:
platform: state
entity_id:
@@ -152,6 +152,7 @@ automation:
data_template:
value1: "The {{ trigger.to_state.attributes.friendly_name }} is now {{ (trigger.to_state.state)|replace('_', ' ') }}. Please check immediately."
who: "parents"
apns_id: 'Nest-Protect'
- service: script.tweet_engine
data:

View File

@@ -30,6 +30,7 @@ automation:
value1: 'Phyn is sensing {{ trigger.event.data.alert_type }}. Please verify {{ trigger.event.data.where }}.'
who: 'family'
url: 'https://github.com/CCOSTAN/Home-AssistantConfig/raw/master/config/www/custom_ui/floorplan/images/branding/pipeleak.png'
apns_id: 'IFTTT_Phyn'
- service: script.speech_engine
data_template:

View File

@@ -77,7 +77,7 @@ sensor:
#
automation:
- alias: Notify if Grid is down
trigger:
- platform: state
entity_id: sensor.grid_status
@@ -95,3 +95,4 @@ automation:
data_template:
value1: "The electrical grid is reporting to be {{ (trigger.to_state.state)|replace('True', 'up')|replace('False', 'down') }}. Please verify with Tesla App."
who: 'parents'
apns_id: 'PowerWall'

View File

@@ -54,6 +54,7 @@ automation:
- service: script.notify_engine
data_template:
value1: 'Go Outside! There is a Rocket Launch very soon!'
apns_id: 'Space'
- service: script.tweet_engine
data_template: