The Button card allows you to add buttons to perform tasks.
Screenshot of the Button card.
type: button entity: light.living_room
Icon that will be be used to overwrite the entity picture or entity icon.
Set the height for the icon. This is in pixels which is handled by the configuration UI. (Advanced users can use other CSS values if they like)
true to have icons colored when entity is active
Action taken on card tap. See action documentation.
Action taken on card tap and hold. See action documentation.
Action taken on card double tap. See action documentation.
Title and Script Service Example:
type: button name: Turn Off Lights show_state: false tap_action: action: call-service service: script.turn_on service_data: entity_id: script.turn_off_lights
Screenshot of the Button card with Title and Script Service.