]> git.basschouten.com Git - openhab-addons.git/commitdiff
[unifi] Fix PoE port mode for 24V (#13539)
authorHilbrand Bouwkamp <hilbrand@h72.nl>
Thu, 13 Oct 2022 12:34:28 +0000 (14:34 +0200)
committerGitHub <noreply@github.com>
Thu, 13 Oct 2022 12:34:28 +0000 (14:34 +0200)
* [unifi] Fix PoE port mode for 24V

The value UniFi expects is actually pasv24. Tested with different UniFi controller versions.

* [unifi] Added Hilbrand as codeowner to UniFi binding

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
CODEOWNERS
bundles/org.openhab.binding.unifi/README.md
bundles/org.openhab.binding.unifi/src/main/resources/OH-INF/config/config.xml
bundles/org.openhab.binding.unifi/src/main/resources/OH-INF/i18n/unifi.properties
bundles/org.openhab.binding.unifi/src/main/resources/OH-INF/thing/thing-types.xml

index b556fa80c4123ced7ab042a9169ffb6ba4c07685..5b91214dddf24d43ca4b5a14eb265ad4861e856c 100644 (file)
 /bundles/org.openhab.binding.tr064/ @openhab/add-ons-maintainers
 /bundles/org.openhab.binding.tradfri/ @cweitkamp @kaikreuzer
 /bundles/org.openhab.binding.twitter/ @computergeek1507
-/bundles/org.openhab.binding.unifi/ @mgbowman
+/bundles/org.openhab.binding.unifi/ @mgbowman @Hilbrand
 /bundles/org.openhab.binding.unifiedremote/ @GiviMAD
 /bundles/org.openhab.binding.upb/ @marcusb
 /bundles/org.openhab.binding.upnpcontrol/ @mherwege
index 3135eeed7ab1736e0c864d0edd9f891635eec8ae..10cdc3782aaecc268d0c914d9f285436f8bb741b 100644 (file)
@@ -199,15 +199,15 @@ Sending `ON` to this channel will trigger a reconnect via the controller.
 
 The `poePort` information that is retrieved is available as these channels:
 
-| Channel ID | Item Type                | Description                                        | Permissions |
-|------------|--------------------------|----------------------------------------------------|-------------|
-| online     | Switch                   | Online status of the port                          | Read        |
-| mode       | Selection                | Select the PoE mode: off, auto, 24v or passthrough | Read, Write |
-| enable     | Switch                   | Enable Power over Ethernet                         | Read, Write |
-| cmd        | String                   | Command channel: `power-cycle`: Power Cycle port   | Write       |
-| power      | Number:Power             | Power consumption of the port in Watt              | Read        |
-| voltage    | Number:ElectricPotential | Voltage of the port in Volt                        | Read        |
-| current    | Number:ElectricCurrent   | Current used by the port in mA                     | Read        |
+| Channel ID | Item Type                | Description                                           | Permissions |
+|------------|--------------------------|-------------------------------------------------------|-------------|
+| online     | Switch                   | Online status of the port                             | Read        |
+| mode       | Selection                | Select the PoE mode: off, auto, pasv24 or passthrough | Read, Write |
+| enable     | Switch                   | Enable Power over Ethernet                            | Read, Write |
+| cmd        | String                   | Command channel: `power-cycle`: Power Cycle port      | Write       |
+| power      | Number:Power             | Power consumption of the port in Watt                 | Read        |
+| voltage    | Number:ElectricPotential | Voltage of the port in Volt                           | Read        |
+| current    | Number:ElectricCurrent   | Current used by the port in mA                        | Read        |
 
 The `enable` switch channel has a configuration parameter `mode` which is the value used to switch PoE on when the channel is switched to ON.
 The default mode value is `auto`.
index c09f56e78090e9e285485a7f1379b463ba5c5ebc..1d5cc7881ae2b4b54fe5c531a92d720ebe74d94e 100644 (file)
@@ -84,7 +84,7 @@
                        <description>The value to set when setting PoE on.</description>
                        <options>
                                <option value="auto">Auto</option>
-                               <option value="24v">24V</option>
+                               <option value="pasv24">24V</option>
                                <option value="passthrough">Passthrough</option>
                        </options>
                        <default>auto</default>
index cc8e3d5c076706476964ecfa760eac87100c824f..dd5f1bf1e19cfdcc10fff87752d970e3301de727 100644 (file)
@@ -82,7 +82,7 @@ channel-type.unifi.poeMode.label = PoE Mode
 channel-type.unifi.poeMode.description = The PoE mode the port is in
 channel-type.unifi.poeMode.state.option.off = Off
 channel-type.unifi.poeMode.state.option.auto = Auto
-channel-type.unifi.poeMode.state.option.24v = 24V
+channel-type.unifi.poeMode.state.option.pasv24 = 24V
 channel-type.unifi.poeMode.state.option.passthrough = Passthrough
 channel-type.unifi.poePower.label = Port PoE Power
 channel-type.unifi.poePower.description = Power usage of the PoE port
@@ -127,7 +127,7 @@ channel-type.unifi.wpaMode.description = WPA Mode of the Wi-Fi network
 channel-type.config.unifi.poeEnable.mode.label = On Mode
 channel-type.config.unifi.poeEnable.mode.description = The value to set when setting PoE on.
 channel-type.config.unifi.poeEnable.mode.option.auto = Auto
-channel-type.config.unifi.poeEnable.mode.option.24v = 24V
+channel-type.config.unifi.poeEnable.mode.option.pasv24v = 24V
 channel-type.config.unifi.poeEnable.mode.option.passthrough = Passthrough
 
 # status messages
index 40f70b3182813194bbaf4b6f62ecfbc76ac47deb..c325c51656743a24b307ed1848b6a7020303f5b4 100644 (file)
                        <options>
                                <option value="off">Off</option>
                                <option value="auto">Auto</option>
-                               <option value="24v">24V</option>
+                               <option value="pasv24">24V</option>
                                <option value="passthrough">Passthrough</option>
                        </options>
                </state>