diff --git a/config/packages/devices/titanium.yaml b/config/packages/devices/titanium.yaml index 94ee858..90b8945 100644 --- a/config/packages/devices/titanium.yaml +++ b/config/packages/devices/titanium.yaml @@ -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" + diff --git a/config/packages/modules/climate/purifier.yaml b/config/packages/modules/climate/purifier.yaml index cfc78b3..81faf8c 100644 --- a/config/packages/modules/climate/purifier.yaml +++ b/config/packages/modules/climate/purifier.yaml @@ -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: diff --git a/config/packages/modules/lighting/state.yaml b/config/packages/modules/lighting/state.yaml index eccae4e..8ec5889 100644 --- a/config/packages/modules/lighting/state.yaml +++ b/config/packages/modules/lighting/state.yaml @@ -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: diff --git a/config/packages/modules/media/sonos.yaml b/config/packages/modules/media/sonos.yaml index 1555b54..97bc43e 100644 --- a/config/packages/modules/media/sonos.yaml +++ b/config/packages/modules/media/sonos.yaml @@ -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: diff --git a/config/packages/modules/media/tv.yaml b/config/packages/modules/media/tv.yaml index 74cbf65..356c1ed 100644 --- a/config/packages/modules/media/tv.yaml +++ b/config/packages/modules/media/tv.yaml @@ -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: diff --git a/config/packages/modules/media/youtube.yaml b/config/packages/modules/media/youtube.yaml index 56710cb..f90ca57 100644 --- a/config/packages/modules/media/youtube.yaml +++ b/config/packages/modules/media/youtube.yaml @@ -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" diff --git a/config/packages/modules/notification.yaml b/config/packages/modules/notification.yaml index 21f432f..21695f2 100644 --- a/config/packages/modules/notification.yaml +++ b/config/packages/modules/notification.yaml @@ -15,17 +15,29 @@ automation: entity_id: sensor.carbon_battery_state state: "Not Charging" action: - service: script.say - data_template: - title: "❕*Notification Module*" - message: >- + - service: script.say + data_template: + title: "❕*Notification Module*" + 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 trigger: @@ -35,14 +47,25 @@ automation: for: minutes: 2 action: - service: script.say - data_template: - title: "❕*Notification Module*" - message: >- + - service: script.say + data_template: + title: "❕*Notification Module*" + message: >- - {{ - [ - "Hey, the front door is opened. Are you home?!", - "Hey, the front door has been opened for 2 minutes!" - ] | random - }} + {{ + [ + "Hey, the front door is opened. Are you home?!", + "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 + }}