📢 Notifications & Announcements

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

GitHub Link Click Here

State your trigger and spread the word :speech_balloon: :sound:

Like this blueprint? Consider hitting the :heart: button below :+1:

Version: 1.3 :fire:

:warning:You must be on Home Assistant Version 2024.6 or later.

Need help? :eyes: See our FAQ: Click Here

:newspaper: The Automation Process:

  • Trigger Options:

    • Specify the state change of one or more entities that will initiate the automation from a dropdown list. You can also specify your own custom state if it is not available from the dropdown list.
    • State Change Options: The available state changes include:
      • General States: Button or any state, ON, OFF, Unavailable or Unknown
      • Location-Based States: Home or Not Home
      • Numeric States: Numeric state above, Numeric state below or Numeric state above & below
  • Notification Options:

    • Opt to send messages to one or multiple devices. Compatible with Apple iOS and Android devices.
    • Opt to display your notifications directly within the Home Assistant user interface (UI).
    • Opt to send Text-to-Speech Announcement to your selected media players.
  • Time-Based Automation:

    • Specify precise start and end times along with weekday selections to define when the automation can run.
  • Custom Conditions:

    • Enter any custom conditions to further customize the automation process.

:rocket: CHANGELOG

  • Version: 1.3 - 28 Nov-24 - Added iOS notification sound. Update to Home Assistant YAML standards and coding practices.
  • Version: 1.2 - 16 Aug-24 - Updated time delay to allow for hours, minutes and seconds.
  • Version: 1.1 - 26 July-24 - Added collapsible sections and notification options for iOS and Android.
  • Version: 1.0 - 11 May-24 - Initial release

:shield: MY OTHER BLUEPRINTS

:bulb: Sensor Light - Motion Sensor - Door Sensor - Sun Elevation - LUX Value - Scenes - Time
:high_brightness: Smart Light - Entity - Sun Elevation - Ambient & Time Triggers
:infinity: Sensor Light Add On - Media & Movie Lights - House Alarm Lights - Smoke Alarm Lights & Exhaust Fans + More
:shower: Bathroom Humidity Exhaust Fan
:low_battery: Low Battery Notifications & Actions
:vibration_mode: Appliance Notifications & Actions - Washing Machine - Clothes Dryer - Dish Washer - ETC
:calendar: Calendar Notifications & Actions
:round_pushpin: State Notifications & Actions
:robot: Android Notification Channel Manager
:toilet: Toilet Exhaust Fan with time delay
:hourglass_flowing_sand: Entity - Run ON Timer
:stopwatch: Trigger - Run ON Timer
:magic_wand: Manual light control with auto OFF
:door: Closet, Pantry, and Cupboard Lighting
:timer_clock: Timer
:thermometer: Temperature Control Fan
:snowflake: Temperature Control Exhaust Fan - Inverted
:eight_spoked_asterisk: Toggle Switch - Turn ON & OFF Entities
:nazar_amulet: Press Button - Turn ON & OFF Entities
:on: Switch - Turn ON & OFF Entities

Like this blueprint? Consider hitting the :heart: button below :+1:

20 Likes

FAQ

Below are the FAQ question and some tips.

Q: How can I set what triggered the notification and or time and date in the message.

A: Please follow these steps Click Here

Q: What are the notification options on iOS and Android devices

A: Please Click Here

Initial release 1.0

I have been using this blueprint every day for over a year now and I thought I would clean it up and share it with the community. Hope you like it.

Some use cases:

  1. Dinner is ready call: I have created a button helper and put it into a dashboard. When dinner is ready we push the button that notifies everyone’s phones and they all come running. I have set the time condition so if I accidentally press the button at night they all don’t get woken up… Don’t ask me how I know this :pensive: I have now set the time options from 5pm to 9pm every day. Out of those hours it will be blocked :wink: :+1:
  2. Fridge High Temp: If the fridge goes above 7 deg we get a notification.
  3. Location-Based States If your children go to school and you would like to know when they get home. Again you can set the time options so you don’t get messages all the time.
  4. Water Leak Sensors: Have a water leak? Get notified.
  5. Plants Moisture Level: When do you need to water the plants? Get notified.
  6. Doorbell: Someone at the door? Get notified.
  7. Person: Welcome home message only at night.

