Show Home Assistant notifications on your Android TV
Home Assistant can show a notification card over whatever you're watching on your Android TV or Google TV: a title, a message and, if you like, a live look at a camera. You trigger it from any automation with one action. Here is how, with FlickBar 1.0.5 or newer.
What you need
- FlickBar 1.0.5 or newer on the TV, connected to your Home Assistant. Notification cards are part of Pro (the 7-day trial counts).
- Accessibility turned on for FlickBar (the setup guide walks you through it). It is how FlickBar draws over another app.
The idea in one sentence
Your automation fires an event called flickbar_notify; FlickBar hears it and shows the card. It is not a notify. service, so it won't appear in the "Send a notification" list. You add it with the Fire event action instead.
Try it in two minutes
- In Home Assistant open Developer tools, then Events.
- Under "Fire event" type
flickbar_notifyas the event type. - Paste this as the event data and press Fire event:
title: Hello
message: This card is on your TV
seconds: 8
A card appears at the top centre of the screen. Press Back to close it, or let it close itself.
Use it in an automation
In the automation editor add an action, choose Fire event, set the event type to flickbar_notify and fill in the event data. In YAML it looks like this:
alias: Washing machine finished
triggers:
- trigger: state
entity_id: binary_sensor.washing_machine_done
to: "on"
actions:
- event: flickbar_notify
event_data:
title: Laundry
message: The washing machine has finished
seconds: 15
Add a camera
Give a camera and the card shows a picture from it, refreshed every couple of seconds. Handy for "someone is at the door" or "the garage door opened":
actions:
- event: flickbar_notify
event_data:
title: Garage
message: The door just opened
camera: camera.garage
seconds: 20
The fields
title(optional): up to 80 characters.message(optional): up to 300 characters, line breaks allowed. You need at least a title or a message.camera(optional): the id of a camera entity, for examplecamera.front_door.seconds(optional): how long the card stays, from 3 to 60. The default is 10.
Settings
On the TV open FlickBar's settings and choose the Notifications tab (FlickBar 1.0.6 and newer). There you can switch notifications on or off, choose where the card appears (top centre, centre, bottom centre or a corner) and press Show a test card to see one. A card never covers a camera window: if both are on screen, the card moves to a free spot.
How it behaves
- The card sits over your show without taking focus: the show keeps playing and your remote still controls the app you're in.
- If several arrive together they show one after another (up to 5 wait in line). Back closes the one on screen and the next appears.
- If the TV is off, nothing is shown and Home Assistant reports no error: the event is simply not heard.
- Nothing is stored. It all stays on your home network.
If nothing appears
- Check that FlickBar is connected to this Home Assistant and that Pro or the trial is active.
- Check that accessibility is on for FlickBar in the TV's settings.
- Make sure the event type is exactly
flickbar_notify, then try the Developer tools test above.
See what else FlickBar does · Doorbell camera window · Control Home Assistant from your TV remote