Skip to content

Commit 905fcd3

Browse files
committed
Expand translations and bufferbloat grades
1 parent a07d516 commit 905fcd3

8 files changed

Lines changed: 35 additions & 2 deletions

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
- **Download** (Mbit/s)
3434
- **Upload** (Mbit/s)
3535
- **Jitter** (ms) – Network stability
36-
- **Bufferbloat Grade** – Latency stability rating (A-F)
36+
- **Bufferbloat Grade** – Latency stability rating (A+ to F)
3737
- **Download/Upload Plan Compliance** (%) – Speed vs. ISP rated plan
3838
- **Last Test** – Timestamp of the last successful test
3939
- **Server** – Name and location of the test server
@@ -163,6 +163,10 @@ The integration creates a comprehensive set of sensors. Some are enabled by defa
163163
- `sensor.ookla_speedtest_last_test`
164164
- `sensor.ookla_speedtest_result_url`
165165

166+
Bufferbloat grades are based on the additional latency under load: **A+** (0-5 ms),
167+
**A** (6-30 ms), **B** (31-60 ms), **C** (61-120 ms), **D** (121-300 ms),
168+
**E** (301-600 ms), and **F** (over 600 ms).
169+
166170
#### **Extended Metrics (Disabled by Default)**
167171
*Go to Integration Settings → Entities to enable these.*
168172

RELEASE_NOTES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
This release makes multi-connection mode explicit for the Ookla CLI and adds
44
timing diagnostics to help compare results across hosts and containers.
55

6+
Configuration flow titles and descriptions are now available in German,
7+
Spanish, French, Italian, and Dutch (with Home Assistant falling back to
8+
English for any untranslated field).
9+
610
Please answer the [v3.1.2 follow-up poll](https://github.com/soulripper13/hass-speedtest-ookla/discussions/37)
711
after upgrading so we can verify whether the change improves download and upload results.
812

@@ -11,6 +15,7 @@ after upgrading so we can verify whether the change improves download and upload
1115
- Explicitly passes `--multi` to the bundled Ookla CLI.
1216
- Logs test duration and command details at debug level.
1317
- Existing installations receive a one-time notification linking to the follow-up poll.
18+
- Bufferbloat grading now includes `A+` (0-5 ms), `E` (301-600 ms), and `F` (>600 ms).
1419

1520
# v3.1.1
1621

custom_components/ookla_speedtest/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,14 +441,18 @@ def _process_speedtest_result(self, result: dict[str, Any]) -> dict[str, Any]:
441441
# Ensure we don't get negative delta due to variance
442442
delta = max(0, max_loaded - ping_idle)
443443

444-
if delta <= 30:
444+
if delta <= 5:
445+
grade = "A+"
446+
elif delta <= 30:
445447
grade = "A"
446448
elif delta <= 60:
447449
grade = "B"
448450
elif delta <= 120:
449451
grade = "C"
450452
elif delta <= 300:
451453
grade = "D"
454+
elif delta <= 600:
455+
grade = "E"
452456
else:
453457
grade = "F"
454458

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"config": {"step": {"user": {"title": "Ookla Speedtest konfigurieren", "description": "Richten Sie die Ookla-Speedtest-Integration zur Überwachung Ihrer Internetgeschwindigkeit ein."}}},
3+
"options": {"step": {"init": {"title": "Ookla-Speedtest-Optionen", "description": "Aktualisieren Sie die Konfiguration. Änderungen laden die Integration neu."}}}
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"config": {"step": {"user": {"title": "Configurar Ookla Speedtest", "description": "Configura la integración Ookla Speedtest para supervisar la velocidad de Internet."}}},
3+
"options": {"step": {"init": {"title": "Opciones de Ookla Speedtest", "description": "Actualiza la configuración. Los cambios recargarán la integración."}}}
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"config": {"step": {"user": {"title": "Configurer Ookla Speedtest", "description": "Configurez l’intégration Ookla Speedtest pour surveiller la vitesse de votre connexion Internet."}}},
3+
"options": {"step": {"init": {"title": "Options d’Ookla Speedtest", "description": "Mettez à jour la configuration. Les modifications rechargeront l’intégration."}}}
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"config": {"step": {"user": {"title": "Configura Ookla Speedtest", "description": "Configura l’integrazione Ookla Speedtest per monitorare la velocità Internet."}}},
3+
"options": {"step": {"init": {"title": "Opzioni di Ookla Speedtest", "description": "Aggiorna la configurazione. Le modifiche ricaricheranno l’integrazione."}}}
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"config": {"step": {"user": {"title": "Ookla Speedtest configureren", "description": "Configureer de Ookla Speedtest-integratie om uw internetsnelheid te volgen."}}},
3+
"options": {"step": {"init": {"title": "Ookla Speedtest-opties", "description": "Werk de configuratie bij. Wijzigingen laden de integratie opnieuw."}}}
4+
}

0 commit comments

Comments
 (0)