Aliro door lock provisioning with Matter

This page covers the following methods for testing the Aliro door lock with Matter support:

The application allows you to provision Aliro credentials from a Matter controller. First, ensure that all the necessary software tools and hardware are configured (see Testing). For development kit LEDs, buttons, and commissioning controls, see User interface in the Application guide.

Testing with Matter CHIP Tool

This guide uses CHIP Tool as a Matter controller to commission the door lock and provision Aliro credentials through the command-line interface. For details, see the Matter chip-tool guide.

Note

This approach is recommended for development, testing, and debugging purposes.

  1. Set up the Thread Border Router with the Nordic Thread coprocessor.

    1. Configure the Thread radio co-processor.

    2. Run the OpenThread Border Router and form a Thread network using Docker.

    3. Obtain the Thread operational dataset for commissioning devices into the created Thread network by running the following Docker command:

      sudo docker exec -it otbr sh -c "sudo ot-ctl dataset active -x"
      

      Save this operational dataset as it will be needed for commissioning the door lock device.

  2. Commission the Aliro door lock to the Matter over Thread network.

    1. Put the door lock device in commissioning mode by pressing the appropriate button on the development kit. Refer to the User interface section for more details.

    2. Use CHIP Tool to commission the device with Thread operational dataset obtained:

      ./chip-tool pairing ble-thread <node-id> hex:<thread-dataset> <pin-code> <discriminator>
      
      • <node-id> - A unique node ID for the device (for example, 1)

      • <thread-dataset> - The obtained Thread operational dataset

      • <pin-code> - Device pairing code (default: 30033003)

      • <discriminator> - Device discriminator (default: 3003)

      For example:

      ./chip-tool pairing ble-thread 1 hex:0e080000000000010000000300001335060004001fffe002084c70c4ba47c6a0780708fd12345678901234051000112233445566778899aabbccddeeff030e4f70656e5468726561642048423030010212340410445f2b5ca6f2a93a55ce570a70efeecb0c0402a0f7f8 30033003 3003
      
    3. Verify successful commissioning by reading basic device information:

      ./chip-tool basicinformation read vendor-name 1 0
      

      You should see the vendor information of the commissioned door lock device.

  3. Configure the Aliro Reader based on the Test Harness configuration.

    1. Generate an ECC key pair for the Reader by running the following commands:

      KEY_OUTPUT=$(openssl ecparam -name prime256v1 -genkey | openssl ec -text -noout) && \
      echo "Private Key:" && \
      echo "$KEY_OUTPUT" | sed -n '/priv:/,/pub:/p' | grep -v 'priv:\|pub:' | tr -d ' \n:' && \
      echo -e "\nPublic Key:" && \
      echo "$KEY_OUTPUT" | sed -n '/pub:/,/ASN1/p' | grep -v 'pub:\|ASN1' | tr -d ' \n:'
      

      See an example output:

      Private Key:
      9df123f58dd15f6bab71bb6635827faf25100b043cdf6b62c93ea3c244ad4403
      Public Key:
      043c05b91fc09a84ad2ab7940a1b84f09b8ddf5323f1aac0f6568e1c973f37275dc67500a9df08d1bd69ee04e8641d9cbc73a4c1be30eed64def414f8afdc44642
      
    2. Follow the Setting up the Aliro Test Harness section to locate the necessary credentials in the Test Harness project configuration.

    3. Configure the Test Harness project:

      • Set dut_reader_public_key to the generated Public Key.

      • Note down the values of th_access_credential_public_key and dut_reader_group_identifier. You will need them for further configuration.

    4. Set the Aliro Reader configuration remotely with CHIP Tool using the following command:

      ./chip-tool doorlock set-aliro-reader-config hex:<signing_key> hex:<verification_key> hex:<group_identifier> <node-id> <endpoint-id> --GroupResolvingKey hex:<group_resolving_key>
      
      • <signing_key> - Signing key of the Reader device (generated Private Key)

      • <verification_key> - Verification key of the Reader device (generated Public Key)

      • <group_identifier> - Group identifier of the Reader device (corresponds to dut_reader_group_identifier)

      • <node-id> - Unique node ID for the device (for example, 1)

      • <endpoint-id> - Endpoint ID of the Reader device (for example, 1 for the door lock cluster)

      • <group_resolving_key> - Group resolving key of the Reader device. This option corresponds to dut_reader_group_resolving_key, which can be set in the Test Harness project configuration.

      See the following example:

      ./chip-tool doorlock set-aliro-reader-config hex:9df123f58dd15f6bab71bb6635827faf25100b043cdf6b62c93ea3c244ad4403 hex:043c05b91fc09a84ad2ab7940a1b84f09b8ddf5323f1aac0f6568e1c973f37275dc67500a9df08d1bd69ee04e8641d9cbc73a4c1be30eed64def414f8afdc44642 hex:00113344667799AA00113344667799AA 1 1 --GroupResolvingKey hex:00000000000000000000000000000000 --timedInteractionTimeoutMs 5000
      

      Note

      The GroupResolvingKey can only be set if the Aliro door lock application is built with Bluetooth LE transport and Ultra-Wideband (UWB) support. Currently, the Aliro Test Harness expects the GroupResolvingKey to be set to all zeros.

  4. Add door lock user and AliroNonEvictableEndpointKey credentials using CHIP Tool.

    1. Add the first user (Home user):

      ./chip-tool doorlock set-user 0 1 Home 0 1 0 0 1 1 --timedInteractionTimeoutMs 5000
      
      • OperationType (0 = Add) - 0

      • UserIndex - 1

      • UserName - Home

      • UserUniqueID - 0

      • UserStatus (1 = enabled) - 1

      • UserType (0 = unrestricted) - 0

      • CredentialRule (0 = single) - 0

      • Node ID of the door lock - 1

      • Endpoint ID - 1

    2. Set the first AliroNonEvictableEndpointKey credential for the Home user:

      ./chip-tool doorlock set-credential 0 '{"credentialType": 8, "credentialIndex": 1}' hex:<credential-data> 1 null null 1 1 --timedInteractionTimeoutMs 5000
      
      • OperationType (0 = Add) - 0

      • credentialType (8 = AliroNonEvictableEndpointKey) - 8

      • credentialIndex - 1

      • <credential-data> - An octet string parameter with the Access Credential public key data. It corresponds to th_access_credential_public_key.

      • UserIndex - 1

      • UserStatus - null

      • UserType - null

      • Node ID of the door lock - 1

      • Endpoint ID - 1

      See the following example:

      ./chip-tool doorlock set-credential 0 '{"credentialType": 8, "credentialIndex": 1}' hex:04742df736d0fc9be978c45b00e8fdf7cea684ea105ae574c1505a2c24ab6198e3125b7f1b7e1d134c55ece69681ba8ecc18a3836dc5199c759f31e8ccf17e3efa 1 null null 1 1 --timedInteractionTimeoutMs 5000
      
    3. Read the status of credential assigned to the user to verify that it was set correctly:

      ./chip-tool doorlock get-credential-status {"credentialType": 8, "credentialIndex": 1} 1 1
      
  5. Add Aliro Credential Issuer key using CHIP Tool. Once you have a user created on the door lock, you can add the Credential Issuer public key to the Reader using the following command:

    ./chip-tool doorlock set-credential 0 '{"credentialType": 6, "credentialIndex": 1}' hex:<credential-data> 1 null null 1 1 --timedInteractionTimeoutMs 5000
    
    • OperationType (0 = Add) - 0

    • credentialType (6 = AliroCredentialIssuerKey) - 6

    • credentialIndex - 1

    • <credential-data> - An octet string parameter with the Credential Issuer public key data. It corresponds to dut_credential_issuer_public_key.

    • UserIndex - 1

    • UserStatus - null

    • UserType - null

    • Node ID of the door lock - 1

    • Endpoint ID - 1

    See the following example:

    ./chip-tool doorlock set-credential 0 '{"credentialType": 6, "credentialIndex": 1}' hex:047BA31938492E3F5E97BC91806B5835B5D9E426609139006711E5FB7A670EE4E12FC9F25396C013CC20166029D761A105DEA5E071E84A9E499920524CE2301137 1 null null 1 1 --timedInteractionTimeoutMs 5000
    

