Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

..and for the wifi? #4

Open
giga89 opened this issue Jan 14, 2021 · 0 comments
Open

..and for the wifi? #4

giga89 opened this issue Jan 14, 2021 · 0 comments

Comments

@giga89
Copy link

giga89 commented Jan 14, 2021

Hi,
thank for your job! It's awesome.
But i have a doubt, how to measure wifi bandwitch use?
I tried with a "raw" calculation like this:
sensors:
wifi_out:
friendly_name: "Wifi BW Out"
unit_of_measurement: 'mbit/s'
value_template: {{float(states('sensor.snmp_stats_192_168_10_201_netif_ppp1_curbw_in_mbit)) -float(states('sensor.snmp_stats_192_168_10_201_netif_eth1_curbw_in_mbit)) - float(states('sensor.snmp_stats_192_168_10_201_netif_eth2_curbw_in_mbit)) - float(states('sensor.snmp_stats_192_168_10_201_netif_eth3_curbw_in_mbit)) - float(states('sensor.snmp_stats_192_168_10_201_netif_eth1_curbw_in_mbit))}}

But it dont work. I don't know why but if i create a new entity in my configuration.yaml like this ->
sensors:
wifi_out:
friendly_name: "Wifi BW Out"
unit_of_measurement: 'mbit/s'
value_template: {{float(states('sensor.snmp_stats_192_168_10_201_netif_ppp1_curbw_in_mbit)) }}
entity_id: sensor.snmp_stats_192_168_10_201_netif_ppp1_curbw_out_mbit

the value is always ZERO.
Please help me.

Thank u in advance
By

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant