Skip to content

Commit

Permalink
fix: correct service name used
Browse files Browse the repository at this point in the history
  • Loading branch information
liamwh committed Jun 29, 2024
1 parent 7b145c1 commit 57aed43
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions automations/BG.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -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."
Expand All @@ -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')}}"
4 changes: 2 additions & 2 deletions automations/adaptive_lighting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'"
Expand All @@ -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."
2 changes: 1 addition & 1 deletion automations/leaving.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion automations/sleep_mode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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! 💤🛌"
6 changes: 3 additions & 3 deletions scripts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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!"
Expand Down Expand Up @@ -328,7 +328,7 @@ arriving:

trash_notification:
sequence:
- service: notify.mobile_app_iphone
- service: notify.liam
data:
title: "Afvalbeheer"
message: |+
Expand Down

0 comments on commit 57aed43

Please sign in to comment.