Skip to Content
🚀 We just launched! Please star us on Github!

Lock Device

Device Category: lock

The Lock device represents an electronic or smart locking system, providing control and monitoring of access points such as doors or gates.


Required Channels

These channels are mandatory for the functionality of the lock device:

ChannelDescriptionMultipleDetails
lockControls the locking and unlocking functionality of the device.NoSee details
device_informationProvides metadata about the device, such as manufacturer, model, and firmware.NoSee details

Optional Channels

These channels are optional and provide additional features:

ChannelDescriptionMultipleDetails
batteryMonitors the battery level and status of the lock.NoSee details
contactDetects whether the door or access point is closed or open.NoSee details
motionDetects motion near the lock for enhanced security.NoSee details

Use Case Scenarios

  1. Access Control:

    • Lock or unlock the device using the lock channel.
    • Monitor the current lock state through the same channel.
  2. Battery Monitoring:

    • Keep track of the lock’s battery status using the battery channel to avoid power-related issues.
  3. Security Monitoring:

    • Detect door or access point status with the contact channel.
    • Use the motion channel for added security by monitoring nearby motion.

Developer Notes

  1. Channel Implementation:

    • Implement all required channels to ensure core locking functionality.
    • Add optional channels for advanced monitoring and security features.
  2. Integration:

    • Ensure the lock channel is mapped to the physical or logical locking mechanism.
    • Include the device_information channel for proper device identification.
  3. Power Management:

    • Use the battery channel to provide feedback on power levels, particularly for battery-powered locks.
  4. Security Enhancements:

    • Utilize the contact and motion channels to enhance the lock’s utility in security applications.
Last updated on