Testing with Apple ecosystem

Note

Support for testing with Apple ecosystem is experimental and is not optimized with respect to performance and power consumption. This feature is intended for development and testing purposes only.

This guide demonstrates how to test the Aliro door lock with Matter support using Apple’s Home App and Wallet on iPhone. For additional information about Matter testing with various ecosystems, see the Matter testing with Apple, Google, and Samsung ecosystems guide.

When testing nRF Door Lock and Access Control Application with Apple ecosystem, you can use either:

  • NFC - Tap to unlock using NFC technology

  • NFC + Bluetooth LE + UWB - Unlock on approach using Bluetooth LE + UWB ranging (in addition to NFC)

Both configurations are supported and can be set up during the commissioning process.

Note

Testing with Apple ecosystem requires both Step-up phase and Expedited-fast phase support to be enabled on the device. Both CONFIG_DOOR_LOCK_STEP_UP_PHASE and CONFIG_DOOR_LOCK_EXPEDITED_FAST_PHASE Kconfig options are enabled by default when building with Matter support.

Prerequisites

Before you begin testing with Apple ecosystem, ensure you have the following:

  • iPhone with iOS 26 or later - It is required for Aliro-related features in the Apple Home and Wallet apps.

  • Apple Home Hub - A HomePod Mini (recommended) or an Apple TV 4K, which acts as both a Matter controller and Thread Border Router. You can test the application with iPhone only, however, having an Apple Home Hub is recommended for best experience.

  • Apple Home App - Pre-installed on iOS devices.

  • Apple Wallet - Pre-installed on iOS devices.

  • A development kit from Nordic Semiconductor equipped with Matter and Aliro Door Lock Application firmware that supports Matter.

