Skip to content

Turn on or off

Turn any entity on or off, or toggle it.

Where
+ Add actionHome AssistantHome Assistant: on / off
Home Assistant: on / off with the entity light.desk_lamp, shown below the field as Desk lamp, currently on, and Do set to Toggle

The simplest Home Assistant action: one pad for the desk lamp, one for the “on air” sign, one for the fan. It works for every kind of entity that can be switched, because it uses Home Assistant’s general homeassistant.turn_on, turn_off and toggle services rather than the ones of a single domain. Lights, switches, fans, media players, scripts and automations all answer to it.

Setting What it does
Entity The entity id, for example light.desk_lamp. Start typing and Lunchpad suggests entities by id or name. Below the field it shows the entity’s name and its state when the list was last loaded.
Reload Loads the entity list from Home Assistant again, for entities you added since. The count next to it shows how many Lunchpad knows, or Not connected.
Do Turn on, Turn off or Toggle.

You can type an entity id that is not in the list, for example while Home Assistant is offline. It is sent as typed.

  • The action sends one service call to Home Assistant and goes on when Home Assistant has answered.
  • {{placeholders}} work in the entity, so light.{{room}}_lamp picks the lamp from a variable.
  • If Home Assistant cannot be reached or refuses the call (unknown entity, rejected token), the reason goes to the log and shows as the status under Settings → Home Assistant. The macro goes on with the next action.