Speedtest.net integration shows different results than speedtest-cli
See original GitHub issueThe problem
Results of the speedtest.net integration in HA is consistantly higher than results obtained on speedtest.net website as well as on speedtest-cli on the same system that is running Home Assistant, especially the ping results. Example results below: The entity state
entity_id: sensor.speedtest_ping
state: 11.922
attribution: Data retrieved from Speedtest.net by Ookla
server_name: Warsaw
server_country: Poland
server_id: '4166'
unit_of_measurement: ms
friendly_name: SpeedTest Ping
entity_id: sensor.speedtest_download
state: 536.93
attribution: Data retrieved from Speedtest.net by Ookla
server_name: Warsaw
server_country: Poland
server_id: '4166'
bytes_received: 409373932
unit_of_measurement: Mbit/s
friendly_name: SpeedTest Download
and when running the speedtest-cli on the same server:
speedtest -s 4166
Speedtest by Ookla
Server: Orange Polska S.A. - Warsaw (id = 4166)
ISP: Orange Swiatlowod
Latency: 6.66 ms (0.87 ms jitter)
Download: 628.61 Mbps (data used: 533.5 MB)
Upload: 107.72 Mbps (data used: 192.7 MB)
Packet Loss: 0.0%
Result URL: https://www.speedtest.net/result/c/384e9f3b-32a9-4ef6-b42f-234f9d77833a
This was not the case several HA versions ago but I did not capture when exactly this has changed.
What is version of Home Assistant Core has the issue?
core-2021.04.4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Core
Integration causing the issue
speedtestdotnet
Link to integration documentation on our website
https://www.home-assistant.io/integrations/speedtestdotnet/
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:21 (1 by maintainers)
Top Results From Across the Web
Speedtest-cli and website produce completely different results
Hello! I noticed that speedtest-cli-2.1.3-2 and speedtest.net produce completely different results. I tried rebooting the router, ...
Read more >CLI Speedtest vs Web Browser Speedtest - Why Different?
Here is the result of speedtest from a CLI, it appears to show that the pcie ethernet adapter is working at the full...
Read more >Speedtest.net integration showing wildly slower speeds than ...
speedtest service in HA and configure to run against a specific server. That pulled in a download of 352Mbps. I then immediately ran...
Read more >Very different Speedtest Results in browser and CLI : r/homelab
I know the browser speed test is not as accurate once you go over about 200. The desktop application gets more accurate to...
Read more >Speedtest CLI by Ookla - Internet Up-/Downlink Measurement ...
Fully supported by Ookla with the latest speedtest technology for best results · Output of a timestamp instead of the own timestamp by...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For anyone interested in better speedtest results in HA I have created a solution that runs the official CLI in a container and publishes results to HA via MQTT with autodiscovery. No configuration on HA side needed. The only thing is to configure your MQTT broker and some other parameters (e.g. a server which you want to use). Here it is: https://hub.docker.com/rep…/docker/adorobis/speedtest2mqtt and here the repo: https://github.com/adorobis/speedtest-CLI2mqtt Feel free to commend and contribute :slight_smile:
For me this integration is not really usable. The results vary wildly in relation to the offical cli, even testing inside my docker image. Not only that, some servers just don’t show up, even if they are showing up using the cli. Would not be the case to create a integration arround the official cli? I saw many people on forums trying to do this, but again I come to unecessary hassle, when the better solution is to improve here.