SNMP causing issues with system

So I was posting a bunch of items that I was recently having issues with. I was getting a lot of warnings about SNMP taking more than 10 seconds to load but then other things started to happen like.


After my last reboot of HA noticed in the logs that metno isn’t working anymore

2020-01-25 10:10:20 ERROR (MainThread) [metno] https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/1.9/ returned

Not sure what I’m seeing is the full command but still erroring during startup.


Then also saw loads of issues with groups and other things taking a long time to connect.

Then got the below composite tracker issues:

2020-01-25 09:20:31 WARNING (SyncWorker_0) [custom_components.composite.device_tracker] device_tracker.john_s_iphone_unifi unsupported source_type: None
2020-01-25 09:20:31 WARNING (SyncWorker_9) [custom_components.composite.device_tracker] device_tracker.sue_s_iphone_unifi unsupported source_type: None

Then also getting errors connecting to my unifi controller

2020-01-25 08:52:47 ERROR (MainThread) [homeassistant.components.unifi] Error connecting to the UniFi controller at 192.168.0.1

When the controller is running and if I stop and start it again after the system was loaded it would connect.

So I commented out some of my yaml files with all my SNMP sensors including the below and the problems went away. All of them. Any idea?

sensor_dell2130cn.yaml:

- platform: snmp
  name: Dell 2130CN Cyan
  host: 192.168.0.4
  baseoid: 1.3.6.1.2.1.43.11.1.1.9.1.1
  accept_errors: true
  scan_interval: 21600
  unit_of_measurement: '%'
  value_template: "{{ ((value | float / 2500)*100) | int }}"

- platform: snmp
  name: Dell 2130CN Magenta
  host: 192.168.0.4
  baseoid: 1.3.6.1.2.1.43.11.1.1.9.1.2
  accept_errors: true
  scan_interval: 21600
  unit_of_measurement: '%'
  value_template: "{{ ((value | float / 2500)*100) | int }}"

- platform: snmp
  name: Dell 2130CN Yellow
  host: 192.168.0.4
  baseoid: 1.3.6.1.2.1.43.11.1.1.9.1.3
  accept_errors: true
  scan_interval: 21600
  unit_of_measurement: '%'
  value_template: "{{ ((value | float / 2500)*100) | int }}"

- platform: snmp
  name: Dell 2130CN Black
  host: 192.168.0.4
  baseoid: 1.3.6.1.2.1.43.11.1.1.9.1.4
  accept_errors: true
  scan_interval: 21600
  unit_of_measurement: '%'
  value_template: "{{ ((value | float / 2500)*100) | int }}"

- platform: snmp
  name: Dell 2130CN Status
  host: 192.168.0.4
  baseoid: 1.3.6.1.2.1.43.17.6.1.5.1.1
  accept_errors: true
  scan_interval: 1000

- platform: snmp
  name: Dell 2130CN Status 2
  host: 192.168.0.4
  baseoid: 1.3.6.1.2.1.43.17.6.1.5.1.2
  accept_errors: true
  scan_interval: 1000

- platform: snmp
  name: Dell 2130CN Ready
  host: 192.168.0.4
  baseoid: iso.3.6.1.2.1.43.16.5.1.2.1.1
  accept_errors: true
  scan_interval: 1000

- platform: snmp
  name: Dell 2130CN Name
  host: 192.168.0.4
  baseoid: iso.3.6.1.2.1.25.3.2.1.3.1
  accept_errors: true
  scan_interval: 86400
  value_template: "{{ value.split(';')[0] }}"

- platform: snmp
  name: Dell 2130CN How Long Up
  host: 192.168.0.4
  baseoid: 1.3.6.1.2.1.1.3.0
  accept_errors: true
  scan_interval: 3600
  unit_of_measurement: 'Days'
  value_template: "{{ (value | int / 8640000) | int }}"

- platform: snmp
  name: Dell 2130CN Pages Printed
  host: 192.168.0.4
  baseoid: iso.3.6.1.2.1.43.10.2.1.4.1.1
  accept_errors: true
  scan_interval: 3600

and my other printer of sensor_canonmf8580cdw.yaml:

- platform: snmp
  name: Canon MF850CDW Black
  host: 192.168.0.6
  baseoid: 1.3.6.1.2.1.43.11.1.1.9.1.1
  accept_errors: true
  scan_interval: 21600
  unit_of_measurement: '%'

- platform: snmp
  name: Canon MF8580CDW Cyan
  host: 192.168.0.6
  baseoid: 1.3.6.1.2.1.43.11.1.1.9.1.2
  accept_errors: true
  scan_interval: 21600
  unit_of_measurement: '%'

- platform: snmp
  name: Canon MF8580CDW Magenta
  host: 192.168.0.6
  baseoid: 1.3.6.1.2.1.43.11.1.1.9.1.3
  accept_errors: true
  scan_interval: 21600
  unit_of_measurement: '%'

- platform: snmp
  name: Canon MF8580CDW Yellow
  host: 192.168.0.6
  baseoid: 1.3.6.1.2.1.43.11.1.1.9.1.4
  accept_errors: true
  scan_interval: 21600
  unit_of_measurement: '%'

- platform: snmp
  name: Canon MF8580CDW Status
  host: 192.168.0.6
  baseoid: 1.3.6.1.2.1.25.3.5.1.2.1
  accept_errors: true
  scan_interval: 1000
  value_template: "{%if value|int(base=16) == 0 %}OK{% else %}Failed{% endif %}"

- platform: snmp
  name: Canon MF8580CDW Name
  host: 192.168.0.6
  baseoid: 1.3.6.1.2.1.25.3.2.1.3.1
  accept_errors: true
  scan_interval: 86400

- platform: snmp
  name: Canon MF8580CDW How Long Up
  host: 192.168.0.6
  baseoid: 1.3.6.1.2.1.1.3.0
  accept_errors: true
  scan_interval: 3600
  unit_of_measurement: 'Days'
  value_template: "{{ ((value | float / 8640000) | float) | round(1) }}"

- platform: snmp
  name: Canon MF8580CDW Pages Printed
  host: 192.168.0.6
  baseoid: 1.3.6.1.4.1.1602.1.11.2.1.1.3.1
  accept_errors: true
  scan_interval: 3600

- platform: snmp
  name: Canon MF8580CDW B/W Pages Printed
  host: 192.168.0.6
  baseoid: 1.3.6.1.4.1.1602.1.11.2.1.1.3.3
  accept_errors: true
  scan_interval: 3600

- platform: snmp
  name: Canon MF8580CDW Color Pages Printed
  host: 192.168.0.6
  baseoid: 1.3.6.1.4.1.1602.1.11.2.1.1.3.5
  accept_errors: true
  scan_interval: 3600

EDIT: If I just put the Dell Printer yaml back in everything seems to be working but adds in one

2020-01-25 10:47:03 WARNING (MainThread) [homeassistant.components.weather] Setup of weather platform met is taking over 10 seconds.

If I switch off the Dell yaml and enable Canon same singular warning.

Should be noticed I am also monitoring two APCs with SNMP. Those are still enabled.

Similar issue here, If I have snmp sensors for more than one host I get one value for two different sensors…
P

This seems to be still an issue. Ever solved?