SNMP (Tripplite) Get and Set

I have a few Tripplite PDUs that I am trying to control vis SNMP.
The reads seems to work.


The status is correct if I change it directly on the PDU’s interface it reacts properly in HA.
But if I change the state (flip the switch) in HA it does not change the state on the PDU and the screen flips back to the view above when it refreshes the status.

This is my configuration.yaml
device_tracker:

  • platform: snmp
    host: 192.168.0.1
    community: tripplite
    baseoid: 1.3.6.1.4.1.850

switch:

  • platform: snmp
    name: PDU 2 Outlet 1
    host: 192.168.0.6
    version: 2c
    community: tripplite
    baseoid: 1.3.6.1.4.1.850.1.1.3.2.3.3.1.1.4.1.1
    payload_on: 2
    payload_off: 1
    command_payload_off: 1
    command_payload_on: 2
  • platform: snmp
    name: PDU 2 Outlet 2 - BTC Node
    host: 192.168.0.6
    community: tripplite
    version: 2c
    baseoid: 1.3.6.1.4.1.850.1.1.3.2.3.3.1.1.4.1.2
    payload_on: 2
    payload_off: 1
    command_payload_off: 1
    command_payload_on: 2
  • platform: snmp…etc…

The tripplite user is in the SNMP group and has proper permissions.
The loads are marked as configurable as well.

What am I doing wrong?

Ok, I have an update - I can now toggle things on and off using 850.1.1.3.2.3.3.1.1.6.1.1 instead of 850.1.1.3.2.3.3.1.1.4.1.1

850.1.1.3.2.3.3.1.1.4.1.1 is the current status On or Off
850.1.1.3.2.3.3.1.1.6.1.1 is where you SET the power to on off or cycle…
So, I guess I will need to create a custom switch template so I can see the state AND turn it on and off…

Late response, but as I am looking into that today I found that there is the optional variable: command_oid in the snmp switch-template.
So you can use that to set the state without creating a custom switch template.
Maybe this was added after your request, but now it is possible.