๐ŸŽ›๏ธ

Media Player Script Blueprint 2023-12-09 by SirGoodenough

This provides a way to play canned media files with the big
long list of YAML entries but keep the main script or automation clean.
All that is required there would be a simple line like:
'- service: script.media_player_doorbell_sound'

Community link for this blueprint

๐Ÿ—ฟNotice๐Ÿ‘ฎ๐Ÿฟโ€โ™‚๏ธ:

  • Copies of the original Blueprint that were converted via the 'Take Control' feature or other means are officially not supported by me.

  • I may or may not be able to support you when you have a problem after you make changes to my code, as some of the code is no longer mine.

  • I & my license also require attribution as a link back to the original should you use this code in your own creation.

  • Here is a link to my license & the original github post expected to be followed & referenced as attribution should you use this code elsewhere.

200
Stars
6.7K
Views
2.7K
Imports

Import to Home Assistant

Click to import this blueprint directly into your Home Assistant instance.

Configuration

Requires 3 inputs to configure

Entity
Text

Source Code

View on GitHub

Details

Complexity
Simple
Author
SirGoodenough
Last Updated
Nov 4, 2025

Related Blueprints

More device control automations you might like

View all
๐ŸŽ›๏ธ
Device Control
simple
3 inputs

Motion-activated Light

Turn on a light when motion is detected.
entity
target
number
82.5K1.3K2.7K
by home-assistanthome-assistant/core
๐ŸŽ›๏ธ
Device Control
medium
3 inputs

Example Automation Blueprint

A description for the blueprint Version: yyyy.mm.dd
entity
device
1.2K3.1K3.2K
๐ŸŽ›๏ธ
Device Control
medium
5 inputs

On-Off schedule with state persistence

On-Off schedule with state persistence

A simple on-off schedule, with the addition of state persistence across disruptive events, making sure the target device is always in the expected state. ๐Ÿ“• Full documentation regarding this blueprint is available here. ๐Ÿš€ This blueprint is part of the Awesome HA Blueprints project. โ„น๏ธ Version 2021.10.26
target
time
text
+1
1.2K10.4K1.5K
๐ŸŽ›๏ธ
Device Control
complex
15 inputs

Simple Safe Scheduler

Simple Safe Scheduler

Scheduling a periodic action in Home Assistant might be trickier than what it looks at first glance. Not only the available automation triggers are limited to only time-based schedules (requiring the user to either use template triggers or install additional integrations for more complex scheduling options), but they also do not guarantee that the automation is executed at the provided time. As an example, let's assume automation A is scheduled to run at 12:00. If the Home Assistant server goes down at 11:59 due to a disruptive event (e.g. power outage, planned maintenance, hardware failure etc.) and comes back up at 12:01, the A automation run scheduled for 12:00 would simply be skipped, without any warning to the user. The Simple Safe Scheduler blueprint tries to mitigate scheduling limitations in Home Assistant by providing an easy interface to configure periodic actions, with built-in safety checks to ensure the action actually runs even in case of a disruptive event. The configured automation acts as a simple scheduler, allowing to flexibly program any kind of action based on the following parameters:
  • Time of the day (dynamically provided as an input_datetime entity);
  • Day of the week (multiple days can be selected);
  • Week frequency (allowing to schedule the action to run i.e. every 2 weeks).
In addition, the blueprint implements useful checks to make sure that, in case of a disruptive event (e.g power outage, Home Assistant server outage etc.) happening at the scheduled automation run time, the action is executed as soon as the system restores its state. These checks can be configured to be performed both when Home Assistant boots up and when a custom event is fired (e.g. from another automation or integration). Such safety checks might be particularly important for critical automations, which need to run as close as possible to the scheduled time (e.g. watering plants, configuring an alarm system, etc.). ๐Ÿ“• Full documentation regarding this blueprint is available here. ๐Ÿš€ This blueprint is part of the Awesome HA Blueprints project. โ„น๏ธ Version 2021.10.22
action
entity
number
+2
1.2K10.7K1.3K
๐ŸŽ›๏ธ
Device Control
medium
5 inputs

Wake-up light alarm with sunrise effect

A wake-up light alarm with a brightness and color temperature sunrise effect using an existing timestamp sensor as source. Requires date_time_iso sensor in configuration!
entity
number
action
5277.3K1.8K