Add ios notifications

This commit is contained in:
2020-05-08 02:18:07 +03:00
parent 95acfc115e
commit c5ef570813
7 changed files with 118 additions and 23 deletions
+8
View File
@@ -246,3 +246,11 @@ automation:
- service: script.say
data:
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"
+32 -3
View File
@@ -261,10 +261,18 @@ automation:
entity_id: fan.philips_airpurifier
data:
function: "Purification & Humidification"
- service: script.purifier_request_update
- service: script.say
data:
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
trigger:
@@ -281,6 +289,13 @@ automation:
- service: script.say
data:
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
entity_id: binary_sensor.purifier_out_of_water
state: "off"
@@ -288,10 +303,17 @@ automation:
entity_id: fan.philips_airpurifier
data:
funcition: "Purification & Humidification"
- service: script.purifier_request_update
- service: script.say
data:
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
trigger:
@@ -310,10 +332,17 @@ automation:
action:
- service: fan.turn_off
entity_id: fan.philips_airpurifier
- service: script.purifier_request_update
- service: script.say
data:
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:
customize:
@@ -13,6 +13,13 @@ automation:
entity_id: light.on_after_dark
data:
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
trigger:
+14
View File
@@ -77,6 +77,13 @@ automation:
entity_id: media_player.living_room
data:
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
trigger:
@@ -87,6 +94,13 @@ automation:
entity_id: media_player.living_room
data:
night_sound: false
- service: notify.mobile_app_carbon
data:
title: "🔊 Sonos"
message: "Putting Beam in day mode"
data:
push:
thread-id: "sonos"
homeassistant:
customize:
+7
View File
@@ -96,6 +96,13 @@ automation:
data:
master: media_player.master_bedroom
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
trigger:
@@ -91,3 +91,10 @@ automation:
- service: script.say
data:
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"
+25 -2
View File
@@ -15,7 +15,7 @@ automation:
entity_id: sensor.carbon_battery_state
state: "Not Charging"
action:
service: script.say
- service: script.say
data_template:
title: "❕*Notification Module*"
message: >-
@@ -26,6 +26,18 @@ automation:
"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
}}
- alias: Notification · Door opened
trigger:
@@ -35,7 +47,7 @@ automation:
for:
minutes: 2
action:
service: script.say
- service: script.say
data_template:
title: "❕*Notification Module*"
message: >-
@@ -46,3 +58,14 @@ automation:
"Hey, the front door has been opened for 2 minutes!"
] | 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
}}