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.js
file to yourconfig/www
folder - Add a reference in the resoruce config:
resources:
- url: /local/notify-card.js
type: module
Example config:
type: 'custom:notify-card'
label: Notify TV
card_title: Send Notification
notification_title:
input: Title
action: notify.living_room_tv
data:
message: $MSG
title: $TITLE
action
is the name of the action (service) to be calleddata
is used to define the data that gets passed to the action. Any data can be entered here, and$MSG
and$TITLE
will be replaced with the entered textlabel
is optional and controlls the placeholder textcard_title
is optional and controlles the card titlenotification_title
is optional and can be used as a second textfield
Minimal config:
type: 'custom:notify-card'
action: notify.living_room_tv
data:
message: $MSG
For services that require an entity as a target:
type: 'custom:notify-card'
action: tts.google_say
data:
message: $MSG
entity_id: media_player.nestmini_living_room
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'