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

Module for the SWITCH_BINARY_SET command

Params:

* `:target_value` - `:on` or `:off`(required)
* `:duration` - How long in seconds the switch should take to reach target value or the factory default (:default)
                Beyond 127 seconds, the duration is truncated to the minute. E.g. 179s is 2 minutes and 180s is 3 minutes
                (optional V2)

# `param`

```elixir
@type param() ::
  {:target_value, :on | :off} | {:duration, Grizzly.ZWave.Encoding.duration()}
```

---

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