Lock device
A smart lock enhances security by allowing you to lock or unlock doors remotely. With Home Assistant and Alexa integration using Node-RED, you can create routines for automatic locking or receive voice alerts for unauthorized access.
   
Output
The following is a sample Node-RED output for this device using default component values:
{
  "id": "{--Lock Device ID--}",
  "name": "{--Lock Device Name--}",
  "type": "lock",
  "components": {
    "LockController": {
      "lockState": "LOCKED"
    }
  },
  "metadata": {
    "previous": {
      "components": {
        ...
      }
    }
  }
}Components
The following components enable various features and controls for this device. Each component offers specific capabilities, commands, and configurations to enhance your Node-RED Alexa integration.
LockController
The LockController secures devices with locking mechanisms, such as door locks.
Commands:
“Alexa, lock my front door.”
“Alexa, unlock the back door.”
“Alexa, is my door locked?”
“Alexa, is my door unlocked?”
Specification:
| Property | Description | Allowed Values | Default | 
|---|---|---|---|
| lockState | Sets the state of the lock. | LOCKED, UNLOCKED, JAMMED | LOCKED |