Entity Button Card


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 Variables

type

(string)(Required)entity-button

entity

(string)(Required)Home Assistant entity ID.

name

(string)(Optional)Overwrites friendly name.

Default value: Name of Entity

icon

(string)(Optional)Overwrites icon or entity picture.

Default value: Entity Domain Icon

tap_action

(string)(Optional)Set to toggle or call-service for direct actions.

Default value: more-info

hold_action

(string)(Optional)Action to perform when clicked-and-held (e.g., more-info, toggle, call-service).

Default value: none

service

(string)(Optional)For call-service, e.g., media_player.media_play_pause

service_data

(object)(Optional)The service data to use.

Default value: entity_id: entity_id

theme

(string)(Optional)Set to any theme within themes.yaml

Examples

Title and Script Service Example:

- type: entity-button
  name: Turn Off Lights
  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.