You get the idea.

If you like this blueprint? Consider hitting the :heart: button in the top post :+1:

If you like my blueprints, and would like to show your support or just say thank you? Click Here :smiling_face_with_three_hearts:

Enjoy

Blacky :grinning:

3 Likes

FAQ - How can I set what triggered the notification in the message.

You may have multiple entities used for your trigger as it help reduce down the amount of automation you have but you still would like to customize the message so you know what happened. They could be;

  • Sensors that keep going unavailable
  • Water leak sensors
  • Plants moisture sensors
  • Etc

Lets look at how we can report what happened.

We will use this code in our message. It will report the friendly name of the entity in your message that triggered the automation.

{{ states[trigger.entity_id].attributes.friendly_name }}

This is how it would look in your message.

If you’re using a Numeric State to trigger the automation and want to see the exact value that triggered it, use the following code.

{{ trigger.to_state.state }}

To display both what triggered the automation and the numeric value at the time, set it up as shown in the code below.

{{ states[trigger.entity_id].attributes.friendly_name }} triggered with a value of {{ trigger.to_state.state }}

This setup lets you know what triggered the automation and, if the trigger is a numeric state, the value that caused it. You can use this in any message, making it compatible with your UI or Text-to-Speech notifications as well.

Time & Date

# This give you time 12 hr format
{{ now().strftime('%I:%M:%S %p').lstrip('0') }}

# This give you time 24 hr format
{{ now().strftime('%H:%M:%S') }}

# This gives you date - change year, month and day to suit you.
{{ now().strftime('%Y-%m-%d') }}

Enjoy

Blacky :smiley:

Back to FAQ: Click Here

1 Like

ohhh that’s great.

Few suggestion (to discuss):

  1. notification via speaker based on presence (a) via zone.home to allow speaker to be used only if person are at home b) via motion-presence sensor to select media_player closed). Example: tts message to be sent only to room x-y that are occupied.
  2. being able to set speaker sound for every message and generally speaker volume based on time of the day. Example: volume is 0.2 early morning then in set to 0.5 for some critical notification and then restore to 0.2 for other cases (wake up music for example)
    2a) being able to silence speakers during night or nap tipe
    2b) being able to skip DND for critical notifications (example for safety reason “the fridge is unpowered” )
  3. add also telegram/signal to receive text message so we can have a general log of what happened in a range of time
  4. able to add image to notification (example meteo alert with radar image)
  5. being able to restore music after the announcement is ended

@Jokerigno

Thanks for your suggestions, I will add them to my list.

Blacky :smiley:

1 Like

Hi @Blacky added points 2a and 2b to the wishlist. :slight_smile:

@Jokerigno

2a you can use the time.

The rest I have been busy.

Blacky :smiley:

Sure I just thought to add to the hypothetical roadmap but absolutely I don’t want to rush

Great work. Can you suggest if I can send Critical Notification to Mobile ?

@lmanchanda75

Thanks for your suggestion I will add this on the list to do.

Blacky :smiley:

1 Like

FAQ - A Guide to Notification Options on iOS and Android Devices

:apple: iOS ONLY OPTIONS

What are Notification Interruption Levels on iOS?

On devices running iOS 15 and later, you can configure the interruption level for your notifications to ensure they are delivered according to your preferences. This feature allows you to choose how notifications are presented and how they interrupt your activities.

Interruption level Breaks through Focus Overrides Ring/Silent switch on iPhone and iPad
Default No No
Critical Notification Yes Yes
Time Sensitive Notification Yes - Must be enabled in focus No
Quiet notifications without waking screen No No

Notification Sound - iOS Only

