Hi there,
I bought a PDU recently and I wish to integrate to Home Assistant to run automation. It has a web server and SNMP, and I was thinking of using the latter to retrieve the status of the outlets and switch them on/off.
There’s one OID used to get and set the status of all outlets, it’s a string with 0 or 1 values separated by commas. For example, having only the outlet number 2 and 4 on would look like this: 0,1,0,1,0,0,0,0
. And if I want to turn the last outlet (8) on without turning the others off, I would need to send this: 0,1,0,1,0,0,0,1
.
So the question is, how can I track the status of my outlets and set them individually using this single OID? I looked around the MIB and there doesn’t seem to be another way to get/set the status of an outlet. I guess maybe using templates could work but I have no clue how to even approach this.
This is the device I got (see Download page for MIB and manuals): SW-1081 - Inter-Tech Elektronik Handels GmbH
Any help would be greatly appreciated!
Edit: I just found out that I can set the value of a single outlet without changing the other values by sending 5
. So for example if I wish to turn off the second outlet, I would just send 5,0,5,5,5,5,5,5
. Still puzzled on how to detect the right value tho