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