<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>UniFi on Wael Nasreddine</title><link>https://risala.pages.dev/tags/unifi/</link><description>Recent content in UniFi on Wael Nasreddine</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://risala.pages.dev/tags/unifi/index.xml" rel="self" type="application/rss+xml"/><item><title>UniFi - Adopt a disconnected device</title><link>https://risala.pages.dev/posts/unifi-adopt-disconnected-device/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://risala.pages.dev/posts/unifi-adopt-disconnected-device/</guid><description>&lt;h2 id="problem"&gt;&#10; Problem&#10; &lt;a class="heading-link" href="#problem"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;A device is shown offline even though it was adopted in the past. This has happened to me when I changed the IP of the UniFi Network Controller.&lt;/p&gt;&#10;&lt;h2 id="solution"&gt;&#10; Solution&#10; &lt;a class="heading-link" href="#solution"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;SSH into the USG device and run the following command&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;set-inform http://192.168.50.11:8080/inform&#10;&lt;/code&gt;&lt;/pre&gt;&#10;&lt;h3 id="adoption-failed-and-the-device-is-still-disconnected"&gt;&#10; Adoption failed, and the device is still disconnected&#10; &lt;a class="heading-link" href="#adoption-failed-and-the-device-is-still-disconnected"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h3&gt;&#10;&lt;p&gt;You should try to &lt;a href="https://risala.pages.dev/posts/unifi-reset-device/" &gt;UniFi - Reset Device&lt;/a&gt;, and then re-adopt the device from the UI.&lt;/p&gt;</description></item><item><title>UniFi - Device Adoption</title><link>https://risala.pages.dev/posts/unifi-device-adoption/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://risala.pages.dev/posts/unifi-device-adoption/</guid><description>&lt;h2 id="introduction"&gt;&#10; Introduction&#10; &lt;a class="heading-link" href="#introduction"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;Adoption is the process of connecting a device to the UniFi application that will manage it. All UniFi Access Points (APs), cameras, phones, and other devices (excluding consoles) are designed to make the adoption process as simple as possible.&lt;/p&gt;&#10;&lt;h2 id="how-to-adopt-a-device"&gt;&#10; How to Adopt a Device&#10; &lt;a class="heading-link" href="#how-to-adopt-a-device"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;If you have not yet done so, &lt;a href="https://help.ui.com/hc/en-us/articles/4416276882327" class="external-link" target="_blank" rel="noopener"&gt;set up UniFi&lt;/a&gt;. We recommend a &lt;a href="https://ui.com/consoles" class="external-link" target="_blank" rel="noopener"&gt;UniFi Cloud Gateway&lt;/a&gt; for the simplest, most streamlined experience.&lt;/li&gt;&#10;&lt;li&gt;Connect the UniFi device to a PoE power source on the same network as the UniFi Console. &lt;/li&gt;&#10;&lt;li&gt;Sign in to the &lt;a href="http://unifi.ui.com/" class="external-link" target="_blank" rel="noopener"&gt;UniFi Site Manager&lt;/a&gt; in a web browser, or use the UniFi Mobile App (&lt;a href="https://apps.apple.com/us/app/unifi-network/id1057750338" class="external-link" target="_blank" rel="noopener"&gt;iOS&lt;/a&gt; / &lt;a href="https://play.google.com/store/apps/details?id=com.ubnt.easyunifi&amp;amp;hl=en_US&amp;amp;gl=US" class="external-link" target="_blank" rel="noopener"&gt;Android&lt;/a&gt;) to adopt the device.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;h2 id="adoption-troubleshooting"&gt;&#10; Adoption Troubleshooting&#10; &lt;a class="heading-link" href="#adoption-troubleshooting"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;If you are having trouble adopting a UniFi device, follow the relevant steps below.&lt;/p&gt;</description></item><item><title>UniFI - Get Current Value of set-inform</title><link>https://risala.pages.dev/posts/unifi-get-current-values-of-set-inform/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://risala.pages.dev/posts/unifi-get-current-values-of-set-inform/</guid><description>&lt;h2 id="problem"&gt;&#10; Problem&#10; &lt;a class="heading-link" href="#problem"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;I need to get the current value of set-inform on my USG.&lt;/p&gt;&#10;&lt;h2 id="solution"&gt;&#10; Solution&#10; &lt;a class="heading-link" href="#solution"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;SSH Into USG and run the command&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;info&#10;&lt;/code&gt;&lt;/pre&gt;&#10;&lt;p&gt;and look for the line &lt;code&gt;Status&lt;/code&gt;.&lt;/p&gt;&#10;&lt;p&gt;Example&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;admin@ubnt:~$ info&#10;&#10;Model: UniFi-Gateway-4&#10;Version: 4.4.57.5578372&#10;MAC Address: 74:83:c2:1f:10:4d&#10;IP Address: 73.220.150.111&#10;Hostname: ubnt&#10;Uptime: 179455 seconds&#10;&#10;Status: Unknown[11] (http://192.168.50.11:8080/inform)&#10;&lt;/code&gt;&lt;/pre&gt;&#10;&lt;h2 id="related"&gt;&#10; Related&#10; &lt;a class="heading-link" href="#related"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;a href="https://risala.pages.dev/posts/unifi-adopt-disconnected-device/" &gt;UniFi - Adopt a disconnected device&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://risala.pages.dev/posts/unifi-reset-device/" &gt;UniFi - Reset Device&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ul&gt;</description></item><item><title>UniFi - Remote Adoption (Layer 3)</title><link>https://risala.pages.dev/posts/unifi-remote-adoption-layer-3/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://risala.pages.dev/posts/unifi-remote-adoption-layer-3/</guid><description>&lt;h2 id="introduction"&gt;&#10; Introduction&#10; &lt;a class="heading-link" href="#introduction"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;Layer 3 adoption is the process of adopting a UniFi device to a remote or cloud-hosted UniFi Network Application. This is only recommended for advanced users, or those adopting devices when using Official UniFi Hosting.&lt;/p&gt;&#10;&lt;p&gt;&lt;em&gt;&lt;strong&gt;Note:&lt;/strong&gt; Refer to&lt;/em&gt; &lt;a href="https://risala.pages.dev/posts/unifi-device-adoption/" &gt;UniFi - Device Adoption&lt;/a&gt; &lt;em&gt;if you are unsure whether you require remote adoption.&lt;/em&gt;&lt;/p&gt;&#10;&lt;h2 id="requirements"&gt;&#10; Requirements&#10; &lt;a class="heading-link" href="#requirements"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;The UniFi device and the UniFi Network Application must have unrestricted connectivity over TCP Port 8080.&lt;/p&gt;</description></item><item><title>UniFi - Reset Device</title><link>https://risala.pages.dev/posts/unifi-reset-device/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://risala.pages.dev/posts/unifi-reset-device/</guid><description>&lt;h2 id="problem"&gt;&#10; Problem&#10; &lt;a class="heading-link" href="#problem"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;I need to reset a UniFi device, maybe it's failing adoption or it became unresponsive.&lt;/p&gt;&#10;&lt;h2 id="solution"&gt;&#10; Solution&#10; &lt;a class="heading-link" href="#solution"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;SSH into the UniFi Device and type in &lt;code&gt;set-default&lt;/code&gt;&lt;/p&gt;&#10;&lt;div class="notice info"&gt;&#10; &lt;div class="notice-title"&gt;&#10; &lt;i class="fa-solid fa-exclamation-circle" aria-hidden="true"&gt;&lt;/i&gt;Important&#10; &lt;/div&gt;&#10; &lt;div class="notice-content"&gt;&lt;p&gt;Running &lt;code&gt;set-default&lt;/code&gt; &lt;strong&gt;immediately reset the device&lt;/strong&gt; and restarts it. It &lt;strong&gt;does not ask for confirmation&lt;/strong&gt;.&lt;/p&gt;&lt;/div&gt;&#10;&lt;/div&gt;&lt;h2 id="related"&gt;&#10; Related&#10; &lt;a class="heading-link" href="#related"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;a href="https://risala.pages.dev/posts/unifi-adopt-disconnected-device/" &gt;UniFi - Adopt a disconnected device&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="#root/88by0rAa9rWp" &gt;Everything UniFi&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ul&gt;</description></item><item><title>UniFi - Troubleshooting - Failed to save network</title><link>https://risala.pages.dev/posts/unifi-failed-to-save-network/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://risala.pages.dev/posts/unifi-failed-to-save-network/</guid><description>&lt;h2 id="problem"&gt;&#10; Problem&#10; &lt;a class="heading-link" href="#problem"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;I was trying to make a change to one of the Networks from the UniFi Controller, and I was unable to save the settings due to the following error:&lt;/p&gt;&#10;&lt;p&gt;&lt;img src="unifi-failed-to-save-network_Screenshot-2025-05-25-at-00.03.59.png" alt="Screenshot 2025-05-25 at 00.03.59.png"&gt;&lt;/p&gt;&#10;&lt;p&gt;I managed to grabbed the response from the Developer Tools, Network tab:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-json" data-lang="json"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;{&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;meta&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;rc&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;error&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;msg&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;api.err.InvalidPayload&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;},&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;data&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;{&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;validationError&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;field&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;wan_gateway&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;pattern&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;},&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;rc&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;error&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;msg&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;api.err.InvalidValue&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;}&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;]&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;}&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;It seems the issue is in the &lt;code&gt;wan_gateway&lt;/code&gt; is not valid, and sure enough looking at the payload request (trimmed to relevant part), it's empty:&lt;/p&gt;</description></item></channel></rss>