Skip to content

Commit

Permalink
fix wrong unit in TotalBytes (openhab#9954)
Browse files Browse the repository at this point in the history
Signed-off-by: Jan N. Klug <[email protected]>
  • Loading branch information
J-N-K authored and thinkingstone committed Nov 7, 2021
1 parent 8478a79 commit 7322461
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions bundles/org.openhab.binding.tr064/README.md
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
@@ -173,13 +173,13 @@
<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"/>

0 comments on commit 7322461

Please sign in to comment.