pin_device
Turn a connected device's current IP into a static DHCP lease with one command, then save the config. Use this to assign a fixed IP without manual MAC lookup and avoid address conflicts.
Instructions
Turn a connected device's current IP into a static reservation in one step (no need to know the MAC), then save the config. Preferred way to give a device a fixed IP; use set_static_lease only for devices that are offline (not in list_devices). A name fragment must match exactly one device; an address-like identifier must be the full IP or MAC and never matches names ("66" won't hit "Room-66-Cam"). Passing ip moves the device there at its next lease renewal — get a candidate from find_free_ip. Refuses (changes nothing) if the target IP is active on or reserved to another device. Examples: pin_device("192.168.1.66") · pin_device("PS5", "192.168.1.154")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | No | Optional IPv4 to pin to instead of the device's current IP. Empty = keep current IP. | |
| identifier | Yes | Device IP (e.g. 192.168.1.66), MAC, or a fragment of its name, looked up in the active DHCP lease table. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |