core icon indicating copy to clipboard operation
core copied to clipboard

Wrong Country

Open nikolas22t opened this issue 3 years ago • 28 comments

Feedback

When i am trying to set a Speedtest server , i only have the option for servers in Turkey although i am in Cyprus and there are many servers in Cyprus. The results from TR servers are low because there is no direct connection from CY providers to TR providers

URL

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

Version

2021.9.0

Additional information

No response

nikolas22t avatar Sep 02 '21 10:09 nikolas22t

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

Hello @nikolas22t , the servers are fetched using the speedtest-cli api. The integration doesn't do any filtering on the list of servers. Just to clarify, were you able to see these servers in a previous version of HA?

engrbm87 avatar Sep 02 '21 10:09 engrbm87

Recently the integration said the server I chose no longer existed. I checked the speed test website and it was still there. I then changed the integration to point at another server. Tonight I updated home assistant and that server also disappeared. The previous one is still missing. Is there a limit of servers it allows you to choose from?

timothygee avatar Sep 03 '21 11:09 timothygee

Ok, so we have the same problem in the netherlands. Speedtest integration has been working well for quite some time, without any problems. I had set up a fixed Dutch test server and the values ​​matched with Ookla on my laptop. At some point I ran an update and then it stopped working. Not available and that's it. The solution was to set the test server back to Auto detect. It worked immediately and without any problems, or so I thought. Now I noticed that the speed regularly drops from 150Mbit to 100Mbit or even 10-20Mbit, for longer periods too. I thought Ziggo was messing around again. BUT, now it turns out that the speed on my laptop via Ookla DOES gives the expected values ​​at the same time! It turns out that speedtest always defaults to servers in Belgium! every time ! I manually put it on a Dutch server and then it stopped working. After reverting to Auto detect, the Dutch servers are completely gone now. I can only select servers in Belgium and a few in France. that explains the lower measured speeds and corresponds quite nicely with what I measure in Ookla when I select a Belgian server. 242450164_10226307656100653_325564461372118935_n 2021-09-21 18_12_32-Instellingen - Home Assistant

MilanGajicBuva avatar Sep 21 '21 19:09 MilanGajicBuva

And "Ok, so we have the same problem in the Hungary." It offers me servers in Slovakia, so I get 10 megabits instead of gigabits. image

kovacsat1 avatar Oct 06 '21 17:10 kovacsat1

Same here. List of servers that the integration allows has nothing to do with what I get from speedtest-cli. Comparison below: CLI:

root@test:~ # speedtest -L
Closest servers:

    ID  Name                           Location             Country
==============================================================================
  9510  ClassCom sp. z o.o.            Krakow               Poland
 30221  ISTS Sp. z o.o.                Krakow               Poland
  8123  S-Net Sp. z o.o.               Krakow               Poland
  7175  Orange Polska S.A.             Krakow               Poland
 28324  Petroinform.net                Krakow               Poland
 30193  FIBERLINK Sp. z o.o.           Krakow               Poland
 25726  Krakowski Internet             Krakow               Poland
 37699  Domonet                        Krakow               Poland
 37698  Wnet                           Krakow               Poland
  1958  F.H.U. Compower                Krakow               Poland

HA Integration: image image

adorobis avatar Oct 11 '21 14:10 adorobis

The issue comes most probably from speedtest-cli already. Tested it in the homeassistant bash and on my computer. image image

StevusPrimus avatar Oct 26 '21 16:10 StevusPrimus

Guys can you check, for me it is working fine again on this morning, without doing any updates ... image

StevusPrimus avatar Oct 27 '21 07:10 StevusPrimus

Not in my case, still limited list and from wrong city.

adorobis avatar Oct 27 '21 07:10 adorobis

Just curious, did you reload the integration beforehand? image

StevusPrimus avatar Oct 27 '21 07:10 StevusPrimus

I have installed it from scratch as I'm not using it anymore. Instead I've switched to official speedtest-cli being integrated with command line sensor. Now it gives results that are in line with speedtest.net web based. Details here if you are interested: https://github.com/adorobis/SpeedTest-CLI-With-Home-Assistant

adorobis avatar Oct 27 '21 08:10 adorobis

Btw, the key issue with this official HA integration is that it uses some python cli which is not official speedtest-cli and has nothing to do with it. Hence the results are way off. Btw the project page says the following: "There is the potential for this tool to report results inconsistent with Speedtest.net. There are several concepts to be aware of that factor into the potential inconsistency:

  • Speedtest.net has migrated to using pure socket tests instead of HTTP based tests
  • This application is written in Python
  • Different versions of Python will execute certain parts of the code faster than others
  • CPU and Memory capacity and speed will play a large part in inconsistency between Speedtest.net and even other machines on the same network
  • Issues relating to inconsistencies will be closed as wontfix and without additional reason or context."

adorobis avatar Oct 27 '21 08:10 adorobis

Btw, the key issue with this official HA integration is that it uses some python cli which is not official speedtest-cli and has nothing to do with it. Hence the results are way off.

Yes that's exactly what I put in for comparison in these two screenshots: https://github.com/home-assistant/core/issues/55579#issuecomment-952092687

But today it just works as it should. Thats all I am saying ...

You are of course right this should be migrated ...

StevusPrimus avatar Oct 27 '21 08:10 StevusPrimus

You are of course right this should be migrated ...

If at all possible. Speedtest.net is providing binaries only, I don't think they release any source code or python package that we could integrate with HA. But I'm not an expert in HA integrations so maybe there is a way to migrate to the official cli?

adorobis avatar Oct 27 '21 08:10 adorobis

Ah yes, you are right, seems the Speedtest.net CLI client is written in C/C++ and the source is not publicly available.

StevusPrimus avatar Oct 27 '21 09:10 StevusPrimus

I live in NL but my HA only shows Germany servers. With very high Ping.

metbril avatar Dec 31 '21 07:12 metbril

I live in belgium and it only shows dutch servers

Jayksopp avatar Feb 07 '22 12:02 Jayksopp

Same here. I am based in Poland close to Warsaw and I'd like to choose one of the nearest servers but I am not able to to that because in the UI configuration I have only few servers from Cracow which the location is right far into the ones near to Warsaw. No possibility to scroll in the UI. Any idea how to fix?

kalatos86 avatar Mar 16 '22 18:03 kalatos86

Any workarounds? Using this integration with far away servers defeats is purpuse.

riiveraluis avatar Mar 30 '22 18:03 riiveraluis

Any workarounds? Using this integration with far away servers defeats is purpuse

I've switched to official speedtest-cli being integrated with command line sensor. Now it gives results that are in line with speedtest.net web based. Details here if you are interested: https://github.com/adorobis/SpeedTest-CLI-With-Home-Assistant

adorobis avatar Mar 31 '22 06:03 adorobis

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[bot] avatar Jun 30 '22 00:06 github-actions[bot]

Keep

metbril avatar Jun 30 '22 04:06 metbril

same here... I'm from Slovakia (Kosice) and it's offering my servers in Poland

image

speedtest-cli on same hw image

Kepro avatar Jan 14 '23 19:01 Kepro

can you maybe give us option to provide server id with configuration please? 🙏

Kepro avatar Jan 14 '23 19:01 Kepro

This is not being maintained and due to the fact that it uses unofficial python library (also not maintained) it is not giving correct results. Here you can find a solution that works with official cli, there is already a socket image available: https://github.com/adorobis/speedtest-CLI2mqtt

adorobis avatar Jan 15 '23 07:01 adorobis

i miss Frankfurt in the List :(

ingeniumdesign avatar Feb 01 '23 16:02 ingeniumdesign

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.