I’m attempting to add a state sensor to the sitemonitor device type using the new-ish yaml-style config.
The manufacturer of this device does not provide a MIB. I have created a new file called includes/definitions/discovery/sitemonitor.yaml which contains the following:
I think the problem is that oid should be a named oid per the MIB, but since this device has no MIB, I am trying to provide the numeric ID. With this configuration, the sensor does not get discovered or polled.
Is there a way to accomplish this without having a named OID/MIB?
Ok - so I took a stab at this, but I must be doing something wrong, because even though the poller sees 1 for the SNMP value at this OID, the UI is still showing “Open”. Any tips? I think it may have something to do with the index.