The Home Assistant app for iOS includes built-in notification sounds, and you can import sounds from your iOS device into the app. Custom sounds can also be added via iTunes or from your cloud storage.

:warning: Note: In the blueprint, make sure to enter the full filename (including the file extension) in the Notification Sound (iOS Only) input, as shown below. If left blank, your device will play the default notification sound based on its settings.

  • Built-in Notification Sounds:

    1. In the Home Assistant app, depending on your access you have 2 options, go to
      • Settings > Companion App > Notifications > Sounds.
      • App Configuration > Notifications > Sounds.
    2. Tap the Bundled tab.
  • iOS Device Sounds:

    1. In the Home Assistant app, depending on your access you have 2 options, go to
      • Settings > Companion App > Notifications > Sounds.
      • App Configuration > Notifications > Sounds.
    2. Tap the System tab, then Import system sounds.
    3. Wait for the sounds to load and restart your device.
  • Via iTunes:

    1. Connect your device and open iTunes.
    2. Select your device and go to File Sharing.
    3. Choose Home Assistant and add your WAV files (formatted as 32-bit float 48000Hz).
    4. Click Sync and disconnect the device.
    5. In the Home Assistant app, depending on your access you have 2 options, go to
      • Settings > Companion App > Notifications > Sounds.
      • App Configuration > Notifications > Sounds.
    6. Tap the Import tab and select Import sounds from iTunes File Sharing.
  • Via Cloud Storage:

    1. Install and log in to your cloud storage app (e.g., Dropbox, Google Drive).
    2. Upload your WAV files (formatted as 32-bit float 48000Hz) to the cloud.
    3. In the Home Assistant app, depending on your access you have 2 options, go to
      • Settings > Companion App > Notifications > Sounds.
      • App Configuration > Notifications > Sounds.
    4. Tap the Import tab, select Import custom sound, choose your files, and tap Done.
    5. Restart your device if needed.

:robot: ANDROID ONLY OPTIONS

What are High Priority Notifications?

Notifications will appear immediately in most cases. However, in some cases (such as when the phone is stationary or when the screen has been turned off for a prolonged period of time), default notifications will not ring the phone until the screen is turned on. High priority notifications are designed to alert you to important events or updates that require your immediate attention, ensuring they are received promptly even in these situations.

What are Sticky Notifications?

Sticky notifications are a type of notification that remain on your device’s notification shade until they are manually dismissed by the user. Unlike regular notifications, which can disappear when they are tapped, sticky notifications ensure that important messages are persistently visible until you actively clear or swipe them away, ensuring that critical information stays visible until addressed.

Notification Channels

What are Notification Channels?

Notification channels are a feature for Android devices only. They allow you to categorize notifications, making it easier to manage and prioritize them. Each channel can have its own settings, such as notification style, sound, vibration, blink light, app icon badges, locked screen, and do not disturb, ensuring that you receive notifications in the manner most appropriate for each type of notification you receive.

How Do I Create a Notification Channel?

Before creating channels, it is best to consider what channels you would like to have for your notifications. This will help you structure it correctly, as once you create a channel, it can be removed but will never be deleted unless you reset your app. Taking the time to consider how you would like it structured will help you in the long run.

Some ideas for a channel structure are as follows:

You could just set the notification type. Emergency, General Notification, Dinner Ready, Time for Bed, Appliance Finished, etc.

Or maybe something like this.

  1. Critical
  • Sound and pop-up.
  • Vibrate.
  • Blink light.
  • Locked screen.
  • Ignore Do Not Disturb.
  • Description : Notifications for emergency situations (e.g., fire alarm, flood alert, smoke detector, carbon monoxide detector, security breaches).
  1. High
  • Sound and pop-up.
  • Vibrate.
  • Locked screen.
  • Ignore Do Not Disturb.
  • Description : Notifications for reminders (e.g., upcoming appointment, power outage, rubbish reminder).
  1. General (Default)
  • Sound.
  • Vibrate.
  • Description : Notifications for general updates (e.g., appliance finished, battery low).
  1. Low
  • Silent.
  • Vibrate.
  • Description : Notifications for less critical updates (e.g., appliance started, unavailable sensor, battery low).
  1. Minimal
  • Silent and minimized.
  • Description : Notifications for non-urgent updates (e.g., reminder, Home Assistant update avalible).

