-
-
Notifications
You must be signed in to change notification settings - Fork 74
/
utility_meter_freebox_stats.yaml
executable file
·49 lines (37 loc) · 1.48 KB
/
utility_meter_freebox_stats.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
############################################################
## ##
## UTILITY METER FREEBOX STATS ##
## ##
############################################################
utility_meter:
download:
source: sensor.stats_freebox_download_speed
cycle: weekly
upload:
source: sensor.stats_freebox_upload_speed
cycle: weekly
sensor:
- platform: template
sensors:
down_max_freebox:
friendly_name: "Max Down"
unit_of_measurement: 'kB/s'
value_template: "{{ state_attr('sensor.stats_freebox_download_speed', 'max_value') }}"
up_max_freebox:
friendly_name: "Max Up"
unit_of_measurement: 'kB/s'
value_template: "{{ state_attr('sensor.stats_freebox_upload_speed', 'max_value') }}"
mb_received:
friendly_name: "MB Received"
unit_of_measurement: 'MB/s'
value_template: "{{ (states('sensor.download')|filesizeformat()) | round(2) }}"
mb_sent:
friendly_name: "MB Sent"
unit_of_measurement: 'MB/s'
value_template: "{{ (states('sensor.upload')|filesizeformat()) | round(2) }}"
- platform: statistics
name: Stats Freebox Download Speed
entity_id: sensor.freebox_download_speed
- platform: statistics
name: Stats Freebox Upload Speed
entity_id: sensor.freebox_upload_speed