# `Grizzly.ZWave.Commands.AntitheftSet`
[🔗](https://github.com/smartrent/grizzly/blob/v9.1.4/lib/grizzly/zwave/commands/antitheft_set.ex#L1)

This command is used to lock or unlock a node.

Params:

  * `:state` - This field MUST indicate the desired :locked or :unlocked state
    for the receiving node (required v2+)
  * `:magic_code` - This field contains the 1 to 10 byte Magic Code used to
    lock or unlock the node (required v2+)
  * `:manufacturer_id` - This field describes the Z-Wave Manufacturer ID of the
    company’s product that has locked the node (required v2+)
  * `:antitheft_hint` - This field is used as a 1 to 10 byte identifier or key
    value to help retrieving the Magic Code (required v2+)
  * `:locking_entity_id` - This field MUST specify a unique Z-Wave Alliance
    identifier for the entity that has locked the node (required v3)

# `param`

```elixir
@type param() ::
  {:state, :locked | :unlocked}
  | {:magic_code, String.t()}
  | {:manufacturer_id, non_neg_integer()}
  | {:antitheft_hint, String.t()}
  | {:locking_entity_id, non_neg_integer()}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
