Many thanks for the creation of these APIs to work with UNIFI devices. Helps a lot with scripting.
I am trying to understand the use of set_device_settings_base API because I want to change the name property of a device in a site. For example, when I configure the device via the Cloud UI, I can add a device alias in the General tab under device configs.
Then, when I do:
print(client.list_devices_basic())
I see, the alias I added through the Cloud UI appear in the output. Here is an example of before and after changing the device name on CloudUI.
Before changing alias in device Config tab:
I intend to change the name field or add a name if the field does not exist. I think set_device_settings_base seems to be the correct API for it, but I don't seem to be able to figure out the settings payload. I would really appreciate some help here.
Hi there,
Many thanks for the creation of these APIs to work with UNIFI devices. Helps a lot with scripting.
I am trying to understand the use of
set_device_settings_base
API because I want to change thename
property of adevice
in a site. For example, when I configure the device via the Cloud UI, I can add a device alias in the General tab under device configs.Then, when I do:
I see, the alias I added through the Cloud UI appear in the output. Here is an example of before and after changing the device name on CloudUI. Before changing alias in device Config tab:
After changing alias in device Config tab:
I intend to change the
name
field or add aname
if the field does not exist. I thinkset_device_settings_base
seems to be the correct API for it, but I don't seem to be able to figure out thesettings
payload. I would really appreciate some help here.Thanks!