[solved w/ custom button card & group integration] Lovelace button that triggers an automation and represents a state?

I have 6 garden lights that are controlled by a relay with multiple ports, so 6 HA switches.
There is 1 automation to manually switch on by request and another automation that switches off after 1 hour.
Then there is another automation that switches on at a certain time and another to switch off, again at a certain time.

Now I would like a lovelace button to trigger that automation AND represent the state of those 6 switches in that single button.
Is this possible and what would be ‘the best’ way?

Switch group should be the solution:

1 Like

Hi Florian, thanks for your response and pointing me to the group integration!

Those switches (relay outputs) have to switch on/off in a sequence so a group is not suitable for this: I have an automation with intervals.

With the GitHub - custom-cards/button-card: ❇️ Lovelace button-card for home assistant and the status of the group I managed to solve this.