yep … i was having same issues as ian… speed test would work for about a week or so… then suddenly stop… error would be server unreachable… selecting different server or reloading usually fixes the problem… but not this time… this time after reload… whole speedtest thing has gone down…
Same issue for me. Upgraded to 2022.8.4 yesterday, same errors as @MaxVonEvil reported above. TBH I’ve never had much luck with Speedtest, it works for a random period of days/weeks then stops and needs a restart.
This integration has been shit for years starting and stopping continually. My script never misses a beat. Using the official speedtest CLI and MQTT to get the data into HA.
SO strange: Now it’s working again…
I do not seem to recall it being this unstable.
Could it be Ookla does not liking automated queries as HA does (I run at the default 60 min interval)
That said, anyone aware of any alternative integrations for fast.com or similar?
Hello David, I was wondering if you could share your config/script?
I found it, thanks for this
See Speedtest Integration No longer loading - #42 by DavidFW1960
I’ve now switched to the speedtest CLI on RPi4 (without MQTT) - Add the official speedtest cli - #40 by Britespark.
Seems to be working nicely, but will need a few more hours/days to be certain.
The reason I’m using MQTT is because it’s persistent across restarts without waiting for it to run again
I’m using MQTT for SONOFF devices without really understanding how it works…will have to put that on my learning roadmap !
Thanks for sharing @DavidFW1960 - had a few hiccups setting it up but soon resolved and looks like a beautiful solution. So far has been solid which the integration sadly is proving not to be! Thanks again
I’m finding that since the last update that I’m getting a permissions error in the Mosquitto logs - have you seen this?
2022-10-03 17:23:14: New connection from 172.30.33.0:41926 on port 1883.
and the following when I run the shell script manually
Error: The connection was refused.
No issues with the broker or errors for me
Thanks David - something else to go and bang my head against…
I’ve seen some people complaining about mqtt with latest update in another thread but it’s rock solid here.
I restarted Mosquitto a few times and it’s working again
No idea what was wrong with it
Its appears that there as a change at speedtest’s end which resulted in @DavidFW1960’s script failing. Not sure if this affects all users or just those within Europe.
The following change fixed it for me;
from:
*# DO NOT ALTER ANYTHING BELOW THIS LINE*
speedtest_result=$(sudo speedtest --format=json --accept-license)
to:
*# DO NOT ALTER ANYTHING BELOW THIS LINE*
speedtest_result=$(sudo speedtest --format=json --accept-gdpr)
Hope that helps anyone who’s woken up to find that broken
Only Europe I think… no problems here
I think I’d use
sudo speedtest --format=json --accept-license --accept-gdpr
How/where do I make the changes on this. I have lost the service speedtestdotnet.speedtest. If I run the automation it fails because of the service not being available. If I uninstall and reinstall it will update but the automation does not succeed.Has been working for a couple of years without issue.
I am running Home Assistant 2023.2.3 Supervisor 2023.01.1 Operating System 9.5 om a NUC.
Thanks
That service was deprecated in 2022.9 and removed in 2022.11.
If you want to force an update on speed test, use homeassistant.update_entity
using the speedtest entities as a target entity_id.
Thanks very much. Now up and running again.
Hi. Are you still using this script? If so, are your test speeds consistent? Mine test between 800 - 400 Mbps download.