From f164f71fd04ef93ea5c840376ef5a3b3b15ce006 Mon Sep 17 00:00:00 2001 From: J-N-K Date: Sun, 14 Apr 2024 09:33:01 +0200 Subject: [PATCH] [tr064] Enable fourth WiFi channel and improvements (#16650) Signed-off-by: Jan N. Klug --- bundles/org.openhab.binding.tr064/README.md | 16 +++++--- .../src/main/resources/channels.xml | 37 +++++++++++++++++-- 2 files changed, 45 insertions(+), 8 deletions(-) diff --git a/bundles/org.openhab.binding.tr064/README.md b/bundles/org.openhab.binding.tr064/README.md index 4b832c4898..90f67aeef5 100644 --- a/bundles/org.openhab.binding.tr064/README.md +++ b/bundles/org.openhab.binding.tr064/README.md @@ -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 diff --git a/bundles/org.openhab.binding.tr064/src/main/resources/channels.xml b/bundles/org.openhab.binding.tr064/src/main/resources/channels.xml index 7db46f24e9..e7e6c2d7ee 100644 --- a/bundles/org.openhab.binding.tr064/src/main/resources/channels.xml +++ b/bundles/org.openhab.binding.tr064/src/main/resources/channels.xml @@ -117,27 +117,58 @@ - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.47.3