]> git.basschouten.com Git - openhab-addons.git/commitdiff
[tr064] Enable fourth WiFi channel and improvements (#16650)
authorJ-N-K <github@klug.nrw>
Sun, 14 Apr 2024 07:33:01 +0000 (09:33 +0200)
committerGitHub <noreply@github.com>
Sun, 14 Apr 2024 07:33:01 +0000 (09:33 +0200)
Signed-off-by: Jan N. Klug <github@klug.nrw>
bundles/org.openhab.binding.tr064/README.md
bundles/org.openhab.binding.tr064/src/main/resources/channels.xml

index 4b832c4898641a62edeb632903490dbe7675dd3f..90f67aeef52f175876ad52ec09aa3df9afac248a 100644 (file)
@@ -130,17 +130,23 @@ The call-types are the same as provided by the FritzBox, i.e. `1` (inbound), `2`
 
 | channel              | item-type                 | advanced | description                                                                                                  |
 |----------------------|---------------------------|:--------:|--------------------------------------------------------------------------------------------------------------|
-| `wifi24GHzEnable`    | `Switch`                  |          | Enable/Disable the 2.4 GHz WiFi device.                                                                      |
-| `wifi5GHzEnable`     | `Switch`                  |          | Enable/Disable the 5.0 GHz WiFi device.                                                                      |
-| `wifiGuestEnable`    | `Switch`                  |          | Enable/Disable the guest WiFi.                                                                               |
+| `wifi24GHzEnable`    | `Switch`                  |          | Enable/Disable the 2.4 GHz WiFi device. Deprecated for removal. Use `wifi1Enable`.                           |
+| `wifi5GHzEnable`     | `Switch`                  |          | Enable/Disable the 5.0 GHz WiFi device. Deprecated for removal. Use `wifi2Enable`.                           |
+| `wifiGuestEnable`    | `Switch`                  |          | Enable/Disable the guest WiFi. Deprecated for removal. Use `wifi3Enable`.                                    |
+| `wifiXEnable`        | `Switch`                  |          | Enable/Disable the WiFi X. See below for details.                                                            |
 | `macOnline`          | `Switch`                  |    x     | Online status of the device with the given MAC                                                               |
 | `macOnlineIpAddress` | `String`                  |    x     | IP of the MAC (uses same parameter as `macOnline`)                                                           |
 | `macSignalStrength1` | `Number`                  |    x     | Wifi Signal Strength of the device with the given MAC. This is set in case the Device is connected to 2.4Ghz |
 | `macSpeed1`          | `Number:DataTransferRate` |    x     | Wifi Speed of the device with the given MAC. This is set in case the Device is connected to 2.4Ghz           |
 | `macSignalStrength2` | `Number`                  |    x     | Wifi Signal Strength of the device with the given MAC. This is set in case the Device is connected to 5Ghz   |
 | `macSpeed2`          | `Number:DataTransferRate` |    x     | Wifi Speed of the device with the given MAC. This is set in case the Device is connected to 5Ghz             |
-Older FritzBox devices may not support 5 GHz WiFi.
-In this case you have to use the `wifi5GHzEnable` channel for switching the guest WiFi.
+
+***Note:*** The `wifi24GHzEnable`, `wifi5GHzEnable` and `wifiGuestEnable`channels have been deprecated and will be removed in future versions.
+They are replaced by `wifiXEnable` (with `X` being a number between `1` and `4`).
+
+- FritzBoxes which do not support 5 GHz use `wifi1Enable` for the standard WiFi and `wifi2Enable`for the guest WiFi.
+- FritzBoxes which support 5 GHz use `wifi1Enable` for the 2.5 GHz WiFi, `wifi2Enable` for the 5 GHz WiFi and `wifi3Enable` for the guest WiFi.
+- FritzBoxes which support two 5 GHz networks use `wifi1Enable` for the 2.5 GHz WiFi, `wifi2Enable` and `wifi3Enable` for the 5 GHz WiFis and `wifi4Enable` for the guest WiFi.
 
 ### WANConnection `subdevice` channels
 
index 7db46f24e9f21c3b7e20995c2681d9536a2e8681..e7e6c2d7ee267de8cace9f10217f2673a69bb793 100644 (file)
        </channel>
 
        <!-- LAN Device -->
-       <channel name="wifi24GHzEnable" label="WiFi 2.4 GHz" description="Enable/Disable the 2.4 GHz WiFi device.">
+       <channel name="wifi24GHzEnable" label="WiFi 2.4 GHz (DEPRECATED)"
+               description="Enable/Disable the 2.4 GHz WiFi device. Please re-link to wifi1Enable.">
                <item type="Switch"/>
                <service deviceType="urn:dslforum-org:device:LANDevice:1"
                        serviceId="urn:WLANConfiguration-com:serviceId:WLANConfiguration1"/>
                <getAction name="GetInfo" argument="NewEnable"/>
                <setAction name="SetEnable" argument="NewEnable"/>
        </channel>
-       <channel name="wifi5GHzEnable" label="WiFi 5 GHz" description="Enable/Disable the 5.0 GHz WiFi device.">
+       <channel name="wifi5GHzEnable" label="WiFi 5 GHz (DEPRECATED)"
+               description="Enable/Disable the 5.0 GHz WiFi device.  Please re-link to wifi2Enable.">
                <item type="Switch"/>
                <service deviceType="urn:dslforum-org:device:LANDevice:1"
                        serviceId="urn:WLANConfiguration-com:serviceId:WLANConfiguration2"/>
                <getAction name="GetInfo" argument="NewEnable"/>
                <setAction name="SetEnable" argument="NewEnable"/>
        </channel>
-       <channel name="wifiGuestEnable" label="WiFi Guest" description="Enable/Disable the guest WiFi.">
+       <channel name="wifiGuestEnable" label="WiFi Guest (DEPRECATED)"
+               description="Enable/Disable the guest WiFi. Please re-link to wifi3Enable.">
                <item type="Switch"/>
                <service deviceType="urn:dslforum-org:device:LANDevice:1"
                        serviceId="urn:WLANConfiguration-com:serviceId:WLANConfiguration3"/>
                <getAction name="GetInfo" argument="NewEnable"/>
                <setAction name="SetEnable" argument="NewEnable"/>
        </channel>
+       <channel name="wifi1Enable" label="WiFi #1" description="Enable/Disable WiFi #1.">
+               <item type="Switch"/>
+               <service deviceType="urn:dslforum-org:device:LANDevice:1"
+                       serviceId="urn:WLANConfiguration-com:serviceId:WLANConfiguration1"/>
+               <getAction name="GetInfo" argument="NewEnable"/>
+               <setAction name="SetEnable" argument="NewEnable"/>
+       </channel>
+       <channel name="wifi2Enable" label="WiFi #2" description="Enable/Disable WiFi #2.">
+               <item type="Switch"/>
+               <service deviceType="urn:dslforum-org:device:LANDevice:1"
+                       serviceId="urn:WLANConfiguration-com:serviceId:WLANConfiguration2"/>
+               <getAction name="GetInfo" argument="NewEnable"/>
+               <setAction name="SetEnable" argument="NewEnable"/>
+       </channel>
+       <channel name="wifi3Enable" label="WiFi #3" description="Enable/Disable WiFi #3.">
+               <item type="Switch"/>
+               <service deviceType="urn:dslforum-org:device:LANDevice:1"
+                       serviceId="urn:WLANConfiguration-com:serviceId:WLANConfiguration3"/>
+               <getAction name="GetInfo" argument="NewEnable"/>
+               <setAction name="SetEnable" argument="NewEnable"/>
+       </channel>
+       <channel name="wifi4Enable" label="WiFi #4" description="Enable/Disable WiFi #4.">
+               <item type="Switch"/>
+               <service deviceType="urn:dslforum-org:device:LANDevice:1"
+                       serviceId="urn:WLANConfiguration-com:serviceId:WLANConfiguration4"/>
+               <getAction name="GetInfo" argument="NewEnable"/>
+               <setAction name="SetEnable" argument="NewEnable"/>
+       </channel>
        <channel name="macOnline" label="MAC Online" description="Online status of the device with the given MAC"
                advanced="true">
                <item type="Switch"/>