I created an input_button in Devices & Services - Helpers.
Clicking it starts an Automation.
Can the input_button’s color be changed to Attributes.State?
The reason is that this Helper can be set as an Action in CarPlay, so you can see the correct status based on the color.
If by a “button” you mean an “input_button” helper - then this can be created either in yaml or in UI (Settings → Helpers).
If by “button” you mean an UI element - this is usually created either automatically (pre-generated standard dashboards) or manually by a user. But I do not know how dashboards for Auto are created.