Hello,
I am working on a Openhab automation setup for a client that has requested I implement a dry contact system that uses both an MQTT and SNMP Denkovi IP Relay.
SNMP: Denkovi Smartden IP Maxi smartDEN Maxi - I/O Relay Module SNMP, HTTP with DIN RAIL BOX - Denkovi A E LTD
MQTT: Denkovi Smartden IP-16R-MQ smartDEN IoT MQTT Ethernet 16 Relay Module - DIN RAIL BOX - Denkovi A E LTD
For the SNMP device I have been able to successfully create the SNMP “Thing” pointed at the relay and a “Channel” for a dry contact motion sensor that is connected directly to the device. However, the “item” that I have created pointed at the channel doesn’t seem to actually be doing anything. After doing some troubleshooting and research I think that I am simply configuring this wrong and may have missed something somewhere.
For the MQTT Device I was able to successfully create the MQTT broker and add it as a “bridge” in my things file, but am not really sure how to add my MQTT relay as a “thing” to the Bridge/Broker. On top of that I am not entirely sure how I would be able to pull data from devices connected to individual relays and get them added into openhab. It is important to note that in my MQTT relay websocket it shows that the device is connected to the bridge, I just need to integrate it into Openhab. This intention with this relay would be to monitor a backup generator via dry contacts so each “relay” would need to be a unique item in openhab (if this is even possible). I’m pretty new to openhab and have made some decent progress so far, but I have hit a bit of a wall here. I will provide my configs below if that helps at all.
SNMP Thing:
Thing snmp:target:DenkoviSNMP_Device1 “SNMP Denkovi Relay 1” [hostname=“xxx.xxx.xxx.xxx”, port=“161”, community=“public”, protocol=“v2c”, username=“N/A”, password=“N/A” ] {
Channels:
Type switch : motionChannel [ oid=“.1.3.6.1.4.1.42505.8.2.1.1.3.0”, onValue=“1”, offValue=“0” ]
SNMP Item:
Switch LAB_MOTION “Lab Motion Sensor” (LAB) [“Motion”] { channel=“snmp:target:DenkoviSNMP_Device1:.1.3.6.1.4.1.42505.8.2.1.1.3.0:binary-switch-value” }
MQTT Thing:
Bridge mqtt:broker:DenkoviMQTT “MQTT Broker” [ host=“xxx.xxx.xxx.xxx”, port=“1883”, username=“N/A”, password=“N/A” ]
So in summary, how do I properly integrate these relay systems into Openhab and how do I add devices connected to individual relays as their own “item/thing” in openhab? Any and all help is very much appreciated.