Giter Club home page Giter Club logo

ha_snmp_stats's People

Contributors

ullebe1 avatar weltmeyer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ha_snmp_stats's Issues

How can I enable this component?

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

Ignore negative values

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).

Unable to load snmp_stats after upgrade to HA Core 5.0

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

.translations directory has been moved

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

entity is incorrectly being triggered for updates while it is disabled

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.

No connection

Hi,

homeassistant can´t connect to OpnSense 21.7.3_3 with os-net-snmp 1.5_1

can you check that please

Values are not numbers?

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:

image

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.

Custom COMMUNITY

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

timeout

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.

Device State Attributes Error

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.

..and for the wifi?

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.