node-red-contrib-unifi-ultimate 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -80,6 +80,9 @@ Things you can do:
80
80
  - Check whether a device or phone is connected to your network.
81
81
  - Re-send the current presence state at a fixed interval with the Presence node's **Resend** field (e.g. to keep a dashboard or home-automation system in sync).
82
82
  - Count how many clients are currently online.
83
+ - List the site's configured networks, Wi-Fi broadcasts, and WAN interfaces.
84
+ - List VPN servers and site-to-site VPN tunnels.
85
+ - List existing guest Wi-Fi vouchers.
83
86
  - Create guest Wi-Fi vouchers.
84
87
  - Read CPU usage, memory, and uptime from a switch or access point.
85
88
  - Read the temperature of a switch (where supported).
@@ -1267,8 +1267,9 @@
1267
1267
  <p><b>Resource</b> chooses what you want to work with: Site, UniFi Device, or Client.</p>
1268
1268
  <p><b>Item</b> chooses the specific site, device, or client. Device and client selectors are searchable and open with the complete list before filtering.</p>
1269
1269
  <p><b>Action</b> only shows actions supported by the selected resource. Additional fields appear only when the selected action needs extra input.</p>
1270
- <p>Action highlights include <code>Count Online Clients</code>, <code>Create Guest Voucher</code>, <code>Read CPU</code>, <code>Read Memory</code>, <code>Read Uptime</code>, <code>Read Temperatures</code>, <code>Is Client Online</code>, <code>Restart Device</code>, and <code>Power Cycle Port</code>.</p>
1270
+ <p>Action highlights include <code>Count Online Clients</code>, <code>List Networks</code>, <code>List Wi-Fi Broadcasts</code>, <code>List WAN Interfaces</code>, <code>List VPN Servers</code>, <code>List Site-to-Site VPN Tunnels</code>, <code>List Guest Vouchers</code>, <code>Create Guest Voucher</code>, <code>Read CPU</code>, <code>Read Memory</code>, <code>Read Uptime</code>, <code>Read Temperatures</code>, <code>Is Client Online</code>, <code>Restart Device</code>, and <code>Power Cycle Port</code>.</p>
1271
1271
  <p><code>Read Application Info</code> is available on the <code>Site</code> resource type and returns Network application metadata.</p>
1272
+ <p>The site list actions return the full API collection in <code>msg.payload</code> for networks, Wi-Fi broadcasts, WAN interfaces, VPN servers, site-to-site VPN tunnels, or guest vouchers. These actions are read-only and can be repeated periodically.</p>
1272
1273
  <p><code>Count Online Clients</code> emits the number of online clients as <code>msg.payload</code>. Full client details are available in <code>msg.details.clients</code> and <code>msg.details.onlineClients</code>.</p>
1273
1274
  <p><code>Create Guest Voucher</code> emits the voucher code as <code>msg.payload</code> when one voucher is created, or an array of codes when more than one is created. Full voucher details are available in <code>msg.details.vouchers</code>.</p>
1274
1275
  <p><code>Read CPU</code>, <code>Read Memory</code>, and <code>Read Uptime</code> emit a single number as <code>msg.payload</code>. Full statistics are available in <code>msg.details.statistics</code>.</p>
@@ -1338,4 +1339,4 @@
1338
1339
  "payload": null,
1339
1340
  "error": { "message": "Request timed out" }
1340
1341
  }</code></pre>
1341
- </script>
1342
+ </script>
@@ -94,6 +94,54 @@ const TYPE_CAPABILITIES = {
94
94
  path: "/v1/sites/{siteId}/clients",
95
95
  mode: "request"
96
96
  },
97
+ {
98
+ id: "listSiteNetworks",
99
+ label: "List Networks",
100
+ description: "Fetch the networks configured for the selected site.",
101
+ method: "GET",
102
+ path: "/v1/sites/{siteId}/networks",
103
+ mode: "request"
104
+ },
105
+ {
106
+ id: "listWifiBroadcasts",
107
+ label: "List Wi-Fi Broadcasts",
108
+ description: "Fetch the Wi-Fi broadcasts configured for the selected site.",
109
+ method: "GET",
110
+ path: "/v1/sites/{siteId}/wifi/broadcasts",
111
+ mode: "request"
112
+ },
113
+ {
114
+ id: "listWanInterfaces",
115
+ label: "List WAN Interfaces",
116
+ description: "Fetch the WAN interfaces configured for the selected site.",
117
+ method: "GET",
118
+ path: "/v1/sites/{siteId}/wans",
119
+ mode: "request"
120
+ },
121
+ {
122
+ id: "listVpnServers",
123
+ label: "List VPN Servers",
124
+ description: "Fetch the VPN servers configured for the selected site.",
125
+ method: "GET",
126
+ path: "/v1/sites/{siteId}/vpn/servers",
127
+ mode: "request"
128
+ },
129
+ {
130
+ id: "listSiteToSiteVpnTunnels",
131
+ label: "List Site-to-Site VPN Tunnels",
132
+ description: "Fetch the site-to-site VPN tunnels configured for the selected site.",
133
+ method: "GET",
134
+ path: "/v1/sites/{siteId}/vpn/site-to-site-tunnels",
135
+ mode: "request"
136
+ },
137
+ {
138
+ id: "listGuestVouchers",
139
+ label: "List Guest Vouchers",
140
+ description: "Fetch the Hotspot guest vouchers for the selected site.",
141
+ method: "GET",
142
+ path: "/v1/sites/{siteId}/hotspot/vouchers",
143
+ mode: "request"
144
+ },
97
145
  {
98
146
  id: "countOnlineClients",
99
147
  label: "Count Online Clients",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-unifi-ultimate",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Node-RED nodes for Ubiquiti UniFi integrations, including UniFi Protect, UniFi Access, and UniFi Network.",
5
5
  "files": [
6
6
  "nodes/",
@@ -38,7 +38,11 @@
38
38
  "ws": "8.20.0"
39
39
  },
40
40
  "license": "MIT",
41
- "author": "Massimo Saccani",
41
+ "author": {
42
+ "name": "Massimo Saccani",
43
+ "email": "maxsupergiovane@icloud.com",
44
+ "url": "https://youtube.com/@maxsupervibe"
45
+ },
42
46
  "homepage": "https://github.com/Supergiovane/node-red-contrib-unifi-ultimate",
43
47
  "repository": {
44
48
  "type": "git",