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.MCU2_GPIO12 # Main Slider
- binary_sensor.MCU1_GPIO12 # Interior Garage Door # - binary_sensor.MCU1_GPIO12 # Interior Garage Door #
from: 'off' from: 'off'
to: 'on'
condition: condition:
- condition: state - condition: state

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

File diff suppressed because one or more lines are too long