Chime Transport Adaptor¶
| Transport ID | Source | Requirements | Optional |
|---|---|---|---|
chime | chime.py | - | Alexa Devices Integration, Alexa Media Player Integration, RFLink, MQTT Siren etc. |
Chime supports a variety of audio, non-spoken devices, such as doorbell chimes, sirens, and voice assistants like Alexa Devices that can also make noises.
One of the goals of chime is to take a disparate set of devices, entities and API calls, and turn them into a consistent simple thing to call, which is referred to as an alias. So you could have a red_alert alias, that rings bells, sets off sirens, makes Alexa do dive-dive-dive noises, and then in automations simply refer to it by the red_alert name.
Aliases¶
While you can construct an action call with a list of switches, device_ids, scripts etc and the names of tunes for them, it is much easier to configure this in one place using the alias definition.
So rather than remembering that the doorbell sound you like is called amzn_sfx_doorbell_chime_02 on Alexa, you can simply pass chime_tune: doorbell on each of your automations. This also means if you get bored with that doorbell sound, you can quickly change it one place for all automations that use it.
A doorbell notification can be sent to multiple devices just by selecting a tune ( see the Example Configuration below for how this can work.)
Another good reason is that when using multiple types of device, you can map their different terms to the same logical sound using simple alias names, for example doorbell. Then within notifications, you can ask for a doorbell sound and it will generated by each device in its own way.
In this example, a 433Mhz doorbell will go 'ding dong' and Alexa will play a doorbell noise when the chime_tune: doorbell is set on a notification, and if red_alert is set, it will use Alexa and a siren device.
chime_aliases:
doorbell:
alexa_devices:
tune: amzn_sfx_doorbell_chime_02
switch:
target: switch.chime_ding_dong
red_alert:
alexa_devices: amzn_sfx_scifi_alarm_04
siren:
tune: emergency
volume: 1.0
duration: 30
rest_command:
alias: Use the custom sound on the camera, defined in rest_command section
target: rest_command.camera_alarm_tune
data:
alarm_id: 12
Each entry under an alias is keyed by either a domain (alexa_devices, media_player, rest_command, script, siren or switch), or a label of your choosing. A label entry must have a domain or a target, otherwise it is ignored with a warning. An entry with a target chimes just those entities - any group among them is expanded to its members - while one without applies to every target of that domain in the notification.
Targets in the notification that no alias entry covers are still chimed, using the alias name itself as the tune - for example chime_tune: doorbell plays doorbell on a media player that isn't in the alias. Switches ignore the tune, but other devices may not recognize it, so give each kind of device you target an entry in the alias.
For Alexa Devices, there's an additional benefit of using the aliases - it will automatically select all the Alexa device IDs ( those ugly 32 character hexadecimal ones ) if device discovery is left on, as is default. An alexa_devices entry without a target plays on the Alexa devices in the notification if there are any, and otherwise on all the discovered ones, even when the notification targets a different chime such as a siren. For everything else, you need to pass the list of target entity IDs in the notification action call.
A chime delivery defaults to target_usage: no_delivery, so when the notification only has targets it can't chime, such as a person_id from a camera blueprint, it falls back to its own target rather than having nothing to chime. A chime target on the action call, such as a siren or switch, replaces the delivery's target. See Controlling Targets for the other options.
The formal schema is published as Chime Aliases Definition. Validation of the config happens at start up by the chime transport, with errors sent to log with usually an explanation of which part of the config triggered the problem.
Device Types¶
Switch and Siren¶
Provide a list of switch, siren entities to use for chimes and it will call the switch.turn_on or siren.turn_on calls as appropriate.
Switches are simple binary affairs, however some sirens can also have a choice of tones, volume level and durations. The following generic chime tunings are passed to the siren.
| Chime Option | Siren Data Field |
|---|---|
| chime_tune | tone |
| chime_volume | volume_level |
| chime_duration | duration |
Only these fields are sent - switches get no data at all, and any data on a switch or siren alias entry is not used. See the documentation for those integrations below:
Switches are a little special, in that though they are binary on/off in Home Assistant, in practice even some of the cheap 433Mhz ones can take an additional melody code, its common to have different melodies represented by separate switch entities for the same underlying devices as in this example Byron device using the RFLink integration.
- platform: rflink
devices:
byron_0000_01:
name: Chime Tubular
byron_0000_02:
name: Chime Morning Dew
byron_0000_03:
name: Chime Big Ben
Scripts¶
Provide one or more script entity IDs, for example, script.call_bell_api.
Each script will be called with:
message- from the notificationtitle- optional on the notificationpriority- priority of the notificationchime_tune- name of the chime if suppliedchime_duration- where passed in action data or defined in chime aliaschime_volume- where passed in action data or defined in chime alias
Additional variables can be configured when defining an alias, by adding them to its data, for example data: {visitor_name: Guest} makes visitor_name available to the script.
See also Script in HomeAssistant documentation.
Media Players and Alexa Media Player¶
Supply media_player entities as targets and this transport will make appropriate media_player.play_media action calls to them, passing the sound name provided in tune field as the media content ID, with a media content type of sound.
These can be adjusted in the alias entry's data, or the delivery's data:
| Data Field | Use |
|---|---|
media: media_content_type | Content type in place of sound, e.g. music |
announce | Passed to play_media, to play over current media |
enqueue | Passed to play_media, e.g. add or replace |
chime_aliases:
doorbell:
media_player:
tune: https://my.home/sounds/doorbell.mp3
data:
media:
media_content_type: music
announce: true
For Amazon Echo devices this needs the Alexa Media Player integration installed on Home Assistant. See https://github.com/alandtse/alexa_media_player/wiki#known-available-sounds for a list of known tunes that work with Alexa devices.
Alexa Devices¶
This supports the newer built-in Alexa Devices integration introduced in 2025.
The list of sounds can be found on the Alexa API, after authenticating, or on the Home Assistant source code. It includes a generous helping of Halloween specific sounds.
One oddity of this integration is that although it generates traditional entity IDs for notifying Alexa devices, sending a sound ( or command ) requires a long and obscure device_id (a 32 character random hexadecimal pseudo-UUID). While you can find these from the Devices section of the Alexa Devices integration config, or using the Action feature of Developer Tools and switching to yaml mode, by default Supernotify automatically register all Alexa devices - if you don't want this, switch off device_discovery at the transport or delivery level.
Sometimes you may end up with odd devices like headphones or firesticks that Alexa knows about but don't make sense for HomeAssistant usage, and also may have duplication if a group has been created inside the Alexa app ( which then appears to Home Assistant as another Alexa device even though its really a group of them. The weird devices can be disabled from the Alexa Devices integration config. Within Supernotify, you can use device_model_select and device_manufacturer_select to control the list - these take a single value, list of values, or include and exclude mappings, where values are plain strings or regular expressions. Chime transport has a default exclusion for Alexa Groups, specifying either an include or exclude list will switch off defaulting for both values.
Example¶
transports:
chime:
delivery_defaults:
target:
- media_player.kitchen_echo
- media_player.bedroom
- ffff0000eeee1111dddd2222cccc3333 # Alexa Devices device_id
options:
device_discovery: True
device_model_select:
exclude: Speaker Group
chime_aliases:
doorbell: #alias
alexa_devices: # integration domain or label ( if label then domain must be a key in the config )
tune: amzn_sfx_cat_meow_1x_01
media_player:
# resolves to media_player/play_media with sound configured for this path
tune: home/amzn_sfx_doorbell_chime_02
# entity_id list defaults to `target` of transport default or action call
# this entry can also be shortcut as `media_player: home/amzn_sfx_doorbell_chime_02`
media_player_alt:
# Not all the media players are Amazon Alexa based, so override for other flavours
tune: raindrops_and_roses.mp4
target:
- media_player.hall_custom # domain inferred from target
switch:
# resolves to switch/turn_on with entity id switch.ding_dong
target: switch.chime_ding_dong
siren_except_bedroom:
# resolves to siren/turn_on with tune bleep and default volume/duration
tune: bleep
domain: siren # domain must be explicit since key is label not domain and no explicit targets
siren_bedroom:
alias: Short and quiet burst for just the bedroom siren
domain: siren
tune: bleep
target: siren.bedroom
volume: 0.1
duration: 5
script:
alias: Run a Home Assistant script defined elsewhere in config
target: script.pull_bell_cord
data:
duration: 25
rest_command:
alias: call a rest api passing data to the templated URL
target: rest_command.api_call_to_camera_alarm
data:
alarm_tone: 14
red_alert:
# non-dict defaults to a dict with a single key `tune`
alexa_devices: scifi/amzn_sfx_scifi_alarm_04
siren: emergency
media_player:
# tune defaults to alias ('red_alert')
Rest Commands¶
Assuming this command is set up in the Home Assistant configuration:
rest_command:
camera_siren:
url: "http://10.111.10.202/ISAPI/Event/triggers/notifications/AudioAlarm/{{alarm_code|default('11')}}/test?format=json"
method: put
username: !secret hik_user
password: !secret hik_password
authentication: digest
This chime alias in the transport definition will make it available as chime_tune: siren in notifications.
transports:
chime:
delivery_defaults:
options:
chime_aliases:
siren:
rest_command:
target: rest_command.camera_siren
data:
alarm_code: 11
The same tune could also define MQTT sirens, or Amazon Echo devices making siren noises, so one call with chime_tune: siren and the whole house erupts.
Scenarios¶
Chimes work well with scenarios, you can easily add a chime for all critical notifications without having to change any of the automations. See Scenarios and Recipes for more details.
Discovery¶
Not auto-detected, unless chime_aliases is configured. Chime is a composite of several underlying mechanisms (switch, siren, script, rest_command, media_player) with no single integration to discover, so it stays unconfigured until a transport-level chime_aliases option is set (see Aliases below) — otherwise add a chime delivery of your own to use it directly.
The one exception is sirens: if any siren entities exist, a chime_siren_all delivery is created that targets all of them. It is explicit-only, so it is used only when named in an action call or scenario, and needs no aliases since a siren can be turned on without a tune. It always sounds every siren, ignoring any target on the action call (target_usage: fixed).
Notify using a sound of your choosing - for example a doorbell, barking dog, siren or recording. This works with a variety of devices, from cheap 433Mhz doorbell units to Amazon Echo devices.
You can mix and match any of these devices in a single notification call, and combine them with mobile_push, e-mail etc.
The range of tunes from modern devices gives a good alternative to being bothered with lots of push notifications. For example, if a PIR detects motion and the alarm panel is disarmed you could have a ping sound from Amazon Echos and chime devices.
References¶
Home Assistant Core¶
- Supported Integrations
- Alexa Devices
- Alexa Media Player
- Group
- Media Player
- RESTful Command
- RFLink
- RFXCOM RFXtrx
- Scripts
- Siren
- Switch
Vendor¶
- Amazon Echo
- Hikvision
- Zigbee