Building the firmware

Build the firmware with the appropriate configuration for your testing scenario, for example:

  • For NFC testing, run:

    west build -b nrf54lm20dk/nrf54lm20b/cpuapp applications/matter-aliro-door-lock-app
    
  • For NFC + Bluetooth LE + UWB testing, run:

    west build -b nrf54lm20dk/nrf54lm20b/cpuapp applications/matter-aliro-door-lock-app -- -DCONFIG_DOOR_LOCK_BLE_UWB=y
    

Note

Bluetooth LE and UWB ranging requires a working UWB implementation. The in-tree stub built by default does not perform ranging; provide a UWB backend as described in Integrating a third-party UWB chip.

Note

Before commissioning the door lock, ensure that the Apple Home Hub is set up and added to your Apple Home. It will act as the Thread Border Router and Matter controller for your home network.

Commissioning the door lock to Apple Home

The commissioning process allows you to add the door lock accessory into your Apple Home ecosystem using Matter over Thread. Complete the following steps to commission the device:

  1. Prepare the door lock device:

    1. Flash the Aliro door lock firmware to your Nordic development kit (see Application guide).

    2. Connect the required hardware (NFC reader expansion board).

    3. Power on the device and connect to the serial console to monitor the commissioning process.

    4. Start the commissioning mode on the device. Refer to the User interface section for detailed button assignments and LED indicators.

  2. Initiate Matter pairing in the Apple Home app:

    1. Open the Home App on your iPhone.

    2. Ensure your iPhone is connected to the same Wi-Fi network as your Apple Home Hub.

    3. Tap the + button in the top-right corner of the Home app.

    4. Select Add Accessory or Add Device.

  3. Scan the Matter QR code displayed under the link that appears in the device’s serial console after it boots up. The Home app will activate the camera for QR code scanning.

    Note

    During testing, you might see an Uncertified Accessory warning, indicating the device has not yet been certified by the Connectivity Standards Alliance for Matter compatibility. This behavior is expected for development devices. If this occurs, tap Add Anyway to proceed with commissioning.

    Uncertified Accessory warning in Apple Home app

    Uncertified Accessory warning during commissioning

  4. Complete the accessory setup:

    1. Wait while the Home App establishes a connection and commissions the device. The status message will show Setting Up....

    2. When prompted, assign a location or room for the lock (for example, “Entrance”, “Front Door”, or “Garage”).

      Lock location selection in Apple Home app

      Selecting the lock location during setup

    3. Provide a name for the lock (for example, “Aliro lock” or “Front Door Lock”).

    4. Review the suggested settings and tap Continue or Done.

  5. Enable Home Key functionality. After successful commissioning, the Home app will automatically prompt you to set up the Home Key feature for Apple Wallet:

    1. Wait for the Tap to Unlock setup screen with options for unlock methods.

      Tap to Unlock setup screen in Apple Home app

      Tap to Unlock configuration screen

    2. Tap Turn On Tap to Unlock to enable NFC-based unlocking using your iPhone.

    3. Choose your preferred authentication methods:

      • Require Face ID or Passcode - Adds an additional security layer requiring biometric or PIN authentication before unlocking.

      • Access Codes - Adds an additional security layer requiring a PIN code to unlock the door lock remotely (through the Matter network).

    4. Tap Done to complete the Home Key provisioning.

  6. Verify successful commissioning:

    1. Wait for the Lock Added to Home confirmation pop-up with a message indicating that you and all home members can now unlock the door.

      Lock Added to Home confirmation

      Confirmation that the lock has been successfully added

      The lock should now appear in your Home app within the assigned room, displaying its current state (Locked or Unlocked).

      Aliro lock in Apple Home app

      Aliro lock displayed in the Home app

    2. Ensure that a new home card appears in your Apple Wallet app containing the digital key for the lock.

      Apple Wallet Hold Near Lock instruction

      Apple Wallet containing the newly added Home key

