-
Beta Was this translation helpful? Give feedback.
Answered by
DeFlanko
Mar 22, 2023
Replies: 3 comments 6 replies
-
Currently what i have: type: custom:mini-graph-card
show:
labels: true
name_adaptive_color: true
icon_adaptive_color: true
average: true
extrema: true
height: 150
hours_to_show: 0.25
points_per_hour: 360
line_width: 2
animate: true
value_factor: -2.108
lower_bound: ~0
color_thresholds:
- value: 10000
color: '#8FCE00'
- value: 4000
color: '#008fce'
- value: 500
color: '#ce008f'
entities:
- entity: >-
sensor.protectli_pfsense_1930networks_com_interface_wan_inbytes_kilobytes_per_second
unit: Mbit/s
name: Download
- entity: >-
sensor.protectli_pfsense_1930networks_com_interface_wan_outbytes_kilobytes_per_second
unit: Mbit/s
name: Upload
name: Active Internet (Last 15 Mins) (The value factor took a bit of trial and error, that too should use a "if this then convert to that" feature... in this case i needed to convert kilobytes/s to MegaBits/s) |
Beta Was this translation helpful? Give feedback.
4 replies
-
Update. type: custom:mini-graph-card
show:
labels: true
name_adaptive_color: true
icon_adaptive_color: true
average: true
extrema: true
height: 150
hours_to_show: 0.25
points_per_hour: 360
line_width: 2
animate: true
lower_bound: ~0
color_thresholds:
- value: 100
color: '#8FCE00'
- value: 40
color: '#008fce'
- value: 10
color: '#ce008f'
- value: 0
color: '#000000'
- value: -10
color: '#008fce'
- value: -40
color: '#8FCE00'
entities:
- entity: sensor.pfsense_download_mbps_speed
unit: Mbit/s
name: Download
- entity: sensor.pfsense_upload_mbps_speed
unit: Mbit/s
name: Upload
name: Active Internet (Last 15 mins) Where i had to add the following in - name: "pfSense_Upload_Mbps_speed"
state_class: measurement
#Replace by MB/s if you want to use bytes/sec instead of bits/sec
unit_of_measurement: Mb/s
icon: mdi:upload
state: >
{% set WAN = states('sensor.protectli_pfsense_1930networks_com_interface_wan_outbytes_kilobytes_per_second') | float(0) %}
{{ (0-(WAN)*8/1024) }}
- name: "pfSense_Download_Mbps_speed"
state_class: measurement
#Replace by MB/s if you want to use bytes/sec instead of bits/sec
unit_of_measurement: Mb/s
icon: mdi:download
state: >
{% set WAN = states('sensor.protectli_pfsense_1930networks_com_interface_wan_inbytes_kilobytes_per_second') | float(0) %}
{{ (WAN)*8/1024 }} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
DeFlanko
-
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update.
Where i had to …