weltmeyer / ha_snmp_stats Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
I didn't setup mine OPNSENSE with default community (public).
Can you please add an optional parameter other than IP address to choose one?
Thank you
hi there.. using your integration
I disabled many entities as I'm not interested in monitoring them..
anyway, I see many lines like this one in my logs:
WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.snmp_stats_192_168_0_1_netif_br_lan_curbw_out_mbit is incorrectly being triggered for updates while it is disabled. This is a bug in the snmp_stats integration.
Hi,
homeassistant can´t connect to OpnSense 21.7.3_3 with os-net-snmp 1.5_1
can you check that please
It seems that home assistant core-2021.6.X can no longer find the snmp_stats integration. I tried to upgrade twice and I also tried to reboot.
Any idea?
Hi,
thanks for your job.
Can you remove (or not save) negative value?
I have some negative value on my history (i have a netgear D7000 with ancistrus firmware).
hi
I see many lines like this one in my logss:
2020-05-19 07:48:56 WARNING (MainThread) [homeassistant.helpers.translation] snmp_stats: the '.translations' directory has been moved, the new name is 'translations', starting with Home Assistant 0.111 your translations will no longer load if you do not move/rename this
Hello,
I added this repo as custom repo. I installed it via HACS but it seems the component is lacking info on how to enable.
Is there setting that needs to be added to configuration.yaml?
I tried to add configuration->intergrations--> + snmp_stats. Message seems to be blank on "Submit"
I'm using
Home Assistant 0.113.3
HACS 1.3.3
Please help.
Thanks
Logger: homeassistant.util.package
Source: util/package.py:107
First occurred: 1:50:29 PM (3 occurrences)
Last logged: 1:50:34 PM
Unable to install package pysnmp: ERROR: Cannot install pysnmp because these package versions have conflicting dependencies. ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts [notice] A new release of pip is available: 23.1 -> 23.1.2 [notice] To update, run: pip install --upgrade pip
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
Hi,
I have installed this integration, but I appear to be getting non-numeric values as results, judging by the history "graphs" for the entities. See example screenshot:
I would expect a History graph to show a line graph if the entities were numeric, and a state change sequence for a string or other attribute type?
As an additional evidence in support of the "incorrect type" theory, I present the following template:
The br_wan_total_in_byte is {{ states('sensor.snmp_stats_192_168_201_1_netif_br_wan_total_in_byte') |int() | tojson() }}.
The br_wan_total_out_byte is {{ states('sensor.snmp_stats_192_168_201_1_netif_br_wan_total_out_byte') | tojson() }}.
The br_wan_curbw_in_mbyte is {{ states('sensor.snmp_stats_192_168_201_1_netif_br_wan_curbw_in_mbyte') | tojson() }}.
which results in:
The br_wan_total_in_byte is 73566861632.
The br_wan_total_out_byte is "7701593540".
The br_wan_curbw_in_mbyte is "0.0".
Note that the first entry which is converted to an int is not quoted when converted to JSON, but the remaining two are quoted, suggesting that they are of string type. (I couldn't figure out how to evaluate the type of the entity directly, so figured that was a reasonable proxy.)
EDIT: Better test:
The br_wan_total_out_byte is {{ states('sensor.snmp_stats_192_168_201_1_netif_br_wan_total_out_byte') is string() }}.
returns True
.
Hi, thanks for this integration. When I using it with my unifi usg it works fine, with low net usage. When I use 40mbit or more, I got timeouts and the sensors are not updating within 10sec.
Is anyone else getting the following error? Not sure if it's been reported already or not:
(<class 'custom_components.snmp_stats.sensor.SnmpStatisticsSensor'>) implements device_state_attributes. Please report it to the custom component author.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.