home-assistant.io/source/_lovelace/entity-button.markdown
2018-11-21 12:32:55 +01:00

2.0 KiB

layout, title, sidebar_label, description, date, sidebar, comments, sharing, footer
layout title sidebar_label description date sidebar comments sharing footer
page Entity Button Card Entity Button The Entity Button card allows you to add buttons to perform tasks 2018-10-11 10:28 +00:00 true false true true

The Entity Button card allows you to add buttons to perform tasks.

Screenshot of the entity button card Screenshot of the Entity Button card.

- type: entity-button
  entity: light.living_room
- type: entity-button
  entity: light.office
- type: entity-button
  entity: light.bedroom

{% configuration %} type: required: true description: entity-button type: string entity: required: true description: Home Assistant entity ID. type: string name: required: false description: Overwrites friendly name. type: string default: Name of Entity icon: required: false description: Overwrites icon or entity picture. type: string default: Entity Domain Icon tap_action: required: false description: "Set to toggle or call-service for direct actions." type: string default: more-info hold_action: required: false description: Action to perform when clicked-and-held (e.g., more-info, toggle, call-service). type: string default: none service: required: false description: "For call-service, e.g., media_player.media_play_pause" type: string service_data: required: false description: The service data to use. type: object default: "entity_id: entity_id" theme: required: false description: "Set to any theme within themes.yaml" type: string {% endconfiguration %}

{% linkable_title Examples %}

Title and Script Service Example:

- type: entity-button
  name: Turn Off Lights
  tap_action: call-service
  entity: script.turn_off_lights
  service: script.turn_on

Screenshot of the entity button card Screenshot of the Entity Button card with Title and Script Service.