Yale Lock setup

Ok here’s a different question… why would this quit working when all I did was change entity to the new lock? That’s all that’s been changed. It will show the change on the frontend but the button no longer locks and unlocks the door…

I did look at the docs for lock, unlock but cannot seem to get this working again… Any suggestions would be very much appreciated. Thank you! Happy Easter!

- type: custom:button-card
            <<: *card_mod_transparent
            tap_action:
              action: call-service
              service: homeassistant.toggle
              service_data:
                entity_id: switch.front_door
            layout: icon_name_state2nd
            entity: lock.front_door_lock  ## <-  THIS is the only thing I changed.
            show_state: false
            show_last_changed: true
            size: 34%
            state:
              - value: 'locked'
                name: Frontdoor is Locked
                icon: mdi:lock
                color: green
              - value: 'unlocked'
                name: Frontdoor is UNLOCKED
                color: yellow
                styles:
                  icon:
                    - animation: blink 2s ease infinite
                icon: mdi:lock-open-alert
            styles:
              card:
                - color: '#639cf9'

After I figured out that a switch was created to handle the heavy lifting [I didn’t set this lock up so it took me a minute of staring at the code before it dawned on me]…

I found the ‘switch’ and changed the entity in that and BAM… working.

Just 1 more thing away from SmartThings… 7 to go.