This simple card allows you to notify any notification service manually from the dashboard.
- Go to the "Frontend"-tab in HACS
- Click on "Explore & Add Repositories"
- Search for
Notify Card - Click "Install this Repository in HACS"
- Copy the
notify-card.jsfile to yourconfig/wwwfolder - Add a reference in the resoruce config:
resources:
- url: /local/notify-card.js
type: module
Example config:
type: 'custom:notify-card'
target: living_room_tv
label: Notify TV
card_title: Send Notification
notification_title: 'New Notification'
targetis the name of the notify-service that should get called without thenotify.domain. (Fornotify.notifyput innotify, fornotify.telegramput intelegram, etc. If your service is not under thenotify.domain, use the full service name, example:script.notify_tv)labelis optional and controlls the placeholder textcard_titleis optional and controlles the card titlenotification_titleis optional and is the title that gets sent with the notification
You can also specify multiple notification services like this:
type: 'custom:notify-card'
target:
- living_room_tv
- notify
If you want a textfield to set the notification title with every message you can configure it like this:
type: 'custom:notify-card'
target: living_room_tv
notification_title:
input:
If you want to change the label of the title textfield you can do that in the input parameter:
type: 'custom:notify-card'
target: living_room_tv
notification_ title:
input: 'Put Title here'
If your notification service requires additional data (e.g. Alexa) you can include it like this:
type: 'custom:notify-card'
target: alexa_media_living_room
data:
type: announce
If your want to use tts.google_translate_say, include an entity like this:
type: 'custom:notify-card'
target: tts.google_translate_say
entity: media_player.google_nest_mini
