type: custom:button-card entity: switch.shelly_hojre_garage_port icon: mdi:garage show_label: true name: Right Garage Door state: - operator: template value: | [[[ return (states['binary_sensor.garage_sensor_hojre_contact'].state === 'on' ); ]]] icon: mdi:garage-open label: open color: yellow styles: name: - color: white label: - color: white card: - background-color: red - operator: default icon: mdi:garage label: closed color: black styles: name: - color: Black label: - color: black card: - background-color: green