type: custom:button-card entity: binary_sensor.door_contact name: Door state_color: false state: - operator: '==' value: 'off' icon: mdi:door-closed - operator: '==' value: 'on' icon: mdi:door-open color: white styles: card: - animation: blink 2s ease infinite - background-color: darkred name: - color: white