Skip to content

Button

Base Example
button:
- platform: ... # [!code highlight]
name: 'Write Hello World'

Common attributes are documented in Common Component Properties.

PropertyDescriptionExample
(none)Button currently has no additional component-specific attributes.(n/a)
FilterDescription
(none)Button does not currently support filters.
PlatformNotes
ShellTriggers a command when the button is pressed.
Power UtilitiesTriggers device power actions (shutdown/reboot/etc.).

For platform-specific configuration options, use the linked platform pages.

Similar to ESPHome: Button