openhab-addons/bundles/org.openhab.binding.unifi/src/main/resources/OH-INF/config/config.xml
Hilbrand Bouwkamp dec6483e2c
[unifi] New site, wlan, wiredClient, and poePort. Discovery support (#11959)
* [unifi] New wiredClient and poePort, Discovery support

This change adds the following changes:
- 2 new things: a wired client and POE port.
- Adds discovery of clients and poePort.
- Adds guest channel to client thing.
Also included some refactoring and bug fixes.

This change includes changes made by Matthew Bowman that he created on his own branch but were never completed.

Closes #9609: Implemented async http call, which should fix the buffer overflow.
Closes #10375: At least should avoid the stack overflow.
Closes #11964: cid will be handled in lower case.

* Removed type from UniFiCache constructor

It's redundant and only used for logging.

* Added UniFi Site and wLAN things

* Improved default state handling

Updated refresh/state update, to also update when no data available.
Simplified usage of cache: call cache directly instead of implicit via controller class.
Made getDefaultState generic to all things, and simplified passing channelId instead of channelUID to sub methods.

* Moved dto objects to dto package.

* Added support for client experience

* Made fields private

No need to have them protected.

* Added PoE power-cycle command

Also added wireless client as command as this better fits with the openHAB model to handle commands that are only one way and not have a state.

* Updated readme

* [unifi] Added client/guest count to wlan

* Fix QRcode construction and added hidden ssid support in qrcode string

Also-by: Matthew Bowman <mgb@otr.mx>
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
Co-authored-by: Matthew Bowman <mgb@otr.mx>
2022-05-16 23:14:00 +02:00

95 lines
3.7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<config-description:config-descriptions
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:config-description="https://openhab.org/schemas/config-description/v1.0.0"
xsi:schemaLocation="https://openhab.org/schemas/config-description/v1.0.0 https://openhab.org/schemas/config-description-1.0.0.xsd">
<config-description uri="thing-type:unifi:controller">
<parameter name="host" type="text" required="true">
<label>Hostname</label>
<description>Hostname of IP address of the UniFi Controller</description>
<default>unifi</default>
<context>network-address</context>
</parameter>
<parameter name="port" type="integer" max="65535" min="1" required="false">
<label>Port</label>
<description>Port of the UniFi Controller</description>
<default>8443</default>
</parameter>
<parameter name="unifios" type="boolean" required="true">
<label>UniFi OS</label>
<description>If the UniFi Controller is running on UniFi OS.</description>
<default>false</default>
</parameter>
<parameter name="username" type="text" required="true">
<label>Username</label>
<description>The username to access the UniFi Controller.</description>
</parameter>
<parameter name="password" type="text" required="true">
<label>Password</label>
<description>The password to access the UniFi Controller.</description>
<context>password</context>
</parameter>
<parameter name="refresh" type="integer" required="false" unit="s">
<label>Refresh Interval</label>
<description>The refresh interval in seconds to poll the UniFi controller</description>
<default>10</default>
</parameter>
</config-description>
<config-description uri="thing-type:unifi:site">
<parameter name="sid" type="text" required="true">
<label>Site Id</label>
<description>The id, name or description of the site</description>
</parameter>
</config-description>
<config-description uri="thing-type:unifi:wlan">
<parameter name="wid" type="text" required="true">
<label>WLAN Id</label>
<description>The id or name of the wlan</description>
</parameter>
</config-description>
<config-description uri="thing-type:unifi:client">
<parameter name="cid" type="text" required="true">
<label>Client ID</label>
<description>The MAC address, IP address, hostname or alias of the client</description>
</parameter>
<parameter name="site" type="text" required="false">
<label>Site</label>
<description>The site where the client should be found (optional)</description>
</parameter>
<parameter name="considerHome" type="integer" required="false" unit="s">
<label>Consider Home Interval</label>
<description>The interval in seconds to consider the client as home</description>
<default>180</default>
</parameter>
</config-description>
<config-description uri="thing-type:unifi:poePort">
<parameter name="portNumber" type="integer" required="true">
<label>Port Number</label>
<description>The number of the port as reported by the UniFi switch</description>
</parameter>
<parameter name="macAddress" type="text" required="true">
<label>Switch MAC Address</label>
<description>The MAC address of the switch this port is part of</description>
</parameter>
</config-description>
<config-description uri="channel-type:unifi:poeEnable">
<parameter name="mode" type="text">
<label>On Mode</label>
<description>The value to set when setting PoE on.</description>
<options>
<option value="auto">Auto</option>
<option value="24v">24V</option>
<option value="passthrough">Passthrough</option>
</options>
<default>auto</default>
</parameter>
</config-description>
</config-description:config-descriptions>