mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-09 10:14:41 +00:00
Add ios notifications
This commit is contained in:
@@ -246,3 +246,11 @@ automation:
|
|||||||
- service: script.say
|
- service: script.say
|
||||||
data:
|
data:
|
||||||
message: "Hey, I'm turning Titanium off. It's been idling for 3 hours."
|
message: "Hey, I'm turning Titanium off. It's been idling for 3 hours."
|
||||||
|
- service: notify.mobile_app_carbon
|
||||||
|
data:
|
||||||
|
title: "Automation"
|
||||||
|
message: "Turning titanium off - idle for 3 hours"
|
||||||
|
data:
|
||||||
|
push:
|
||||||
|
thread-id: "titanium"
|
||||||
|
|
||||||
|
|||||||
@@ -261,10 +261,18 @@ automation:
|
|||||||
entity_id: fan.philips_airpurifier
|
entity_id: fan.philips_airpurifier
|
||||||
data:
|
data:
|
||||||
function: "Purification & Humidification"
|
function: "Purification & Humidification"
|
||||||
|
- service: script.purifier_request_update
|
||||||
- service: script.say
|
- service: script.say
|
||||||
data:
|
data:
|
||||||
message: "Hey, I'm turning on the purifier, because humidity is low and there is water in the tank"
|
message: "Hey, I'm turning on the purifier, because humidity is low and there is water in the tank"
|
||||||
- service: script.purifier_request_update
|
- service: notify.mobile_app_carbon
|
||||||
|
data:
|
||||||
|
title: "💨 Climate"
|
||||||
|
message: "Turning purifier on - humidity is low"
|
||||||
|
data:
|
||||||
|
push:
|
||||||
|
thread-id: "purifier"
|
||||||
|
|
||||||
|
|
||||||
- alias: Purifier · Turn on · Low air quality
|
- alias: Purifier · Turn on · Low air quality
|
||||||
trigger:
|
trigger:
|
||||||
@@ -281,6 +289,13 @@ automation:
|
|||||||
- service: script.say
|
- service: script.say
|
||||||
data:
|
data:
|
||||||
message: "Hey, I'm turning on the purifier, because air quality is low"
|
message: "Hey, I'm turning on the purifier, because air quality is low"
|
||||||
|
- service: notify.mobile_app_carbon
|
||||||
|
data:
|
||||||
|
title: "💨 Climate"
|
||||||
|
message: "Turning purifier on - air quality is low"
|
||||||
|
data:
|
||||||
|
push:
|
||||||
|
thread-id: "purifier"
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.purifier_out_of_water
|
entity_id: binary_sensor.purifier_out_of_water
|
||||||
state: "off"
|
state: "off"
|
||||||
@@ -288,10 +303,17 @@ automation:
|
|||||||
entity_id: fan.philips_airpurifier
|
entity_id: fan.philips_airpurifier
|
||||||
data:
|
data:
|
||||||
funcition: "Purification & Humidification"
|
funcition: "Purification & Humidification"
|
||||||
|
- service: script.purifier_request_update
|
||||||
- service: script.say
|
- service: script.say
|
||||||
data:
|
data:
|
||||||
message: "Also, switching to humidification, because there is water in the tank"
|
message: "Also, switching to humidification, because there is water in the tank"
|
||||||
- service: script.purifier_request_update
|
- service: notify.mobile_app_carbon
|
||||||
|
data:
|
||||||
|
title: "💨 Climate"
|
||||||
|
message: "Switching purifier to humidification - there is water in the tank"
|
||||||
|
data:
|
||||||
|
push:
|
||||||
|
thread-id: "purifier"
|
||||||
|
|
||||||
- alias: Purifier · Turn off · Okay humidity
|
- alias: Purifier · Turn off · Okay humidity
|
||||||
trigger:
|
trigger:
|
||||||
@@ -310,10 +332,17 @@ automation:
|
|||||||
action:
|
action:
|
||||||
- service: fan.turn_off
|
- service: fan.turn_off
|
||||||
entity_id: fan.philips_airpurifier
|
entity_id: fan.philips_airpurifier
|
||||||
|
- service: script.purifier_request_update
|
||||||
- service: script.say
|
- service: script.say
|
||||||
data:
|
data:
|
||||||
message: "Hey, I'm turning the purifier off, because humidity is okay"
|
message: "Hey, I'm turning the purifier off, because humidity is okay"
|
||||||
- service: script.purifier_request_update
|
- service: notify.mobile_app_carbon
|
||||||
|
data:
|
||||||
|
title: "💨 Climate"
|
||||||
|
message: "Turning purifier off - humidity is okay"
|
||||||
|
data:
|
||||||
|
push:
|
||||||
|
thread-id: "purifier"
|
||||||
|
|
||||||
homeassistant:
|
homeassistant:
|
||||||
customize:
|
customize:
|
||||||
|
|||||||
@@ -13,6 +13,13 @@ automation:
|
|||||||
entity_id: light.on_after_dark
|
entity_id: light.on_after_dark
|
||||||
data:
|
data:
|
||||||
brightness_pct: 100
|
brightness_pct: 100
|
||||||
|
- service: notify.mobile_app_carbon
|
||||||
|
data:
|
||||||
|
title: "💡 Lights"
|
||||||
|
message: "Turning lights on - 30 mins before sunset"
|
||||||
|
data:
|
||||||
|
push:
|
||||||
|
thread-id: "lights"
|
||||||
|
|
||||||
- alias: Lighting · Turn off all lights after sunrise
|
- alias: Lighting · Turn off all lights after sunrise
|
||||||
trigger:
|
trigger:
|
||||||
|
|||||||
@@ -77,6 +77,13 @@ automation:
|
|||||||
entity_id: media_player.living_room
|
entity_id: media_player.living_room
|
||||||
data:
|
data:
|
||||||
night_sound: true
|
night_sound: true
|
||||||
|
- service: notify.mobile_app_carbon
|
||||||
|
data:
|
||||||
|
title: "🔊 Sonos"
|
||||||
|
message: "Putting Beam in night mode"
|
||||||
|
data:
|
||||||
|
push:
|
||||||
|
thread-id: "sonos"
|
||||||
|
|
||||||
- alias: Media · Sonos · Put Beam in day mode
|
- alias: Media · Sonos · Put Beam in day mode
|
||||||
trigger:
|
trigger:
|
||||||
@@ -87,6 +94,13 @@ automation:
|
|||||||
entity_id: media_player.living_room
|
entity_id: media_player.living_room
|
||||||
data:
|
data:
|
||||||
night_sound: false
|
night_sound: false
|
||||||
|
- service: notify.mobile_app_carbon
|
||||||
|
data:
|
||||||
|
title: "🔊 Sonos"
|
||||||
|
message: "Putting Beam in day mode"
|
||||||
|
data:
|
||||||
|
push:
|
||||||
|
thread-id: "sonos"
|
||||||
|
|
||||||
homeassistant:
|
homeassistant:
|
||||||
customize:
|
customize:
|
||||||
|
|||||||
@@ -96,6 +96,13 @@ automation:
|
|||||||
data:
|
data:
|
||||||
master: media_player.master_bedroom
|
master: media_player.master_bedroom
|
||||||
entity_id: media_player.living_room
|
entity_id: media_player.living_room
|
||||||
|
- service: notify.mobile_app_carbon
|
||||||
|
data:
|
||||||
|
title: "📺 Sonos"
|
||||||
|
message: "TV off - joining Beam to Sonos Group"
|
||||||
|
data:
|
||||||
|
push:
|
||||||
|
thread-id: "sonos"
|
||||||
|
|
||||||
- alias: TV · State · Sync on TV on
|
- alias: TV · State · Sync on TV on
|
||||||
trigger:
|
trigger:
|
||||||
|
|||||||
@@ -91,3 +91,10 @@ automation:
|
|||||||
- service: script.say
|
- service: script.say
|
||||||
data:
|
data:
|
||||||
message: "Just wanted to let you know - a new PDS is available!"
|
message: "Just wanted to let you know - a new PDS is available!"
|
||||||
|
- service: notify.mobile_app_carbon
|
||||||
|
data:
|
||||||
|
title: "📺 Media"
|
||||||
|
message: "A new PDS is available"
|
||||||
|
data:
|
||||||
|
push:
|
||||||
|
thread-id: "pds"
|
||||||
|
|||||||
@@ -15,17 +15,29 @@ automation:
|
|||||||
entity_id: sensor.carbon_battery_state
|
entity_id: sensor.carbon_battery_state
|
||||||
state: "Not Charging"
|
state: "Not Charging"
|
||||||
action:
|
action:
|
||||||
service: script.say
|
- service: script.say
|
||||||
data_template:
|
data_template:
|
||||||
title: "❕*Notification Module*"
|
title: "❕*Notification Module*"
|
||||||
message: >-
|
message: >-
|
||||||
|
|
||||||
|
{{
|
||||||
|
[
|
||||||
|
"Hey, just wanted to let you know your phone needs charging!",
|
||||||
|
"Hey, your phone is running low on battery, put it on the charger!"
|
||||||
|
] | random
|
||||||
|
}}
|
||||||
|
- service: notify.mobile_app_carbon
|
||||||
|
data_template:
|
||||||
|
title: "⚠️ Battery"
|
||||||
|
message: >-
|
||||||
|
|
||||||
|
{{
|
||||||
|
[
|
||||||
|
"Hey, just wanted to let you know your phone needs charging!",
|
||||||
|
"Hey, your phone is running low on battery, put it on the charger!"
|
||||||
|
] | random
|
||||||
|
}}
|
||||||
|
|
||||||
{{
|
|
||||||
[
|
|
||||||
"Hey, just wanted to let you know your phone needs charging!",
|
|
||||||
"Hey, your phone is running low on battery, put it on the charger!"
|
|
||||||
] | random
|
|
||||||
}}
|
|
||||||
|
|
||||||
- alias: Notification · Door opened
|
- alias: Notification · Door opened
|
||||||
trigger:
|
trigger:
|
||||||
@@ -35,14 +47,25 @@ automation:
|
|||||||
for:
|
for:
|
||||||
minutes: 2
|
minutes: 2
|
||||||
action:
|
action:
|
||||||
service: script.say
|
- service: script.say
|
||||||
data_template:
|
data_template:
|
||||||
title: "❕*Notification Module*"
|
title: "❕*Notification Module*"
|
||||||
message: >-
|
message: >-
|
||||||
|
|
||||||
{{
|
{{
|
||||||
[
|
[
|
||||||
"Hey, the front door is opened. Are you home?!",
|
"Hey, the front door is opened. Are you home?!",
|
||||||
"Hey, the front door has been opened for 2 minutes!"
|
"Hey, the front door has been opened for 2 minutes!"
|
||||||
] | random
|
] | random
|
||||||
}}
|
}}
|
||||||
|
- service: notify.mobile_app_carbon
|
||||||
|
data_template:
|
||||||
|
title: "⚠️ Warning"
|
||||||
|
message: >-
|
||||||
|
|
||||||
|
{{
|
||||||
|
[
|
||||||
|
"Hey, the front door is opened. Are you home?!",
|
||||||
|
"Hey, the front door has been opened for 2 minutes!"
|
||||||
|
] | random
|
||||||
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user