Using the home key for access

Once the lock is successfully commissioned to Apple Home, a virtual home key containing Aliro credentials is automatically provisioned and added to your Apple Wallet.

Accessing the home key in Apple Wallet

To use your digital home key from Apple Wallet, complete the following:

  1. Open the Wallet app on your iPhone.

  2. Locate the new home card displaying a house icon. This card represents your digital home key and contains the Aliro cryptographic credentials required for secure authentication with the door lock.

Unlocking the door

To unlock the door using your iPhone with NFC, complete the following steps:

  1. Approach the door lock with your iPhone, ensuring the Apple Wallet app is open and the Home Key card is active. Depending on the security settings you chose during the initial setup, you may be prompted for biometric authentication (Face ID or Touch ID) or passcode entry to make the card active.

  2. Hold your device near the NFC reader antenna on the door lock. This is a part of the STM Nucleo NFC reader expansion board attached to the development kit.

    Authentication behavior depends on your chosen security setting:

    • Face ID or Passcode required - Your device will ask for biometric authentication (Face ID or Touch ID) or passcode entry before unlocking.

  3. Wait for confirmation:

    • The Apple Wallet will display the following message:

      Home key successfully added to Apple Wallet

      Apple Wallet displaying confirmation after successful unlock with Home key

    • The device serial console outputs an ACCESS GRANTED log message.

    • The lock status in the Home app updates to Unlocked.

Troubleshooting

If you encounter issues during testing with the Apple ecosystem, refer to the following troubleshooting guidance.

Commissioning issues

If you are facing difficulties during the commissioning process, consider the following steps to diagnose and resolve the issue:

  • Device is not discovered by the Home app:

    • Verify that the device is in active commissioning mode (LED indicators should show commissioning state as described in the User interface).

    • Ensure Bluetooth is enabled on your iPhone, and that the Home app has permission to access location services.

    • Confirm your iPhone is running iOS 26 or later.

    • Ensure that the HomePod mini is powered on, connected to Wi-Fi, and showing as online in the Home app.

    • Attempt to power cycle both the door lock device and the HomePod mini.

  • Receiving an Uncertified Accessory warning:

    • This is expected behavior for development devices that are not yet certified by the Connectivity Standards Alliance (CSA).

    • Tap Add Anyway to proceed with commissioning.

    • Once the product is certified, this warning will no longer appear.

  • Commissioning fails or times out:

    • Ensure the HomePod mini is on the same network as your iPhone.

    • Check the device serial console for error messages indicating commissioning failures.

    • Ensure the firmware was built with the correct application (applications/matter-aliro-door-lock-app).

    • Ensure the Step-up phase support is enabled (the CONFIG_DOOR_LOCK_STEP_UP_PHASE Kconfig option).

    • Try performing a factory reset of the device and restarting the commissioning process.

    • Ensure the Thread network is functioning correctly on the HomePod mini.

Home Key and Wallet issues

Problems with the Home Key appearing in Apple Wallet or other related issues can often be resolved by checking a few key settings and configurations:

  • Home key does not appear in the Apple Wallet:

    • Ensure you have completed the Tap to Unlock setup during the initial commissioning process

    • If you skipped this step, you can enable it later by opening the Home app, tapping the lock, going to the settings icon, and clicking Tap to Unlock.

    • Ensure your iPhone has Apple Wallet enabled and is signed in with your Apple ID.

    • Check if iCloud Keychain is enabled by going to iPhone Settings → [Your Name] → iCloud → Passwords and Keychain.

  • The Hold Near Lock message appears but nothing happens (NFC unlock):

    • Verify that the NFC reader hardware is properly connected to the development kit (check physical connections).

    • Ensure the firmware includes the NFC transport support by checking the build configuration.

    • Adjust the position of your iPhone relative to the NFC reader antenna to improve connectivity.

    • Check the device serial console for NFC reader initialization messages and any error logs.

  • The door does not unlock automatically when approaching (Bluetooth LE + UWB):

    • Verify that the UWB module is properly connected to the development kit (check physical connections).

    • Ensure the firmware includes UWB support with a working UWB implementation by checking the build configuration (-DCONFIG_DOOR_LOCK_BLE_UWB=y; see Integrating a third-party UWB chip).

    • Ensure your iPhone is within CONFIG_DOOR_LOCK_ACCESS_MANAGER_MAX_ALLOWED_DISTANCE_CM (default: 150 cm) of the door lock.

    • Check the device serial console for UWB ranging messages and distance measurements.

    • Verify that Bluetooth is enabled on your iPhone and that the Home app has permission to access location services.

  • Face ID or passcode prompt does not appear when expected:

    • Review the home key security settings by going to Wallet app → Home card → ⓘ (info) → Express Mode settings.

    • If you wish to use the Require Face ID or Passcode option, ensure it is enabled in the settings.

