Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unifi: bandwidth entity is actually accumulated transfer #56462

Closed
joejulian opened this issue Sep 20, 2021 · 4 comments · Fixed by #64701
Closed

unifi: bandwidth entity is actually accumulated transfer #56462

joejulian opened this issue Sep 20, 2021 · 4 comments · Fixed by #64701
Assignees

Comments

@joejulian
Copy link

The problem

Currently, the bandwidth fields are populated from tx_bytes and rx_bytes, but these are total transfers for the node, not bandwidth usage. The bandwidth fields are tx_bytes-r and rx_bytes-r respectively.

What is version of Home Assistant Core has the issue?

2021.8.0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

unifi

Link to integration documentation on our website

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

Example YAML snippet

No response

Anything in the logs that might be useful for us?

This is the response from the unifi api where tx_bytes-r/rx_bytes-r is the bandwidth usage in bytes per second,

{
	"data": [
		{
			"_id": "60240dcc5af79d0031658a61",
			"mac": "c8:58:c0:3e:26:9b",
			"site_id": "5283bc18e4b005094cdac393",
			"oui": "",
			"is_guest": false,
			"first_seen": 1612975564,
			"last_seen": 1632155825,
			"is_wired": false,
			"hostname": "ChromeOS-P208TAA4-0148502FXA",
			"blocked": false,
			"assoc_time": 1632149916,
			"latest_assoc_time": 1632149917,
			"user_id": "60240dcc5af79d0031658a61",
			"_uptime_by_uap": 5909,
			"_last_seen_by_uap": 1632155825,
			"_is_guest_by_uap": false,
			"ap_mac": "18:e8:29:96:9f:70",
			"channel": 56,
			"radio": "na",
			"radio_name": "wifi1",
			"essid": "ESWireless",
			"bssid": "18:e8:29:98:9f:70",
			"powersave_enabled": false,
			"is_11r": true,
			"ccq": 333,
			"rssi": 44,
			"noise": -103,
			"signal": -52,
			"tx_rate": 780000,
			"rx_rate": 866700,
			"tx_power": 44,
			"idletime": 0,
			"ip": "192.168.10.110",
			"dhcpend_time": 5700,
			"satisfaction": 99,
			"anomalies": 0,
			"vlan": 0,
			"radio_proto": "ac",
			"uptime": 5909,
			"tx_bytes": 958150696,
			"rx_bytes": 46396217,
			"tx_packets": 1384893,
			"tx_retries": 56617,
			"wifi_tx_attempts": 1226162,
			"rx_packets": 218580,
			"bytes-r": 224188,
			"tx_bytes-r": 220209,
			"rx_bytes-r": 3978,
			"qos_policy_applied": true
		}
	]
}

Additional information

No response

@probot-home-assistant
Copy link

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


unifi documentation
unifi source
(message by IssueLinks)

@Kane610
Copy link
Member

Kane610 commented Sep 26, 2021

Thanks! I will check it out

@github-actions
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Dec 25, 2021
@joejulian
Copy link
Author

Not stale

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants