Zur Darstellung der aktuellen Internetgeschwindigkeit, lässt sich im HomeAssistant die Speedtest.Net-Integration verwenden.
In der configuration.yaml muss dazu lediglich noch das Interval, wie oft ein Speedtest ausgeführt wird, angegeben werden:
speedtestdotnet: scan_interval: minutes: 30
Zur Visualisierung im Lovelace Dashboard nutze ich die HACS-Erweiterung Mini Graph Card.
Eine mögliche Konfiguration der Cards mit ensprechenden Farben für eine 100/40 Internetleitung hier:
type: horizontal-stack
title: Internet
cards:
- type: 'custom:mini-graph-card'
name: Download
symbol: 'mid:download'
entities:
- sensor.speedtest_download
show:
graph: bar
labels: true
hours_to_show: 24
points_per_hour: 2
color_thresholds:
- value: 3
color: '#FF0000'
- value: 6
color: '#FF1100'
- value: 9
color: '#FF2200'
- value: 12
color: '#FF3300'
- value: 15
color: '#FF4400'
- value: 18
color: '#FF5500'
- value: 21
color: '#FF6600'
- value: 24
color: '#FF7700'
- value: 27
color: '#FF8800'
- value: 30
color: '#FF9900'
- value: 33
color: '#FFAA00'
- value: 36
color: '#FFBB00'
- value: 39
color: '#FFCC00'
- value: 42
color: '#FFDD00'
- value: 45
color: '#FFEE00'
- value: 50
color: '#FFFF00'
- value: 53
color: '#EEFF00'
- value: 56
color: '#DDFF00'
- value: 59
color: '#CCFF00'
- value: 62
color: '#BBFF00'
- value: 65
color: '#AAFF00'
- value: 69
color: '#99FF00'
- value: 72
color: '#88FF00'
- value: 75
color: '#77FF00'
- value: 78
color: '#66FF00'
- value: 81
color: '#55FF00'
- value: 84
color: '#44FF00'
- value: 87
color: '#33FF00'
- value: 90
color: '#22FF00'
- value: 93
color: '#11FF00'
- value: 96
color: '#00FF00'
- type: 'custom:mini-graph-card'
name: Upload
symbol: 'mid:upload'
entities:
- sensor.speedtest_upload
show:
graph: bar
labels: true
hours_to_show: 24
points_per_hour: 2
color_thresholds:
- value: 10
color: '#FF0000'
- value: 11
color: '#FF1100'
- value: 12
color: '#FF2200'
- value: 13
color: '#FF3300'
- value: 14
color: '#FF4400'
- value: 15
color: '#FF5500'
- value: 16
color: '#FF6600'
- value: 17
color: '#FF7700'
- value: 18
color: '#FF8800'
- value: 19
color: '#FF9900'
- value: 20
color: '#FFAA00'
- value: 21
color: '#FFBB00'
- value: 22
color: '#FFCC00'
- value: 23
color: '#FFDD00'
- value: 24
color: '#FFEE00'
- value: 25
color: '#FFFF00'
- value: 26
color: '#EEFF00'
- value: 27
color: '#DDFF00'
- value: 28
color: '#CCFF00'
- value: 29
color: '#BBFF00'
- value: 30
color: '#AAFF00'
- value: 31
color: '#99FF00'
- value: 32
color: '#88FF00'
- value: 33
color: '#77FF00'
- value: 34
color: '#66FF00'
- value: 35
color: '#55FF00'
- value: 36
color: '#44FF00'
- value: 37
color: '#33FF00'
- value: 38
color: '#22FF00'
- value: 39
color: '#11FF00'
- value: 40
color: '#00FF00'