z2m_set_device_options
Change device-specific options like transition, retain, debounce, and calibration offsets. Merges with existing settings and persists, with restart status returned.
Instructions
Change Zigbee2MQTT device options such as transition, retain, debounce, temperature_precision or calibration offsets. Options are merged, not replaced, and persist in the Zigbee2MQTT configuration. Call z2m_get_device first to see settable_options for that device. Use z2m_set_state to change what a device is doing, and z2m_set_bridge_options for bridge-wide settings. The response reports whether a bridge restart is required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | Device friendly_name or ieee_address. | |
| options | Yes | Options to merge, e.g. {"transition": 1, "retain": true}. |