]> git.basschouten.com Git - openhab-addons.git/commitdiff
fix wrong unit in TotalBytes (#9954)
authorJ-N-K <J-N-K@users.noreply.github.com>
Mon, 25 Jan 2021 20:26:01 +0000 (21:26 +0100)
committerGitHub <noreply@github.com>
Mon, 25 Jan 2021 20:26:01 +0000 (21:26 +0100)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
bundles/org.openhab.binding.tr064/README.md
bundles/org.openhab.binding.tr064/src/main/resources/channels.xml

index daa270a635f46d8633c73c44dde66f74efa7fc93..e9b97d90fce462cbfa49213a1e18ff12f049e542 100644 (file)
@@ -158,6 +158,8 @@ In this case you have to use the `wifi5GHzEnable` channel for switching the gues
 | `wanTotalBytesReceived`    | `Number:DataAmount`       |     x    | Total Bytes Received                                           |
 | `wanTotalBytesSent`        | `Number:DataAmount`       |     x    | Total Bytes Sent                                               |
  
+**Note:** AVM Fritzbox devices use 4-byte-unsigned-integers for `wanTotalBytesReceived` and `wanTotalBytesSent`, because of that the counters are reset after around 4GB data.
+
 ## `PHONEBOOK` Profile
 
 The binding provides a profile for using the FritzBox phonebooks for resolving numbers to names.
index 7894074225d30058fdacc3d038afbaa89bc89765..ba7ff1b7e9708862e3da4eada887b8da0bb3792d 100644 (file)
                <getAction name="GetCommonLinkProperties" argument="NewLayer1UpstreamMaxBitRate"/>
        </channel>
        <channel name="wanTotalBytesReceived" label="Total Bytes Received">
-               <item type="Number:DataAmount" unit="B" statePattern="%.3f Gio"/>
+               <item type="Number:DataAmount" unit="B" statePattern="%.3f GB"/>
                <service deviceType="urn:dslforum-org:device:WANDevice:1"
                        serviceId="urn:WANCIfConfig-com:serviceId:WANCommonInterfaceConfig1"/>
                <getAction name="GetTotalBytesReceived" argument="NewTotalBytesReceived"/>
        </channel>
        <channel name="wanTotalBytesSent" label="Total Bytes Sent">
-               <item type="Number:DataAmount" unit="B" statePattern="%.3f Gio"/>
+               <item type="Number:DataAmount" unit="B" statePattern="%.3f GB"/>
                <service deviceType="urn:dslforum-org:device:WANDevice:1"
                        serviceId="urn:WANCIfConfig-com:serviceId:WANCommonInterfaceConfig1"/>
                <getAction name="GetTotalBytesSent" argument="NewTotalBytesSent"/>