Hello community,
after many days of trial and error I have to ask you for help about the snmp binding.
At first, here are my installed system:
Openhab 2.4.0.002 on a synology NAS Station with a lot of bindings (all works) and the snmp binding 1.13 (a higher version isn’t present on paper ui).
Binding configuration (snmp.cfg):
# Listening Port (optional, defaults to '162')
port=1620
# The SNMP community to listen to (optional, defaults to 'public')
community=public
# The SNMP retry timeout (in milliseconds). Defaults to 1500.
# Sets the number of milliseconds between retries.
timeout=1500
# The SNMP number of retries. Defaults to 0.
# Sets the number of retries before aborting the request.
retries=3
I control a denkovi daenetip2v2 module (16 digital in or outputs and 8 analog inputs) with get/set snmp. To control the digital outputs works great, also to get value back. See a example for Digital output port 3.1:
Switch Pdig31 " Dout 3.1 [%s] " { snmp="<[192.168.xxx.yyy:private:.1.3.6.1.4.1.42505.9.2.1.1.0:10000] >[ON:192.168.xxx.yyy:private:.1.3.6.1.4.1.42505.9.2.1.1.0:1] >[OFF:192.168.xxx.yyy:private:.1.3.6.1.4.1.42505.9.2.1.1.0:0]" }
now my first problem with item names: When I want to read out the analog ports I can’t use any Name for the item I want ( I now that I don’t have to use special characters…), see a example that works:
String Pana68 " Ain 6.8 [%s] " { snmp="<[192.168.xxx.yyy:private:.1.3.6.1.4.1.42505.9.2.3.8.0:10000]" }
“Pana68” will accepted and is refreshed every 10s. But when I use (for example) “Pana67” or “Pana66” the value will not present in Basic UI, only a “-” is shown. There are many more names, that doesn’t works (like “Alarm” oder “Window”, and so on). every Name I use is unique. Its hard to find a name, that works, because I want a simple Name which have a relationship to the thing, I want to control.
Is there anyone, that known this problem and can help me?
My second Problem is about SNMP Traps. In the denkovi module I switched the IP adresse, port and community to my NAS / openhab system (IP Adresse 192.168.xxx.zzz, Port 1620 and community is public). When the module is in alarm mode, it sends snmp traps. I sniff my network and can see, thats work great:
Configuration of the item that should receive the snmp traps in openhab is:
String Ball " [%s] " { snmp="<[192.168.xxx.yyy:public:.1.3.6.1.4.1.42505.9.2.3.2.0:0]" }
But in Openhab the value 1022 (send via snmp trap from the denkovi modul) will not present, the item still shows a “-” in Basic UI. The item Name “Ball” is one of the names, that works for normal snmp-get.
In openhab.log is no error or warning and in event.log is also nothing to see.
I hope, there is somebody who can help me out.
Regards
Olaf