Change button entity based on state of another entity - Solved

The simple option is to make two conditional cards with the different buttons. One card visible for each input select state.

The other option is to template the entity using this custom card: