Automatic SNMP update/refresh possible?

I’m very new to Home Assistant, so forgive me if I butcher some terms here…

Is it possible to have an SMNP entity on a card auto-update? Below is my code to query the temperature from a one of my WeatherGoose/Geist temperature monitors. It works great, but the temp doesn’t update.

After reading forum post I thought my code would make it refresh every 30 seconds, but it’s simply not working. Any ideas on how to get my entity to auto-update every 30 seconds or so?

my code within configuration.yaml:

  • platform: snmp
    name: WeatherGoose - Attic
    host:
    version: “3”
    username: “removed”
    auth_key: “removed”
    auth_protocol: “hmac-md5”
    priv_key: “removed”
    priv_protocol: “des”
    baseoid: 1.3.6.1.4.1.21239.2.2.1.6.1
    device_class: “temperature”
    unit_of_measurement: “°F”
    scan_interval: “30”
    accept_errors: true

Try removing the quotes around the scan_interval value. The examples I have seen show it as a number, not a string.

No dice. I took away the quotes and restarted. I have 2 identical devices and one says it was updated “6 minutes ago” and the other says “22 minutes ago”. I have no idea why they say different things.

  • In case it matters, the way I’m monitoring the update frequency is by editing the entity with the card setup and selecting the radio button under ‘secondary information’ that says ‘last updated’.

  • also, incase it matters… I’m running the HAOS directly installed to an Intel Compute stick.

I’m not actually sure SNMP supports scan_interval(the doc doesn’t mention it) but anyway, “last updated” means the last time the state actually changed, not the last time it was checked.

So, are you positive the value changed in between?

If ‘Last Updated’ means ‘last changed’, then what does the ‘last changed’ option mean?

And no… I’m not sure if it changed or not. The boxes are in my attic and crawl space, not easy to get to. I’m basing my thinking off the feedback of the GUI.

TL;DR: Attributes.

Yeah. I didn’t find any mnemonic to remember which is which, but “last_updated” is updated whether state or attribute has been updated, and “last_changed” is changed when the state only has changed :smiley:

But the bottom-line is that neither change if a “pull” is done and the state and attribute are the same as the current one, so using either to assess whether the “pull” is actually happening and at what rate is wrong.

1 Like

Sounds good. I can’t say it fully makes sense to me at this stage of my Home Assistance education, but I’ll just roll with it. All in all, it sounds like things are likely ‘working as intended’.

I may just need to go low tech and aim a hair dryer at the sensor to confirm how quickly the GUI updates.

I do appreciate everyone’s help.

:joy:
Yep, good technique