#SNMP-set

1 messages · Page 1 of 1 (latest)

jagged solstice
#

Hi all!
I'm trying to create a new switch to poweron or poweroff my poe switch interface (Aruba 2920 POE+).
I managed to find the exact oid and verify that on the home assistant terminal if I launch the snmp-set ip OID i 1 or i 2 command I can turn the device on and off. If I do it by creating a switch on configuration.yaml it doesn't work.

sensor:

  • platform: snmp
    name: "Porta PoE 14 IPCAM Sala"
    host: x.x.x.x
    community: public
    version: "2c"
    baseoid: 1.3.6.1.2.1.105.1.1.1.3.1.14
    payload_on: 1
    payload_off: 2
#

SNMP-set

#

If I try from terminal

#

snmpget -v2c -c public 192.168.1.253 .1.3.6.1.2.1.105.1.1.1.3.1.14

#

works