To create a new channel, simply enter a name in the input. When your automation sends the first notification, it will create the channel on your device. After the channel is created, you can customize its notification settings to your preference directly on your device.

How Do I Edit a Notification Channel?

There are a few ways to do this:

  1. On your device, go into Settings > Notifications > Home Assistant and you will see categories. These are your channels. Select the one you would like to customize and make your adjustments.
  2. When a notification is received, slowly slide it to the left and you will see a settings icon. Click on it, and it will take you to categories. These are your channels. Select the one you would like to customize and make your adjustments.

How Do I Delete a Notification Channel?

I have a blueprint that will help you remove a notification channel. See link below.

:robot: Android Notification Channel Manager

Hope this helps to explain some of the settings :face_with_monocle:

Enjoy

Blacky :smiley:

Back to FAQ: Click Here

Initial release 1.1

:new: New Feature

  • Collapsible Sections - Added collapsible sections to the blueprint. This enhancement improves the blueprint user interface by making it cleaner and more organized, allowing sections to be collapsed.

    :warning: This feature was introduced in Home Assistant 2024.6, so you must have this version or later for the blueprint to work.

:apple: New Feature For iOS

  • Interruption Level - On devices running iOS 15 and later, you can now configure the interruption level for your notifications to ensure they are delivered according to your preferences. Choose the desired interruption level from the dropdown list. Critical and time-sensitive notifications must be turned ON within the Home Assistant App, and time-sensitive notifications must be allowed in your Focus settings.

:robot: New Feature For Android

  • High Priority notifications ensure that you receive important alerts immediately. These notifications bypass normal delivery delays and are delivered instantly to your device.

  • Sticky Notification ensure that important alerts are not dismissed when selected. They remain on your notification screen until you actively clear or swipe them away, ensuring that critical information stays visible until addressed.

  • Notification Channel allow you to easily organize different notification settings, including notification sounds, vibrations, and other device-specific features. Before crating a channel make sure you understand them and how they work. I have a FAQ that has information on channels, click here.

If you like this blueprint? Consider hitting the :heart: button in the top post :+1:

If you like my blueprints, and would like to show your support or just say thank you? Click Here :smiling_face_with_three_hearts:

Enjoy

Blacky :grinning:

2 Likes

Hi Blacky,
first, thanks for the nice work.
Can you please add the option repeat until so we can get reminders until the state is back to normal?

:smirk:

This is great. One quick suggestion…provide the option for Time Delay to be in seconds vs minutes only. Example: I have water leak sensors throughout my house and I would want to make sure moisture is detected for 3 seconds before sending me a critical notification. Right now, it’s immediate (could be false signal) or the min delay is 1 minute (which is a long time) for a scenario like this.

@PaulBartelings

Thanks for your suggestion, I will add it to the list.

Blacky :smiley:

@j6s33m

Makes sense, I look to update it.

Blacky :smiley:

1 Like

I just found this blueprint, this will be great and can’t wait to try it.

Question/Suggestion: I know someone requested to have TTS activated on presence (if I am home) but any possibility to add also if someone is NOT home. Use case: I like to get audio notification but my wife totally hates it. So I would like to make sure that audio notification is only triggered if I am home but my wife is not home. This would only be for TTS notifications only and would let mobile notifications go through.

@berniebl

There are so many options and I can’t cater for everyone… so I have included Global Conditions were you can set it up to your liking.

Example for you;

In global conditions Add condition, select Device (phone tracking you and your wife). Add your phone and select is home. Then add a building block and select the AND option, within the building block select Add condition select Device then select your wife’s phone and select is not home.

Your done you have it all there right now :wink:

Blacky :smiley:

Thanks so much. Really love your blueprints.