Zigbee2Mqtt rename device during join

I’m looking for a way to rename zigbee devices during join.

Found this on the zigbee2mqtt site…

zigbee2mqtt/bridge/request/permit_join

Allows to permit or disable joining of new devices. Allowed payloads are {"value": true}, {"value": false}, true or false. Example response: {"data":{"value":true},"status":"ok"}. This is not persistent (will not be saved to configuration.yaml).

To allow joining via a specific device set the friendly_name in the device property. E.g. {"value": true, "device": "my_bulb"}.

To allow joining for only a specific amount of time add the time property (in seconds). E.g. {"value": true, "time": 20} (will allow joining for 20 seconds).

Of particular interest to me is this section…

To allow joining via a specific device set the friendly_name in the device property. E.g. {"value": true, "device": "my_bulb"}.

Is the “device”: “my_bulb” saying that you can pass the name when calling the permit_join endpoint?

Not 100% sure what your asking.

The above is not naming the new device being added. The new device will still be joined with the ieee address as the default name.

It is permitting new devices to join the network via the specific router device “my_bulb” and no other router.

Functionally the same as selecting “my_bulb” via the permit join drop-down in the z2m frontend.

@jerrm

Not 100% sure what your asking.

I’m asking how to rename a new device during the join process, instead of the new device getting the IEEE name, then renaming.

Thanks for explaining for me!