core icon indicating copy to clipboard operation
core copied to clipboard

Upnp/IGD total bytes sent wraps at 32bits

Open dala318 opened this issue 3 years ago • 1 comments
trafficstars

The problem

The counter for bytes sent and received seem to wrap at 32 bits from my OpenWRT router, not sure it's the same for all router software or just for OpenWRT. The result is that the value is kind of useless as it behaves. Have tried some templates to handle the wrapping but not succeeded yet.

image

What version of Home Assistant Core has the issue?

core-2022.8.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

upnp

Link to integration documentation on our website

https://www.home-assistant.io/integrations/upnp/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

dala318 avatar Aug 09 '22 16:08 dala318

Hey there @stevenlooman, @ehendrix23, mind taking a look at this issue as it has been labeled with an integration (upnp) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)


upnp documentation upnp source (message by IssueLinks)

Thank you for the issue @dala318. This is exactly the intended behavior as specified by the UPnP/IGD specs. See WANCommonInterfaceConfig description, section 2.2.10. TotalBytesReceived.

The sensors which report the (kilo)bytes/sec do handle the overflow, although these will be removed in the future as integrations should only provide "direct" sensors.

StevenLooman avatar Aug 10 '22 17:08 StevenLooman