Set blackout

The Set blackout action displays a full-screen overlay on your Kiosker device. Use it to show a status message, hide the screen during a meeting, or block the display until a condition clears. You can customize the overlay with a message, icon, colors, and a dismiss button.

To hide the overlay again, call this action with Visible turned off, or use the Clear blackout button entity in the UI.

Using this action from the user interface

If you prefer building automations and scripts visually, Home Assistant walks you through this action step by step. You pick what to target, tweak a few options, and save. No YAML knowledge required.

To display a blackout overlay from an automation or a script:

  1. Go to Settings > Automations & scenes.
  2. Open an existing automation or script, or select Create automation > Create new automation.
  3. If you’re setting up a new automation, add a trigger in the When section. Scripts don’t need a trigger.
  4. In the Then do section, select Add action.
  5. From the search box, search for and select Kiosker: Set blackout.
  6. Under Device, select your Kiosker device.
  7. Toggle Visible on to show the overlay, or off to hide it.
  8. Optional: add a message, custom colors, an icon, or a dismiss button.
  9. Select Save.

Options in the UI

Device (Required)

The Kiosker device to apply the blackout overlay to.

Visible (Optional)

Whether to show or hide the blackout overlay. Defaults to on.

Text (Optional)

A message to display on the overlay.

Background (Optional)

Background color of the overlay in RGB format, for example [10, 10, 60]. Defaults to black.

Foreground (Optional)

Text color of the overlay in RGB format. Defaults to white.

Icon (Optional)

An icon to show on the overlay. Enter the SF Symbols name of the icon, for example person.2.fill.

Expire (Optional)

How long, in seconds, the overlay stays visible before disappearing automatically. Set to 0 to keep it visible until cleared manually. Defaults to 60 seconds.

Dismissible (Optional)

When enabled, a button appears on the overlay so the user can dismiss it by tapping. Defaults to off.

Button background (Optional)

Background color of the dismiss button in RGB format. Defaults to white.

Button foreground (Optional)

Text color of the dismiss button in RGB format. Defaults to black.

Button text (Optional)

Label of the dismiss button.

Sound (Optional)

A sound to play when the overlay appears. Enter the SystemSoundID number, for example 1007.

Using this action in YAML

If you work directly in YAML, or you want to know exactly what Home Assistant does under the hood, this section has the technical reference. It lists the field names you use in YAML, their types, and which ones are required.

In YAML, refer to this action as kiosker.blackout_set. A basic example looks like this:

ActionActions are used in several places in Home Assistant. As part of a script or automation, actions define what is going to happen once a trigger is activated. In scripts, an action is called *sequence*. [Learn more]
action: kiosker.blackout_set
data:
  device_id: YOUR_DEVICE_ID
  visible: true
  text: "Be right back"
  expire: 300

Options in YAML

device_id string Required

The ID of the Kiosker device to apply the blackout overlay to.

visible boolean

Whether to show or hide the blackout overlay.

text string

A message to display on the blackout overlay.

background list

Background color of the overlay in RGB format. A list of three integers between 0 and 255 representing red, green, and blue. Defaults to black ([0, 0, 0]).

foreground list

Text color of the overlay in RGB format. A list of three integers between 0 and 255 representing red, green, and blue. Defaults to white ([255, 255, 255]).

icon string

An icon to display on the overlay. Enter the SF Symbols name, for example person.2.fill.

expire integer

How long, in seconds, the overlay stays visible before disappearing automatically. Use 0 to keep it visible until cleared manually. Maximum is 3600 seconds.

dismissible boolean

Whether the user can dismiss the overlay by tapping a button.

button_background list

Background color of the dismiss button in RGB format. A list of three integers between 0 and 255 representing red, green, and blue. Defaults to white ([255, 255, 255]).

button_foreground list

Text color of the dismiss button in RGB format. A list of three integers between 0 and 255 representing red, green, and blue. Defaults to black ([0, 0, 0]).

button_text string

Label of the dismiss button.

sound string

A sound to play when the overlay appears, identified by its SystemSoundID number, for example "1007".

