Template Button

The template button platform allows you to create simple buttons out of just actions. Once defined, it will automatically appear in Home Assistant as a button and can be controlled through the frontend.

# Example configuration entry
  - platform: template
    name: "Template Button"
      - logger.log: Button Pressed

Configuration variables:

  • name (Required, string): The name of the switch.

  • id (Optional, ID): Manually specify the ID used for code generation.

  • All other options from Button.

See Also