Lots of Changes to the IOS notifications.

This commit is contained in:
ccostan 2023-07-19 23:32:11 -04:00
parent bfc7ece391
commit 5c020091a8
11 changed files with 36 additions and 24 deletions

View File

@ -1 +1 @@
2023.6.2
2023.7.2

View File

@ -11,6 +11,7 @@
- binary_sensor.MCU2_GPIO12 # Main Slider
- binary_sensor.MCU1_GPIO12 # Interior Garage Door #
from: 'off'
to: 'on'
condition:
- condition: state

View File

@ -30,7 +30,7 @@
- service: script.notify_engine
data:
title: 'Medicine Reminder Completed'
value1: 'Carlo Took Medicine today.'
value1: 'Carlo Took his Medicine today.'
who: 'parents'
apns_id: 'Medicine'
- delay:

View File

@ -8,9 +8,10 @@ media_players:
- media_player.living_room
- media_player.front_room_flex
- media_player.office
- media_player.kitchen_show
- media_player.kitchen
- media_player.justin_room
- media_player.tap
- media_player.upstairs
- media_player.stacey_bedroom
- media_player.carlo_bedroom
- media_player.master_bathroom

View File

@ -37,6 +37,13 @@ automation:
from: 'not_home'
to: 'home'
- platform: state
entity_id:
- person.carlo
- person.stacey
to: 'not_home'
from: 'home'
action:
- choose:
- conditions: "{{ is_state('binary_sensor.sleepnumber_carlo_stacey_is_in_bed','on') }}"
@ -53,24 +60,26 @@ automation:
media_content_id: 'hide garage camera'
media_content_type: custom
- conditions: "{{ is_state('switch.kitchen_accent_1','on') }}"
sequence:
- service: media_player.play_media
data:
entity_id: media_player.alarm_panel_1
media_content_id: 'show garage camera'
media_content_type: custom
# - conditions: "{{ is_state('switch.kitchen_accent_1','on') }}"
# sequence:
# - service: media_player.play_media
# data:
# entity_id: media_player.alarm_panel_1
# media_content_id: 'show garage camera'
# media_content_type: custom
default:
- service: media_player.play_media
target:
entity_id: media_player.kitchen
data:
entity_id: media_player.kitchen_show
media_content_id: 'show garage camera'
media_content_type: custom
- delay: '00:20:00'
- service: media_player.play_media
target:
entity_id: media_player.kitchen
data:
entity_id: media_player.kitchen_show
media_content_id: 'hide garage camera'
media_content_type: custom

View File

@ -54,6 +54,7 @@ automation:
trigger:
platform: webhook
webhook_id: !secret github_webhook
local_only: false
condition:

View File

@ -12,13 +12,12 @@ notify:
- name: ios_family
platform: group
services:
- service: mobile_app_stacey_6s
- service: mobile_app_stacey_iphone11
- service: mobile_app_carlo_xsmax
- service: mobile_app_paige_6s
- name: ios_parents
platform: group
services:
- service: mobile_app_stacey_6s
- service: mobile_app_stacey_iphone11
- service: mobile_app_carlo_xsmax
mobile_app:

View File

@ -12,7 +12,6 @@ command_line:
command: "find /config -name '*.yaml' | xargs cat | wc -l"
scan_interval: 20000
command_line:
- sensor:
name: 'GitHub Stats'
unique_id: github_stats_command

View File

@ -32,7 +32,7 @@ notify_engine:
- service: >
{% if who == 'stacey' %}
notify.mobile_app_iphone
notify.mobile_app_stacey_iphone11
{% elif who == 'carlo' %}
notify.mobile_app_carlo_xsmax
{% elif who == 'parents' %}
@ -46,14 +46,16 @@ notify_engine:
title: "{{ title }}"
message: "{{ value1 }} {{ value2 }} {{ value3 }}"
data:
attachment:
url: "{{ url }}"
content-type: "{{ content_type }}"
hide-thumbnail: false
# attachment:
# url: "{{ url }}"
# content-type: "{{ content_type }}"
# hide-thumbnail: false
apns_headers:
'apns-collapse-id': "{{ apns_id }}"
push:
# sound: "{{ ios_sound }}"
# badge: "{{ ios_badge }}"
# interruption-level: time-sensitive
# interruption-level: critical
category: "{{ ios_category }}"
entity_id: "{{ camera_entity }}"

File diff suppressed because one or more lines are too long