Good to know

  • The overlay covers everything on the screen, including the browser and any content underneath.
  • If expire is set, the overlay disappears automatically after the specified number of seconds. Showing a new overlay always resets this timer.
  • To clear an active blackout, call this action again with visible: false. You can also use the Clear blackout button entity from the Kiosker device page in Home Assistant.
  • SF Symbols is an icon library for Apple devices. You can browse available icons at the Apple SF Symbols page.
  • SystemSoundID is a number that identifies a system sound in iOS. You can browse available IDs in the iOS system sounds library.

Try it yourself

Ready to test this? Open Developer tools > Actions, search for this action, fill in the fields, and select Perform action. You see what happens on your actual entitiesAn entity represents a sensor, actor, or function in Home Assistant. Entities are used to monitor physical properties or to control other entities. An entity is usually part of a device or a service. [Learn more] without writing a line of YAML.

More examples

Real scenarios where this action shows up in automations and scripts. Copy any example and adapt it to your setup.

Tip

You don’t need to edit YAML to use these examples. Copy a YAML snippet from this page, open the automation editor in Home Assistant, and press Ctrl+V (or Cmd+V on Mac). Home Assistant automatically converts the pasted YAML into the visual editor format, whether it’s a full automation, a single trigger, a condition, or an action.

Action: show a dismissible overlay with custom colors

Show a styled overlay the user can tap away when ready.

  • Action: Kiosker: Set blackout
  • Device: Meeting room display
  • Visible: on
  • Text: Meeting in progress
  • Background: [10, 10, 60]
  • Icon: person.2.fill
  • Expire: 3600
  • Dismissible: on
  • Button text: Dismiss
YAML example for a dismissible overlay with custom colors
ActionActions are used in several places in Home Assistant. As part of a script or automation, actions define what is going to happen once a trigger is activated. In scripts, an action is called *sequence*. [Learn more]
action: kiosker.blackout_set
data:
  device_id: YOUR_DEVICE_ID
  visible: true
  text: "Meeting in progress"
  background:
    - 10
    - 10
    - 60
  foreground:
    - 255
    - 255
    - 255
  icon: "person.2.fill"
  expire: 3600
  dismissible: true
  button_background:
    - 255
    - 255
    - 255
  button_foreground:
    - 10
    - 10
    - 60
  button_text: "Dismiss"
  sound: "1007"

Automation: black out the display when no one is home

When everyone leaves, cover the screen so the display is not showing anything while the house is empty.

  • Trigger: All people: Away
  • Action: Kiosker: Set blackout
  • Device: Living room kiosk
  • Visible: on
  • Expire: 0
YAML example for blacking out when no one is home
AutomationAutomations in Home Assistant allow you to automatically respond to things that happen in and around your home. [Learn more]
alias: "Black out display when no one is home"
triggers:
  - trigger: state
    entity_id: group.all_persons
    to: "not_home"
actions:
  - action: kiosker.blackout_set
    data:
      device_id: YOUR_DEVICE_ID
      visible: true
      expire: 0

Automation: clear the blackout when someone arrives home

When the first person gets home, remove the overlay and restore the normal display.

  • Trigger: Person: Arrives home
  • Action: Kiosker: Set blackout
  • Device: Living room kiosk
  • Visible: off
YAML example for clearing the blackout on arrival
AutomationAutomations in Home Assistant allow you to automatically respond to things that happen in and around your home. [Learn more]
alias: "Clear kiosk blackout on arrival"
triggers:
  - trigger: state
    entity_id: group.all_persons
    to: "home"
actions:
  - action: kiosker.blackout_set
    data:
      device_id: YOUR_DEVICE_ID
      visible: false

Still stuck?

The Home Assistant community is quick to help: join Discord for real-time chat, post on the community forum with the action you’re calling and what you expected to happen, or share on our subreddit /r/homeassistant.

Tip

AI assistants like ChatGPT or Claude can also explain actions or suggest the right one when you describe what you want in plain language.

Related actions

These actions work well alongside this one: