tRYING TO RESOLVE AND UPDATE AND REFACTOR THE NOTIFICTIONS TO ADHERE TO ios Closes #303

This commit is contained in:
CCOSTAN 2023-11-17 22:16:41 +00:00
parent 71b980975b
commit 3208ceb8e6
25 changed files with 51 additions and 48 deletions

View File

@ -1 +1 @@
2023.10.5 2023.11.2

View File

@ -30,7 +30,7 @@
HURRICANE WINDS. FIND SHELTER, AND STAY INDOORS! HURRICANE WINDS. FIND SHELTER, AND STAY INDOORS!
{% endif %} {% endif %}
who: 'family' who: 'family'
apns_id: 'Alert' group: 'Alert'
- service: input_boolean.turn_on - service: input_boolean.turn_on
entity_id: input_boolean.alert_mode entity_id: input_boolean.alert_mode

View File

@ -26,7 +26,7 @@
data: data:
who: 'parents' who: 'parents'
value1: "The {{ trigger.to_state.attributes.friendly_name }} has been {{ (trigger.to_state.state)|replace('_', ' ') }}." value1: "The {{ trigger.to_state.attributes.friendly_name }} has been {{ (trigger.to_state.state)|replace('_', ' ') }}."
apns_id: 'information' group: 'information'
- service: input_boolean.turn_on - service: input_boolean.turn_on
entity_id: input_boolean.alert_mode entity_id: input_boolean.alert_mode

View File

@ -15,5 +15,5 @@
value2: 'There was a Hack attempt!' value2: 'There was a Hack attempt!'
value3: 'Go Check the GUI for details.' value3: 'Go Check the GUI for details.'
who: 'carlo' who: 'carlo'
apns_id: 'information' group: 'information'

View File

@ -19,6 +19,6 @@
value2: "New IP: {{ states('sensor.exteral_ip') }}" value2: "New IP: {{ states('sensor.exteral_ip') }}"
value3: ' - Be sure to Change DNS!' value3: ' - Be sure to Change DNS!'
who: 'carlo' who: 'carlo'
apns_id: 'ip-change' group: 'ip-change'
############################################################################## ##############################################################################

View File

@ -13,7 +13,7 @@
value1: 'Check the MQTT Dump' value1: 'Check the MQTT Dump'
value2: '/dump/{{ trigger.platform }}' value2: '/dump/{{ trigger.platform }}'
who: 'carlo' who: 'carlo'
apns_id: 'information' group: 'information'
- service: mqtt.publish - service: mqtt.publish
data: data:
topic: '/dump/{{ trigger.platform }}' topic: '/dump/{{ trigger.platform }}'

View File

@ -14,7 +14,7 @@
title: 'Home Assistant StartUp' title: 'Home Assistant StartUp'
value1: 'Home Assistant is Up and Running!' value1: 'Home Assistant is Up and Running!'
who: 'carlo' who: 'carlo'
apns_id: 'information' group: 'information'
- service: homeassistant.turn_off - service: homeassistant.turn_off
entity_id: entity_id:
@ -32,7 +32,7 @@
- service: notify.alexa_media_office - service: notify.alexa_media_office
data: data:
title: "Home Assistant Restarted" message: "Home Assistant has been restarted."
data: data:
type: announce type: announce
message: "Home Assistant has been restarted."

View File

@ -32,6 +32,6 @@
title: 'Medicine Reminder Completed' title: 'Medicine Reminder Completed'
value1: 'Carlo Took his Medicine today.' value1: 'Carlo Took his Medicine today.'
who: 'parents' who: 'parents'
apns_id: 'Medicine' group: 'Medicine'
- delay: - delay:
minutes: 1 minutes: 1

View File

@ -375,4 +375,4 @@ automation:
data: data:
value1: 'Someone has opened up the Alarm Panel Door!' value1: 'Someone has opened up the Alarm Panel Door!'
who: 'carlo' who: 'carlo'
apns_id: 'information' group: 'information'

View File

@ -64,4 +64,4 @@ automation:
data: data:
title: 'Low Battery' title: 'Low Battery'
value1: 'The August Door lock is at {{ states("sensor.front_door_battery") }}% ' value1: 'The August Door lock is at {{ states("sensor.front_door_battery") }}% '
apns_id: 'Battery_Alert' group: 'Battery_Alert'

View File

