From cf52096d8242c0dca028221500f5b13ea9e1594d Mon Sep 17 00:00:00 2001 From: Claus Dethlefsen Date: Tue, 7 Apr 2026 16:27:58 +0200 Subject: [PATCH] Migrate Claus notifications to iPhone 15 Pro --- configuration.yaml | 1 + dashboards/views/02_person_status.yaml | 2 +- dashboards/views/09_map.yaml | 2 +- include/automations/der_er_nogen_i_indkorslen.yaml | 2 +- include/automations/derernogenihuset.yaml | 2 +- include/automations/doerklokke_bag.yaml | 8 ++++---- include/automations/doerklokke_bag2.yaml | 6 +++--- include/automations/doerklokke_for.yaml | 8 ++++---- include/automations/garage_anne.yaml | 2 +- include/automations/kommerhjem.yaml | 14 +++++++------- .../automations/open_garage_when_car_arrives.yaml | 8 ++++---- include/automations/opvaskemaskine.yaml | 4 ++-- include/automations/roborock.yaml | 6 +++--- include/input/text/notifications.yaml | 3 +++ include/scripts/doorbell.yaml | 2 +- include/scripts/overvaagning.yaml | 2 +- include/templates/claus_distance_home.yaml | 2 +- 17 files changed, 39 insertions(+), 35 deletions(-) create mode 100644 include/input/text/notifications.yaml diff --git a/configuration.yaml b/configuration.yaml index 363c470..cf37ada 100755 --- a/configuration.yaml +++ b/configuration.yaml @@ -122,6 +122,7 @@ input_datetime: !include_dir_merge_named include/input/datetime/ input_number: !include_dir_merge_named include/input/number/ input_select: !include_dir_merge_named include/input/select/ input_boolean: !include_dir_merge_named include/input/boolean/ +input_text: !include_dir_merge_named include/input/text/ light: !include_dir_merge_list include/lights/ panel_iframe: !include_dir_merge_named include/panels/ script: !include_dir_merge_named include/scripts/ diff --git a/dashboards/views/02_person_status.yaml b/dashboards/views/02_person_status.yaml index ac2334e..87b9110 100644 --- a/dashboards/views/02_person_status.yaml +++ b/dashboards/views/02_person_status.yaml @@ -75,5 +75,5 @@ sections: name: Daniel - entity: device_tracker.annes_iphone_xs_4 name: Anne - - entity: device_tracker.clausiphone + - entity: device_tracker.claus_iphone_15pro name: Claus diff --git a/dashboards/views/09_map.yaml b/dashboards/views/09_map.yaml index 74fd288..5cdd585 100644 --- a/dashboards/views/09_map.yaml +++ b/dashboards/views/09_map.yaml @@ -24,5 +24,5 @@ sections: name: Daniel - entity: device_tracker.annes_iphone_xs_4 name: Anne - - entity: device_tracker.clausiphone + - entity: device_tracker.claus_iphone_15pro name: Claus diff --git a/include/automations/der_er_nogen_i_indkorslen.yaml b/include/automations/der_er_nogen_i_indkorslen.yaml index e2fe7ec..d165103 100644 --- a/include/automations/der_er_nogen_i_indkorslen.yaml +++ b/include/automations/der_er_nogen_i_indkorslen.yaml @@ -4,7 +4,7 @@ entity_id: binary_sensor.indkorsel_sensor_motion to: 'on' action: - - service: notify.mobile_app_clausiphone15 + - service: notify.mobile_app_claus_iphone_15pro data: message: "Der er nogen i indkørslen" # - service: script.sonos_say diff --git a/include/automations/derernogenihuset.yaml b/include/automations/derernogenihuset.yaml index c7daa3c..18009d1 100644 --- a/include/automations/derernogenihuset.yaml +++ b/include/automations/derernogenihuset.yaml @@ -24,7 +24,7 @@ entity_id: binary_sensor.family_presence state: "off" action: - - service: notify.mobile_app_clausiphone15 + - service: notify.mobile_app_claus_iphone_15pro data: message: >- Der er nogen i huset. diff --git a/include/automations/doerklokke_bag.yaml b/include/automations/doerklokke_bag.yaml index e1dab91..fa5835c 100644 --- a/include/automations/doerklokke_bag.yaml +++ b/include/automations/doerklokke_bag.yaml @@ -15,7 +15,7 @@ - condition: template value_template: '{{ trigger.payload_json.event == "S" }}' sequence: - - service: notify.mobile_app_clausiphone15 + - service: notify.mobile_app_claus_iphone_15pro data: message: Det ringer på bagdøren old - service: notify.mobile_app_annes_iphone_14_pro @@ -171,7 +171,7 @@ - condition: template value_template: '{{ trigger.payload_json.event == "SS" }}' sequence: - - service: notify.mobile_app_clausiphone15 + - service: notify.mobile_app_claus_iphone_15pro data: message: Det ringer på bagdøren - doublepress - service: notify.mobile_app_annes_iphone_14_pro @@ -257,7 +257,7 @@ - condition: template value_template: '{{ trigger.payload_json.event == "SSS" }}' sequence: - - service: notify.mobile_app_clausiphone15 + - service: notify.mobile_app_claus_iphone_15pro data: message: Det ringer på bagdøren - triple-press - service: notify.mobile_app_annes_iphone_14_pro @@ -343,7 +343,7 @@ - condition: template value_template: '{{ trigger.payload_json.event == "L" }}' sequence: - - service: notify.mobile_app_clausiphone15 + - service: notify.mobile_app_claus_iphone_15pro data: message: Det ringer på bagdøren - long-press - service: notify.mobile_app_annes_iphone_14_pro diff --git a/include/automations/doerklokke_bag2.yaml b/include/automations/doerklokke_bag2.yaml index c615a97..f67cb14 100644 --- a/include/automations/doerklokke_bag2.yaml +++ b/include/automations/doerklokke_bag2.yaml @@ -27,7 +27,7 @@ - condition: template value_template: '{{ trigger.payload_json.event == "SS" }}' sequence: - - service: notify.mobile_app_clausiphone15 + - service: notify.mobile_app_claus_iphone_15pro data: message: Det ringer på bagdøren (2) - doublepress - service: notify.mobile_app_annes_iphone_14_pro @@ -153,7 +153,7 @@ - condition: template value_template: '{{ trigger.payload_json.event == "SSS" }}' sequence: - - service: notify.mobile_app_clausiphone15 + - service: notify.mobile_app_claus_iphone_15pro data: message: Det ringer på bagdøren (2) - triple-press - service: notify.mobile_app_annes_iphone_14_pro @@ -239,7 +239,7 @@ - condition: template value_template: '{{ trigger.payload_json.event == "L" }}' sequence: - - service: notify.mobile_app_clausiphone15 + - service: notify.mobile_app_claus_iphone_15pro data: message: Det ringer på bagdøren (2) - long-press - service: notify.mobile_app_annes_iphone_14_pro diff --git a/include/automations/doerklokke_for.yaml b/include/automations/doerklokke_for.yaml index 6d1aa84..7e96732 100644 --- a/include/automations/doerklokke_for.yaml +++ b/include/automations/doerklokke_for.yaml @@ -16,7 +16,7 @@ - condition: template value_template: '{{ trigger.payload_json.event == "S" }}' sequence: - - service: notify.mobile_app_clausiphone15 + - service: notify.mobile_app_claus_iphone_15pro data: message: Det ringer på fordøren - service: notify.mobile_app_annes_iphone_14_pro @@ -131,7 +131,7 @@ - condition: template value_template: '{{ trigger.payload_json.event == "SS" }}' sequence: - - service: notify.mobile_app_clausiphone15 + - service: notify.mobile_app_claus_iphone_15pro data: message: Det ringer på fordøren - doublepress - service: notify.mobile_app_annes_iphone_14_pro @@ -217,7 +217,7 @@ - condition: template value_template: '{{ trigger.payload_json.event == "SSS" }}' sequence: - - service: notify.mobile_app_clausiphone15 + - service: notify.mobile_app_claus_iphone_15pro data: message: Det ringer på fordøren - triple-press - service: notify.mobile_app_annes_iphone_14_pro @@ -303,7 +303,7 @@ - condition: template value_template: '{{ trigger.payload_json.event == "L" }}' sequence: - - service: notify.mobile_app_clausiphone15 + - service: notify.mobile_app_claus_iphone_15pro data: message: Det ringer på fordøren - long-press - service: notify.mobile_app_annes_iphone_14_pro diff --git a/include/automations/garage_anne.yaml b/include/automations/garage_anne.yaml index 34a6b21..34ef0f6 100644 --- a/include/automations/garage_anne.yaml +++ b/include/automations/garage_anne.yaml @@ -26,7 +26,7 @@ sequence: - - service: notify.mobile_app_clausiphone15 + - service: notify.mobile_app_claus_iphone_15pro data: title: "Garageport" message: "Garageporten er åben. Skal garageporten lukkes?" diff --git a/include/automations/kommerhjem.yaml b/include/automations/kommerhjem.yaml index b1194fe..fc88ea1 100644 --- a/include/automations/kommerhjem.yaml +++ b/include/automations/kommerhjem.yaml @@ -5,7 +5,7 @@ to: 'home' action: - service: notify.mobile_app_clausiphone15 + service: notify.mobile_app_claus_iphone_15pro data: message: 'Mor kommer hjem' @@ -27,7 +27,7 @@ to: 'home' action: - service: notify.mobile_app_clausiphone15 + service: notify.mobile_app_claus_iphone_15pro data: message: 'Daniel kommer hjem' @@ -50,7 +50,7 @@ to: 'home' action: - service: notify.mobile_app_clausiphone15 + service: notify.mobile_app_claus_iphone_15pro data: message: 'Andreas kommer hjem' @@ -74,7 +74,7 @@ to: 'Skole' action: - service: notify.mobile_app_clausiphone15 + service: notify.mobile_app_claus_iphone_15pro data: message: 'Andreas ankommer til skole' @@ -85,7 +85,7 @@ from: 'Skole' action: - service: notify.mobile_app_clausiphone15 + service: notify.mobile_app_claus_iphone_15pro data: message: 'Andreas tager fra skole' @@ -110,7 +110,7 @@ to: 'Østre Alle' action: - service: notify.mobile_app_clausiphone15 + service: notify.mobile_app_claus_iphone_15pro data: message: 'Daniel ankommer til skole' @@ -121,7 +121,7 @@ from: 'Skole' action: - service: notify.mobile_app_clausiphone15 + service: notify.mobile_app_claus_iphone_15pro data: message: 'Daniel tager fra skole' diff --git a/include/automations/open_garage_when_car_arrives.yaml b/include/automations/open_garage_when_car_arrives.yaml index a75c345..897a38b 100644 --- a/include/automations/open_garage_when_car_arrives.yaml +++ b/include/automations/open_garage_when_car_arrives.yaml @@ -3,12 +3,12 @@ trigger: - platform: state - entity_id: device_tracker.clausiphone + entity_id: device_tracker.claus_iphone_15pro to: "home" id: arriving - platform: state - entity_id: device_tracker.clausiphone + entity_id: device_tracker.claus_iphone_15pro from: "home" id: leaving @@ -38,7 +38,7 @@ target: entity_id: cover.anne - - service: notify.mobile_app_clausiphone15 + - service: notify.mobile_app_claus_iphone_15pro data: message: "Garage opened (arrival by car)" @@ -62,7 +62,7 @@ target: entity_id: cover.anne - - service: notify.mobile_app_clausiphone15 + - service: notify.mobile_app_claus_iphone_15pro data: message: "Garage closed (departure by car)" mode: single diff --git a/include/automations/opvaskemaskine.yaml b/include/automations/opvaskemaskine.yaml index c3bc2d7..2b0029a 100644 --- a/include/automations/opvaskemaskine.yaml +++ b/include/automations/opvaskemaskine.yaml @@ -83,7 +83,7 @@ target: entity_id: button.dishwasher_start default: - - service: notify.mobile_app_clausiphone15 + - service: notify.mobile_app_claus_iphone_15pro data: title: "Opvaskemaskine venter på remote control" message: "Planlagt natkørsel kunne ikke startes, fordi fjernbetjening ikke er slået til." @@ -106,7 +106,7 @@ value_template: "{{ is_state('sensor.dishwasher_status_2', 'Off') }}" action: - - service: notify.mobile_app_clausiphone15 + - service: notify.mobile_app_claus_iphone_15pro data: title: "Slå fjernbetjening til på opvaskemaskinen" message: "Opvaskemaskinen er planlagt til natkørsel, men remote control er ikke slået til endnu." \ No newline at end of file diff --git a/include/automations/roborock.yaml b/include/automations/roborock.yaml index 69bf698..3887d35 100644 --- a/include/automations/roborock.yaml +++ b/include/automations/roborock.yaml @@ -91,7 +91,7 @@ target: entity_id: input_number.roborock_auto_runs_today - - service: notify.mobile_app_clausiphone15 + - service: notify.mobile_app_claus_iphone_15pro data: title: "🧹 Roborock startet" message: > @@ -106,7 +106,7 @@ entity_id: vacuum.roborock_s8_pro_ultra state: "cleaning" sequence: - - service: notify.mobile_app_clausiphone15 + - service: notify.mobile_app_claus_iphone_15pro data: title: "⚠️ Roborock start fejlede" message: "Startkommando sendt, men den begyndte ikke at køre." @@ -132,7 +132,7 @@ target: entity_id: vacuum.roborock_s8_pro_ultra - - service: notify.mobile_app_clausiphone15 + - service: notify.mobile_app_claus_iphone_15pro data: title: "🏠 Roborock stoppet" message: "Rengøring stoppet fordi nogen er kommet hjem." diff --git a/include/input/text/notifications.yaml b/include/input/text/notifications.yaml new file mode 100644 index 0000000..f4d2ea9 --- /dev/null +++ b/include/input/text/notifications.yaml @@ -0,0 +1,3 @@ +last_notification_message: + name: Last Notification Message + max: 255 \ No newline at end of file diff --git a/include/scripts/doorbell.yaml b/include/scripts/doorbell.yaml index 638ac07..e56fc67 100644 --- a/include/scripts/doorbell.yaml +++ b/include/scripts/doorbell.yaml @@ -8,7 +8,7 @@ doorbell: alias: Dørklokke sequence: - - service: notify.mobile_app_clausiphone15 + - service: notify.mobile_app_claus_iphone_15pro data: message: '{{ tekst }}' - service: notify.mobile_app_annes_iphone_14_pro diff --git a/include/scripts/overvaagning.yaml b/include/scripts/overvaagning.yaml index 5f62cf1..3356b10 100644 --- a/include/scripts/overvaagning.yaml +++ b/include/scripts/overvaagning.yaml @@ -61,7 +61,7 @@ overvaagning: %H:%M:%S') }} data: image: /local/indkorsel_snapshot.jpg - action: notify.mobile_app_clausiphone15 + action: notify.mobile_app_claus_iphone_15pro - data: entity_id: input_text.last_notification_message value: >- diff --git a/include/templates/claus_distance_home.yaml b/include/templates/claus_distance_home.yaml index f530714..03c8085 100644 --- a/include/templates/claus_distance_home.yaml +++ b/include/templates/claus_distance_home.yaml @@ -2,4 +2,4 @@ - name: "claus_distance_home" unit_of_measurement: m state: > - {{ distance('device_tracker.clausiphone', 'zone.home') | round(0) }} + {{ distance('device_tracker.claus_iphone_15pro', 'zone.home') | round(0) }}