For additional troubleshooting, guidance, and tips for various ecosystems, see the Matter testing with Apple, Google, and Samsung ecosystems guide.

Testing with Samsung SmartThings ecosystem

SmartThings and Samsung Wallet support Matter and Aliro. The related software has been deployed to supported devices.

To receive support for this feature, your door lock product must pass the Works With SmartThings certification and Samsung Wallet QA testing. Samsung operates a partner program to assist with these preparations.

To test Aliro with the SmartThings ecosystem, you must have a special Matter lock driver running on the SmartThings hub.

Note

This guide explains how to test the application with the Samsung ecosystem using Aliro over NFC only. UWB is out of scope. Enabling Aliro over Bluetooth LE and UWB on a Samsung phone requires an additional software package on the phone. Contact Samsung for details.

For additional information about Matter testing with various ecosystems, see the Matter testing with Apple, Google, and Samsung ecosystems guide.

Prerequisites

See the Samsung Wallet device compatibility list for supported Samsung phone models and their NFC and UWB capabilities.

The SmartThings hub can be any model that supports SmartThings and Matter.

For reference, the following setup was used during internal testing:

  • Samsung Galaxy S24+ phone running Android 16 and One UI 8.5

  • Aeotec SmartThings hub (model IM6001-V3P22, hub name V3_HUB) with:

    • Matter SDK version: 1.5-0

    • Firmware version: 000.060.00012

    • Hub app version: 1.0.49-13

  • A special version of the Samsung Wallet app (contact Samsung representatives to obtain the proper build)

  • The Matter and Aliro Door Lock Application build with NFC support only (see Application guide)

Installing the Matter lock driver on the hub

Before commissioning the door lock, install a Matter lock driver on the SmartThings hub. The driver must support your device’s Vendor ID (VID) and Product ID (PID).

Complete the following steps to create and enroll the driver:

  1. Fork the SmartThingsEdgeDrivers repository.

  2. Add your device’s VID, PID, brand, and model name to the fingerprints file for Matter locks in the SmartThingsEdgeDrivers repository.

    Note

    If you have problems finding the fingerprints file, contact the SmartThings team for assistance.

  3. Create a pull request to the main branch.

    You can start testing before the pull request is merged:

    1. After the pull request is created, an invitation link is generated automatically.

    2. Use the invitation link to enroll the channel on your hub.

    3. You can begin testing immediately without waiting for the pull request to be merged.

    Enrolling the generated driver channel on the SmartThings hub

    Enrolling the driver channel on the hub

Building the firmware

Build the Matter and Aliro Door Lock Application with NFC support only, using the same Matter VID and PID as in the hub lock driver.

For example, to keep the default Product ID and change only the Vendor ID, run the following command:

west build -b nrf54lm20dk/nrf54lm20a/cpuapp applications/matter-aliro-door-lock-app -p -- \
  -DCONFIG_CHIP_DEVICE_VENDOR_ID=4735 \
  -DCONFIG_CHIP_FACTORY_DATA_CERT_SOURCE_GENERATED=y \
  -DCONFIG_CHIP_FACTORY_DATA_GENERATE_CD=y

Note

When you change the default VID or PID, factory data must be regenerated. Enable CONFIG_CHIP_FACTORY_DATA_CERT_SOURCE_GENERATED and CONFIG_CHIP_FACTORY_DATA_GENERATE_CD Kconfig options in the build command or in prj.conf. You must also have the chip-cert tool available on your PATH when building with generated certificates.

Commissioning the door lock to Samsung SmartThings

