SNMP issue. HA complains about no yaml config, but integration says yaml only?

I try to get the status of my HP DesignJet 500

(its housed in my shed, want to know when its finished printing)

I was successful in getting my state by command line

PS C:\Users\ManneBK> Get-SnmpData -IP "10.101.111.126" -OID ".1.3.6.1.4.1.11.2.3.9.1.1.2.10.0" -Community "public"

Data OID
---- ---
1    .1.3.6.1.4.1.11.2.3.9.1.1.2.10.0

so i created a SNMP entry for the config yaml in HA

snmp:
  - sensor:
      - host: 10.101.111.126
        baseoid: "1.3.6.1.4.1.11.2.3.9.1.1.2.10.0"
        name: "DesignJet 500 Status Rohwert"
        community: "public"
        version: "2c"
        scan_interval: 60

result is “configuration doesn’t prevent HA start”

and


Die snmp-Integration unterstĂĽtzt keine YAML-Konfiguration
Fehler · Von Home Assistant Core Integration gemeldet

Die snmp-Integration unterstützt keine Konfiguration über eine YAML-Datei. Möglicherweise bemerkt man bei der Integration keine offensichtlichen Probleme, aber die in YAML definierten Konfigurationseinstellungen werden nicht tatsächlich angewendet.

Um dieses Problem zu beheben:

    Falls du dies noch nicht getan hast, richte die Integration ein.

    Entferne snmp aus deiner YAML-Konfigurationsdatei.

    Starte Home Assistant neu.

and if i follow the given link (that presumably would add the SNMP integration via UI), it tells me the link doesnt exist and askes if i have the newest HA, i do.

If i try adding SNMP via GUI, it complains about only accepting yaml configuration.

thereby clearly contradicting itself.

So what am I doing wrong here?

Did you restart HA after changing configuration.yaml?

Also your config does not look like anything in the docs

snmp:
  - sensor:
      - host: 10.101.111.126
        baseoid: "1.3.6.1.4.1.11.2.3.9.1.1.2.10.0"
        name: "DesignJet 500 Status Rohwert"
        community: "public"
        version: "2c"
        scan_interval: 60

might have to be more like

sensor:
  - platform: snmp
    host: 10.101.111.126
    baseoid: "1.3.6.1.4.1.11.2.3.9.1.1.2.10.0"
    name: "DesignJet 500 Status Rohwert"
    community: "public"
    version: "2c"
    scan_interval: 60
1 Like

yes i did, i even rebooted the machine.

and your recommendation for config was my first try, HA did see nothing, nothing… (Schulz)

So i plugged it into google and chat and got the second version, that at least did result in some reaction by HA…

… thanks to your hint, well, I think i figured it out.

i added my first stuff to the templates.yaml under “sensors:” cause i had it with sensor:… dumb

now add it as sensors: to my config yaml and who would have guessed, it works.

thanks man, you got me on the right track.

1 Like

Good to hear, I should have guessed that you might have had it buried in template: when I saw the dash in front of the sensor: as I knew that was wrong.

1 Like