From 57aed436659e6a729b854d18f829955e5f7c4c9f Mon Sep 17 00:00:00 2001 From: Liam Woodleigh-Hardinge Date: Sat, 29 Jun 2024 16:55:29 +0200 Subject: [PATCH] fix: correct service name used --- automations/BG.yaml | 12 ++++++------ automations/adaptive_lighting.yaml | 4 ++-- automations/leaving.yaml | 2 +- automations/sleep_mode.yaml | 2 +- scripts.yaml | 6 +++--- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/automations/BG.yaml b/automations/BG.yaml index 0f48b45..3d148aa 100644 --- a/automations/BG.yaml +++ b/automations/BG.yaml @@ -16,7 +16,7 @@ entity_id: input_boolean.flash_lights_if_low_bg state: "on" action: - - service: notify.mobile_app_iphone + - service: notify.liam data: message: "LOW BG! Turn off flashing lights?" data: @@ -56,7 +56,7 @@ entity_id: input_boolean.flash_lights_if_low_bg state: "on" action: - - service: notify.mobile_app_iphone + - service: notify.liam data: message: "High BG!" - repeat: @@ -92,7 +92,7 @@ entity_id: light.bedroom_lights # Notify of status - - service: notify.mobile_app_iphone + - service: notify.liam data: title: "Blood Glucose" message: "Turned off automation and turned off lights" @@ -102,7 +102,7 @@ timeout: "01:00:00" # Notify of status - - service: notify.mobile_app_iphone + - service: notify.liam data: title: "Blood Glucose" message: "BG above 4, re-enabling automation" @@ -116,7 +116,7 @@ entity_id: automation.bg_flash_bedroom_lights_if_bg_below_4 # Notify of status - - service: notify.mobile_app_iphone + - service: notify.liam data: title: "Blood Glucose" message: "Automation turned on/re-enabled." @@ -137,7 +137,7 @@ entity_id: sensor.dexcom_liamwoodleigh_glucose_value above: "7.5" action: - service: notify.mobile_app_iphone + service: notify.liam data: title: "Blood Glucose 💉" message: "BG: {{ states('sensor.dexcom_liamwoodleigh_glucose_value') }}\nTrend: {{ states('sensor.dexcom_liamwoodleigh_glucose_trend') }}\nADA/USD: {{ states('sensor.cryptoinfo_cardano_usd')\nETH/USD: {{ states('sensor.cryptoinfo_ethereum_usd')}}" diff --git a/automations/adaptive_lighting.yaml b/automations/adaptive_lighting.yaml index 95e95a2..ad5b986 100644 --- a/automations/adaptive_lighting.yaml +++ b/automations/adaptive_lighting.yaml @@ -38,7 +38,7 @@ entity_id: "{{ switch }}" lights: "{{ light }}" manual_control: false - - service: notify.mobile_app_iphone + - service: notify.liam data: title: "Adaptive Lighting: reset manual_control" message: "{{ light }} is reset to *not* 'manually controlled'" @@ -56,7 +56,7 @@ data: message: "{{ light }} is manually controlled" level: error - - service: notify.mobile_app_iphone + - service: notify.liam data: title: "Adaptive Lighting: manual_control" message: "{{ light }} is now manually controlled." diff --git a/automations/leaving.yaml b/automations/leaving.yaml index 82369ae..17f4817 100644 --- a/automations/leaving.yaml +++ b/automations/leaving.yaml @@ -47,7 +47,7 @@ - condition: state entity_id: binary_sensor.no_one_home state: "on" - - service: notify.mobile_app_iphone + - service: notify.liam data: message: "No one is home, turn off everything?" data: diff --git a/automations/sleep_mode.yaml b/automations/sleep_mode.yaml index 5c93192..c2049dd 100644 --- a/automations/sleep_mode.yaml +++ b/automations/sleep_mode.yaml @@ -93,7 +93,7 @@ entity_id: input_select.sleep_mode data: option: "total" - - service: notify.mobile_app_iphone + - service: notify.liam data: title: "Night mode" message: "Automatically switched from 'half' to 'total' sleeping mode! 💤🛌" diff --git a/scripts.yaml b/scripts.yaml index cc3e5b2..1adc09a 100644 --- a/scripts.yaml +++ b/scripts.yaml @@ -2,7 +2,7 @@ message_blood_sugar: alias: Message blood sugar sequence: - - service: notify.mobile_app_iphone + - service: notify.liam data: message: "BG: {{ states('sensor.dexcom_liamwoodleigh_glucose_value') }}. Trend: @@ -294,7 +294,7 @@ turn_on_lights: # mode: single # sequence: # # Send iPhone notification -# - service: notify.mobile_app_iphone +# - service: notify.liam # data: # title: "Arriving" # message: "Switching music from phone to TV. Take out your Airpods & press play when ready!" @@ -328,7 +328,7 @@ arriving: trash_notification: sequence: - - service: notify.mobile_app_iphone + - service: notify.liam data: title: "Afvalbeheer" message: |+