The commissioning process allows you to add the door lock accessory into your SmartThings ecosystem using Matter over Thread. Complete the following steps to commission the device:

  1. Prepare the door lock device:

    1. Flash the Aliro door lock firmware with NFC support to your Nordic development kit (see Application guide).

    2. Connect the NFC reader expansion board.

    3. Power on the device and connect to the serial console to monitor the commissioning process.

  2. Open a terminal on your computer and locate the Matter QR code link printed in the device serial console after boot.

  3. Open the SmartThings app on your Samsung phone.

    SmartThings app main screen

    SmartThings app main screen

  4. Tap the + button in the upper-right corner.

    Add device screen in SmartThings app

    Adding a new device in SmartThings

  5. Select Scan QR code.

    Scan QR code option in SmartThings app

    Scan QR code option

  6. Scan the Matter QR code from the link displayed in the serial console.

    QR code scanning screen in SmartThings app

    Scanning the Matter QR code

  7. Start Bluetooth LE advertising on the device by pressing Button 1. Refer to the User interface section for detailed button assignments and LED indicators.

  8. When testing a non-certified Matter device, a notification pop-up appears. Tap Continue to proceed.

    Note

    This warning is expected for development devices that are not yet certified by the Connectivity Standards Alliance (CSA). Once the product is certified, this warning will no longer appear.

    Non-certified Matter device warning in SmartThings app

    Non-certified device warning during commissioning

  9. Wait while SmartThings adds the device to your home.

    SmartThings checking network during device setup

    Checking network connectivity during setup

    SmartThings almost done adding the device

    Device setup in progress

  10. When prompted, set a PIN code for opening the lock, or skip this step.

    Set PIN code screen in SmartThings app

    Setting a PIN code for the lock

  11. Confirm that the device has been added successfully.

    Device added successfully in SmartThings app

    Device added successfully

  12. Tap Done. SmartThings downloads the plugin used to control your device.

    Downloading device control plugin in SmartThings app

    Downloading the device control plugin

  13. Wait until the device is ready in SmartThings.

    Door lock ready in SmartThings app

    Door lock ready in SmartThings

Using the digital key from Samsung Wallet

After successful commissioning, add an Aliro digital key to Samsung Wallet and use it to unlock the door over NFC.

Adding the digital key to Samsung Wallet

Complete the following steps:

  1. In the SmartThings device view, tap the Wallet icon at the bottom of the screen.

    Wallet icon in SmartThings device view

    Starting digital key setup from SmartThings

    Add digital key to Samsung Wallet screen

    Adding the digital key to Samsung Wallet

  2. Tap Start to add the key to Samsung Wallet.

  3. When the digital key has been added successfully, tap Done.

    Digital key added to Samsung Wallet confirmation

    Digital key added to Samsung Wallet

    Digital key ready in Samsung Wallet

    Digital key ready in Samsung Wallet

Unlocking the door with NFC

To unlock the door using your Samsung phone with NFC, complete the following steps:

  1. Open Samsung Wallet and select the door lock digital key card.

  2. Tap the NFC reader of the door lock with your phone. The NFC reader is part of the STM Nucleo NFC reader expansion board attached to the development kit.

  3. Confirm that the door unlocks:

    Unlock confirmation in Samsung Wallet

    Unlock confirmation in Samsung Wallet

    Door unlocked confirmation in SmartThings app

    Door unlocked in SmartThings

    • The device serial console outputs an ACCESS GRANTED log message.

    • The lock status in the SmartThings app updates to Unlocked.

Aliro and Matter lock state synchronization

When the door lock is unlocked through Aliro, the lock state automatically synchronizes with the Matter door-lock server cluster. This synchronization ensures that User Devices in the Matter network are notified of lock state changes in real time.

  1. To verify the current lock state, run the following command:

    ./chip-tool doorlock read lock-state 1 1
    
  2. After executing the command, find the lock state in the response, for example:

    [1757071349.943] [949263:949265] [TOO]   LockState: 1
    

    The response indicates that the lock is locked.

  3. Execute a test, for example, BLEUWB_RDR_EXPEDITED_STANDARD_PHASE with Bluetooth LE + UWB transport (see Verification and testing procedures) using the Test Harness. If the test is successful, rerun the ./chip-tool doorlock read lock-state 1 1 command.

    You should see the following status in the response:

    [1757072050.821] [951199:951201] [TOO]   LockState: 2
    

    The response indicates that the lock is unlocked.