@ -34,7 +34,7 @@ automation:
title: 'Check Fridge' title: 'Check Fridge'
value1: "Please check the fridge, the temperature has been {{ states('sensor.blink_blink1_temperature') }} degrees for at least 20 minutes." value1: "Please check the fridge, the temperature has been {{ states('sensor.blink_blink1_temperature') }} degrees for at least 20 minutes."
who: 'family' who: 'family'
apns_id: 'information' group: 'information'
- wait_template: "{{ states.group.family.state == 'home' }}" - wait_template: "{{ states.group.family.state == 'home' }}"

View File

@ -102,7 +102,7 @@ automation:
icon2: 'sfsymbols:house.circle' icon2: 'sfsymbols:house.circle'
destructive2: 'true' destructive2: 'true'
who: "{{ person_triggered }}" who: "{{ person_triggered }}"
apns_id: 'Welcome_Home' group: 'Welcome_Home'
- alias: 'Open Large Garage Door Action' - alias: 'Open Large Garage Door Action'
id: 85e02a74-2ecc-4815-95a6-db864a6dffd7 id: 85e02a74-2ecc-4815-95a6-db864a6dffd7
@ -190,8 +190,8 @@ automation:
id: 2819207a-1716-4552-be34-a8e0f7af004e id: 2819207a-1716-4552-be34-a8e0f7af004e
trigger: trigger:
- platform: numeric_state - platform: numeric_state
entity_id: sensor.dark_sky_wind_speed entity_id: ssensor.pirateweather_wind_speed
above: 20 above: 30
condition: condition:
- condition: or - condition: or
@ -212,13 +212,13 @@ automation:
title: 'Check/Close Garage Doors - High Speed Wind Alert:' title: 'Check/Close Garage Doors - High Speed Wind Alert:'
value1: "Small: {{ states('cover.small_garage_door')}}" value1: "Small: {{ states('cover.small_garage_door')}}"
value2: "Large: {{ states('cover.large_garage_door')}}" value2: "Large: {{ states('cover.large_garage_door')}}"
apns_id: 'information' group: 'information'
who: 'parents' who: 'parents'
- service: script.speech_engine - service: script.speech_engine
data: data:
value1: > value1: >
"The winds are picking up outside. The wind speed is {{ states('sensor.dark_sky_wind_speed')|round}} miles per hour. For safety, please close the garage doors. "The winds are picking up outside. The wind speed is {{ states('sensor.pirateweather_wind_speed')|round}} miles per hour. For safety, please close the garage doors.
{% if is_state('cover.large_garage_door', 'open') -%} {% if is_state('cover.large_garage_door', 'open') -%}
The Large Garage Door is open The Large Garage Door is open
{% endif -%} {% endif -%}
@ -231,8 +231,8 @@ automation:
data: data:
tweet: > tweet: >
{{ [ {{ [
"Wind speed is {{ states('sensor.dark_sky_wind_speed')|round}} miles per hour. For safety, I'm going to close the @garadget doors.", "Wind speed is {{ states('sensor.pirateweather_wind_speed')|round}} miles per hour. For safety, I'm going to close the @garadget doors.",
"Getting pretty windy! {{ states('sensor.dark_sky_wind_speed')|round}}MPH. Time to ask @Garadget to close the garage doors." "Getting pretty windy! {{ states('sensor.pirateweather_wind_speed')|round}}MPH. Time to ask @Garadget to close the garage doors."
] | random + "(https://amzn.to/2jQLpVQ)"}} ] | random + "(https://amzn.to/2jQLpVQ)"}}
image: >- image: >-
{{ [ {{ [
@ -292,7 +292,7 @@ automation:
value2: "Large: {{ states('cover.large_garage_door')}}" value2: "Large: {{ states('cover.large_garage_door')}}"
who: "family" who: "family"
camera_entity: "camera.camera2" camera_entity: "camera.camera2"
apns_id: 'information' group: 'information'
- service: script.speech_engine - service: script.speech_engine
data: data:

View File

@ -41,7 +41,7 @@ automation:
title: 'Home Assistant {{ states.binary_sensor.updater.attributes.newest_version }} ' title: 'Home Assistant {{ states.binary_sensor.updater.attributes.newest_version }} '
value1: "Home Assistant {{ states.binary_sensor.updater.attributes.newest_version }} is now available." value1: "Home Assistant {{ states.binary_sensor.updater.attributes.newest_version }} is now available."
who: 'carlo' who: 'carlo'
apns_id: 'information' group: 'information'
- service: rest_command.new_version_github_issue - service: rest_command.new_version_github_issue
data_template: data_template:

View File

@ -77,7 +77,7 @@ automation:
value1: 'Please take your Medicine!' value1: 'Please take your Medicine!'
ios_category: "tablet" ios_category: "tablet"
who: "carlo" who: "carlo"
apns_id: 'Medicine' group: 'Medicine'
- alias: Remind Me Later - alias: Remind Me Later
id: 79b49c85-f832-47d7-b02d-bff099ef6fbc id: 79b49c85-f832-47d7-b02d-bff099ef6fbc
@ -92,7 +92,7 @@ automation:
title: 'Medicine Reminder' title: 'Medicine Reminder'
value1: 'Ok. I will remind you when you get home.' value1: 'Ok. I will remind you when you get home.'
who: 'carlo' who: 'carlo'
apns_id: 'Medicine' group: 'Medicine'
- wait_template: >- - wait_template: >-
{{ states.person.carlo.state == 'home' }} {{ states.person.carlo.state == 'home' }}
- service: script.notify_engine - service: script.notify_engine
@ -100,7 +100,7 @@ automation:
title: 'Medicine Reminder' title: 'Medicine Reminder'
value1: 'Now that your home, please take your medicine!' value1: 'Now that your home, please take your medicine!'
who: 'carlo' who: 'carlo'
apns_id: 'Medicine' group: 'Medicine'
- alias: Tablet Already taken - alias: Tablet Already taken
id: 1f295bb8-8925-4b22-8f75-9fe079b295a8 id: 1f295bb8-8925-4b22-8f75-9fe079b295a8

View File

@ -30,7 +30,7 @@ automation:
data: data:
value1: "The Garage charger is now in {{ states('sensor.carlojuice_charging_status') }} mode." value1: "The Garage charger is now in {{ states('sensor.carlojuice_charging_status') }} mode."
who: 'parents' who: 'parents'
apns_id: 'information' group: 'information'
- alias: 'Juicebox Self-Heal' - alias: 'Juicebox Self-Heal'
id: e693f117-c75d-4bb9-a8f3-c104b226d0c5 id: e693f117-c75d-4bb9-a8f3-c104b226d0c5
@ -89,7 +89,7 @@ automation:
data: data:
value1: "The Juice Box Charger is pulling {{ states('sensor.carlojuice_amps') }} AMPs. This is above the safety mark of 30. Please unplug charger immediately." 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' who: 'parents'
apns_id: 'JuiceBox' group: 'JuiceBox'
- service: script.speech_engine - service: script.speech_engine
data: data:
@ -123,7 +123,7 @@ automation:
data: data:
value1: "The Juice Box Charger is running very Hot. Temperature is around {{ states('sensor.carlojuice_temperature') }} degrees. This is above the safety mark of 140. Please unplug the car immediately." value1: "The Juice Box Charger is running very Hot. Temperature is around {{ states('sensor.carlojuice_temperature') }} degrees. This is above the safety mark of 140. Please unplug the car immediately."
who: 'parents' who: 'parents'
apns_id: 'JuiceBox' group: 'JuiceBox'
- service: script.speech_engine - service: script.speech_engine
data: data:

View File

@ -63,7 +63,7 @@ automation:
value1: "Lightning has been detected within {{(states('sensor.blitzortung_lightning_distance') | int / 1.69) | round (1, 'floor')}} Miles of our home. Be careful if outdoors." value1: "Lightning has been detected within {{(states('sensor.blitzortung_lightning_distance') | int / 1.69) | round (1, 'floor')}} Miles of our home. Be careful if outdoors."
ios_category: "LIGHTNING" ios_category: "LIGHTNING"
who: 'family' who: 'family'
apns_id: 'Alert' group: 'Alert'
- service: script.speech_engine - service: script.speech_engine
data: data:

View File

@ -61,7 +61,7 @@ automation:
ios_category: 'camera' ios_category: 'camera'
camera_entity: 'camera.neato_vac_cleaning_map' camera_entity: 'camera.neato_vac_cleaning_map'
content_type: 'jpeg' content_type: 'jpeg'
apns_id: 'information' group: 'information'
- delay: 00:20:00 - delay: 00:20:00
- event: event_did_someone_help_neato_loop - event: event_did_someone_help_neato_loop

View File

@ -61,7 +61,7 @@ automation:
data: data:
value1: "An emergency has been detected on {{ trigger.to_state.attributes.friendly_name }} Please investigate IMMEDIATELY." value1: "An emergency has been detected on {{ trigger.to_state.attributes.friendly_name }} Please investigate IMMEDIATELY."
who: "family" who: "family"
apns_id: '{{ trigger.to_state.attributes.friendly_name }}' group: '{{ trigger.to_state.attributes.friendly_name }}'
- service: script.emergency - service: script.emergency
data: data:
@ -92,5 +92,5 @@ automation:
data: data:
value1: "The {{ trigger.to_state.attributes.friendly_name }} is now {{ (trigger.to_state.state)|replace('_', ' ') }}. Please check immediately." value1: "The {{ trigger.to_state.attributes.friendly_name }} is now {{ (trigger.to_state.state)|replace('_', ' ') }}. Please check immediately."
who: "family" who: "family"
apns_id: '{{ trigger.to_state.attributes.friendly_name }}' group: '{{ trigger.to_state.attributes.friendly_name }}'

View File

@ -47,7 +47,7 @@ automation:
value1: 'Phyn is sensing {{ trigger.event.data.alert_type }} and turned off the water. Please verify {{ trigger.event.data.where }}.' value1: 'Phyn is sensing {{ trigger.event.data.alert_type }} and turned off the water. Please verify {{ trigger.event.data.where }}.'
who: 'parents' who: 'parents'
ios_category: "phyn" ios_category: "phyn"
apns_id: 'IFTTT_Phyn' group: 'IFTTT_Phyn'
- alias: Turn Phyn Water On - alias: Turn Phyn Water On
id: 1f295bb8-8925-4b22-PHYN-9fe079b295a8 id: 1f295bb8-8925-4b22-PHYN-9fe079b295a8
@ -65,7 +65,7 @@ automation:
title: 'Phyn Leak Detection' title: 'Phyn Leak Detection'
value1: 'Request Recieved. Attempting to Turn the Water back on.' value1: 'Request Recieved. Attempting to Turn the Water back on.'
who: 'parents' who: 'parents'
apns_id: 'IFTTT_Phyn' group: 'IFTTT_Phyn'
- service: script.speech_engine - service: script.speech_engine
data: data:

View File

@ -28,7 +28,7 @@ automation:
title: "Electrical Grid Status {{ (trigger.to_state.state)|replace('on', 'up')|replace('off', 'down') }}." title: "Electrical Grid Status {{ (trigger.to_state.state)|replace('on', 'up')|replace('off', 'down') }}."
value1: "Please verify with the Tesla App." value1: "Please verify with the Tesla App."
who: 'parents' who: 'parents'
apns_id: 'information' group: 'information'
# https://github.com/CCOSTAN/Home-AssistantConfig/issues/779 # https://github.com/CCOSTAN/Home-AssistantConfig/issues/779
- alias: Shut Things down if running on PowerWall - alias: Shut Things down if running on PowerWall
@ -50,7 +50,7 @@ automation:
title: "Electrical Grid Status {{ (trigger.to_state.state)|replace('True', 'up')|replace('False', 'down') }}." title: "Electrical Grid Status {{ (trigger.to_state.state)|replace('True', 'up')|replace('False', 'down') }}."
value1: "Taking actions to turning off the House Lights to preserve Battery Power." value1: "Taking actions to turning off the House Lights to preserve Battery Power."
who: 'family' who: 'family'
apns_id: 'information' group: 'information'
- delay: - delay:
minutes: 1 minutes: 1
@ -102,7 +102,7 @@ automation:
title: "Electrical Grid Status {{ (trigger.to_state.state)|replace('True', 'up')|replace('False', 'down') }}." title: "Electrical Grid Status {{ (trigger.to_state.state)|replace('True', 'up')|replace('False', 'down') }}."
value1: "Taking actions to turning off the AC units to preserve Battery Power." value1: "Taking actions to turning off the AC units to preserve Battery Power."
who: 'family' who: 'family'
apns_id: 'information' group: 'information'
- alias: Turn back on the Nest Thermostats after a Power Outage - alias: Turn back on the Nest Thermostats after a Power Outage
id: 14faf84b-cb24-4391-a97f-b83479a67fc7 id: 14faf84b-cb24-4391-a97f-b83479a67fc7
@ -146,4 +146,4 @@ automation:
title: "Electrical Grid Status {{ (trigger.to_state.state)|replace('True', 'up')|replace('False', 'down') }}." title: "Electrical Grid Status {{ (trigger.to_state.state)|replace('True', 'up')|replace('False', 'down') }}."
value1: "All AC systems are set back to normal operations." value1: "All AC systems are set back to normal operations."
who: 'family' who: 'family'
apns_id: 'information' group: 'information'

View File

@ -30,7 +30,7 @@ automation:
title: "Maintenance Alert" title: "Maintenance Alert"
value1: "Rheem Water Tank Compressor Health below recommended level." value1: "Rheem Water Tank Compressor Health below recommended level."
who: 'carlo' who: 'carlo'
apns_id: 'information' group: 'information'
- conditions: - conditions:
- condition: trigger - condition: trigger
id: sensor.rheem_wh_tank_health id: sensor.rheem_wh_tank_health
@ -40,7 +40,7 @@ automation:
title: "Maintenance Alert" title: "Maintenance Alert"
value1: "Rheem Water Tank Health below recommended level." value1: "Rheem Water Tank Health below recommended level."
who: 'carlo' who: 'carlo'
apns_id: 'information' group: 'information'
- alias: "Rheem Water Heater Hot Water Availability Alert" - alias: "Rheem Water Heater Hot Water Availability Alert"
trigger: trigger:
@ -53,7 +53,7 @@ automation:
title: "Hot Water Alert" title: "Hot Water Alert"
value1: "Available hot water is below 30%." value1: "Available hot water is below 30%."
who: 'carlo' who: 'carlo'
apns_id: 'information' group: 'information'
- service: script.speech_engine - service: script.speech_engine
data: data:
value1: "Please be aware that the hot water has dropped below 30% availability. Please consider taking a shower at another time." value1: "Please be aware that the hot water has dropped below 30% availability. Please consider taking a shower at another time."

View File

@ -70,4 +70,4 @@ automation:
title: 'Living Room Remote' title: 'Living Room Remote'
value1: 'Remote has been found.' value1: 'Remote has been found.'
who: "family" who: "family"
apns_id: 'RemoteLR' group: 'RemoteLR'

View File

@ -42,6 +42,6 @@ automation:
- service: script.notify_engine - service: script.notify_engine
data: data:
value1: 'Go Outside! There is a Rocket Launch very soon! {{states.sensor.next_launch.attributes.stream }}' value1: 'Go Outside! There is a Rocket Launch very soon! {{states.sensor.next_launch.attributes.stream }}'
apns_id: 'information' group: 'information'

View File

@ -17,6 +17,7 @@ exclude:
- binary_sensor.camera1_motion_sensor - binary_sensor.camera1_motion_sensor
- binary_sensor.camera2_motion_sensor - binary_sensor.camera2_motion_sensor
- binary_sensor.camera3_motion_sensor - binary_sensor.camera3_motion_sensor
- binary_sensor.powerwall_charging
- media_player.carlo_s_4th_fire - media_player.carlo_s_4th_fire
- media_player.alarm_panel_2 - media_player.alarm_panel_2
- media_player.tap - media_player.tap
@ -44,7 +45,10 @@ exclude:
- sensor.pi_hole_ads_percentage_blocked_today - sensor.pi_hole_ads_percentage_blocked_today
- sensor.pi_hole_dns_queries_today - sensor.pi_hole_dns_queries_today
- sensor.small_garage_door_since - sensor.small_garage_door_since
- sensor.large_garage_door_since
- sensor.stacey_iphone11_activity
- sensor.time - sensor.time
- sensor.rachio_watering_time - sensor.rachio_watering_time
- binary_sensor.rheem_wh_running
- sun.sun - sun.sun
- zone.home - zone.home

View File

@ -10,7 +10,7 @@
# who: "stacey | carlo | paige | family | parents" # who: "stacey | carlo | paige | family | parents"
# camera_entity: 'Camera.Camera' # camera_entity: 'Camera.Camera'
# content-type: "jpeg" # content-type: "jpeg"
# apns_id: "Something_Unique" if important or information # group: "Something_Unique" if important or information
# @CCOSTAN # @CCOSTAN
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig # Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
@ -42,10 +42,9 @@ notify_engine:
title: "{{ title }}" title: "{{ title }}"
message: "{{ value1 }} {{ value2 }} {{ value3 }}" message: "{{ value1 }} {{ value2 }} {{ value3 }}"
data: data:
apns_headers: group: "{{ group|default('information'),true }}"
'apns-collapse-id': "{{ apns_id }}"
push: push:
category: "{{ ios_category }}" interuption_level: "{{ level|default('active'),true }}"
entity_id: "{{ camera_entity }}" entity_id: "{{ camera_entity }}"
notify_engine_two_button: notify_engine_two_button:
@ -81,4 +80,4 @@ notify_engine_two_button:
action: "{{ action2 }}" action: "{{ action2 }}"
icon: "{{ icon2|default ('sfsymbols:house.circle', true) }}" icon: "{{ icon2|default ('sfsymbols:house.circle', true) }}"
destructive: "{{ destructive2|default('false', true) }}" destructive: "{{ destructive2|default('false', true) }}"
apns_id: "{{ apns_id }}" group: "{{ group|default('information'),true }}"