APC AP9211 MasterSwitch PDU

Very pleased to get an old AP9211 PDU working with Home Assistant! These things are basically free but are nicely built and provide eight switched outlets.

It required similar configuration to previous similar efforts, but the OIDs are a bit different:

switch:
- platform: snmp
    name: pdu1-1
    host: 192.168.12.34
    community: [redacted]
    version: "1"
    baseoid: 1.3.6.1.4.1.318.1.1.4.4.2.1.3.1
    payload_on: 1
    payload_off: 2

- platform: snmp
    name: pdu1-2
    host: 192.168.12.34
    community: [redacted]
    version: "1"
    baseoid: 1.3.6.1.4.1.318.1.1.4.4.2.1.3.2
    payload_on: 1
    payload_off: 2

...

I made a blog post with some more details: