For a long time I wanted a simple, bed-side alarm clock operating completing within the Home Assistant framework. Basically, a clock that would provide me all of the general settings one might get from an actual digital alarm clock.
Nice. I don’t know if you know this but you can put the config you have in configuration.yaml directly into the package file and keep it all in one place. You still need to restart HA if you don’t already use the Folder integration, but then you can just reload templates to update your paths.
This works…
# ----- 1. Allow HA to read your alarm sounds folder -------------------------
#
# CUSTOMIZE: Replace the path below if you store sounds elsewhere.
# The folder must be under /config/www/ to be served via /local/ URLs.
homeassistant:
allowlist_external_dirs:
- "/config/www/alarm_sounds"
# ----- 2. Folder sensor — scans the alarm sounds directory -----------------
#
# This creates sensor.alarm_sounds with a file_list attribute.
# The "Auto Populate Song List" automation reads it to fill the dropdown.
sensor:
- platform: folder
folder: /config/www/alarm_sounds
###############################################################################
# INPUT HELPERS
###############################################################################
input_boolean:
alarm_clock_enabled:
name: Alarm Clock Enabled
icon: mdi:alarm
alarm_clock_ringing:
name: Alarm Clock Ringing
icon: mdi:alarm-bell
# etc...