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
SNMP sensor not processing float values (correctly) #2767
Comments
I've tested the SNMP sensor and it works with the following types:
This seems to confirm your observation. Unfortunately I can't get my hands on an OID that returns a float at the moment. |
Can you please test #2788 for your setup? Thanks. |
@fabaff I hate to sound stupid but...how would I go about that? I'm currently running the release version of HASS installed with the AiO installer. If you could give me a nudge in the right direction, I'd be more than happy to test it for you. I am by no means a developer, though. I did try it a "dirty" way by simply renaming the original snmp.py file and creating a new snmp.py file with the new code. Unfortunately, even after restarting HASS, the result is the same as before. On the contrary, I have another SNMP sensor for a different OID which now returns "100.0" instead of "100": it turned a Gauge32 value into a Float value. |
has any progress been made on this? |
Nope. I'm running Home Assistant 0.43.2 and this issue still exists. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 |
Hey @fanaticDavid, I had a look at the issue I added support for decoding of "Opaque" types, as long as they are supported by the unerlying pyasn1 library (https://github.com/etingof/pyasn1). I'm not sure if that solves your problem, as pyasn1 does not list the type "Float". It does offer type "Real". You can give it a try: If that does not solve the problem, you probably need to request the Float data type in the pyasn1 project. |
Hoping this get fixed soon, I can't monitor UPS battery input voltage because type is opaque |
The code from #11239 already works, it just needs to be finalized and merged 🙂 |
awesome!!! thank you!
…On Mon, Feb 5, 2018 at 4:11 PM, David ***@***.***> wrote:
The code from #11239
<#11239> already
works, it just needs to be finalized and merged 🙂
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2767 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AUPcdf5PU8acjwRbFCes7u8h0dp2IDdFks5tR26AgaJpZM4Jf2N9>
.
|
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 |
This is still a bug as #11239 by @ChristianKuehnel was never finished. Personally, I switched from using SNMP to using NUT to monitor my NAS' UPS. However, since I'm not the only user who is/was affected by this bug, I would like this issue to remain open until it has been fixed. |
I would like to see this bug fixed too. Because volts is Opaque, I monitor
battery up time instead. I feel the voltage is a better way to monitor plus
if this is fixed we may be able to monitor other things/devices and not
have to worry about this problem.
…On Wed, May 30, 2018 at 8:17 PM, David ***@***.***> wrote:
This is still a bug as #11239
<#11239> by
@ChristianKuehnel <https://github.com/ChristianKuehnel> was never
finished.
Personally, I switched from using SNMP to using NUT to monitor my NAS'
UPS. However, since I'm not the only user who is/was affected by this bug,
I would like this issue to remain open until it has been fixed.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2767 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AUPcda8_2EpFP5bJM17h2bBN3BUzOz7Fks5t3zangaJpZM4Jf2N9>
.
|
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 |
Can anyone confirm this issue still exists? I suspect it does since #11239 was closed without being merged. For my use case, I've switched from the SNMP component to the NUT component so I cannot test this at the moment. |
I don't recall which version it started working in but I have been able to pull SNMP network info from my Gigabit router now for some time where it did not work previously. I Think it is fixed, or at least I can get accurate network traffic from a EdgeRouter Now. |
Closing based on @bagobones report and the age of the issue. Please open a new issue if this problem still persists. |
sorry to comment on such an old issue, let me know if should open new issue. Opaque float ends up as a hex number, tried adding value template to cast value to a float but yields 0.0 The config:
In dev panel: Actual value via snmpget: System Health
Home Assistant Cloud
Lovelace
|
@cartwrightian you actually hit the same issue. We finally have a patch to submit to HA. Hope it can make into the next release. |
Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (
hass --version
):0.25.2 (installed using AiO installer)
Python release (
python3 --version
):3.4.2
Component/platform:
SNMP sensor, used on a Raspberry Pi 3 (with Raspbian Jessie Lite)
Description of problem:
I use SNMP sensors to track the status and some statistics of the APC UPS connected to my Synology NAS. The result of that looks like this:
The bottom 2 sensors work just fine. The top 4 sensors, however, return unusual results.
Expected:
Expecting float values, but getting unusual string values instead
Problem-relevant
configuration.yaml
entries and steps to reproduce:The sensors in my HASS config are defined as follows:
Using snmpwalk on my MacBook, I was able to determine that this issue occurs when a float value is returned.
Testing the top 4 broken sensors:
snmpwalk -Os -c home -v 2c xxx.xxx.xxx.x 1.3.6.1.4.1.6574.4.3.1.1.0 enterprises.6574.4.3.1.1.0 = Opaque: Float: 100.000000
snmpwalk -Os -c home -v 2c xxx.xxx.xxx.x 1.3.6.1.4.1.6574.4.3.2.1.0 enterprises.6574.4.3.2.1.0 = Opaque: Float: 27.200001
snmpwalk -Os -c home -v 2c xxx.xxx.xxx.x 1.3.6.1.4.1.6574.4.4.1.1.0 enterprises.6574.4.4.1.1.0 = Opaque: Float: 231.00000
snmpwalk -Os -c home -v 2c xxx.xxx.xxx.x 1.3.6.1.4.1.6574.4.2.12.1.0 enterprises.6574.4.2.12.1.0 = Opaque: Float: 3.000000
Testing the bottom 2 working sensors:
snmpwalk -Os -c home -v 2c xxx.xxx.xxx.x 1.3.6.1.4.1.6574.4.3.6.1.0 enterprises.6574.4.3.6.1.0 = INTEGER: 9375
snmpwalk -Os -c home -v 2c xxx.xxx.xxx.x 1.3.6.1.4.1.6574.4.2.1.0 enterprises.6574.4.2.1.0 = STRING: "OL"
Traceback (if applicable):
none
Additional info:
Using templates to change the values to floats doesn't work, not that I was expecting it to
The text was updated successfully, but these errors were encountered: