-
-
Notifications
You must be signed in to change notification settings - Fork 28.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SNMP broken after upgrade to 0.78 #16679
Comments
There is a major changes in SNMP, see #14753 Please fill in your configuration and error log in bug report. |
Actually i managed to narrow the problematic config down. This bit causes the problem: - platform: snmp
host: 10.10.0.20
baseoid: 1.3.6.1.4.1.11.2.14.11.1.2.6.1.4.4
name: "Procurve 3500yl current temperature state"
community: "x"
#1 Invalid Value 2 Bad 3 Warning 4 Good 5 Not Present
- platform: snmp
host: 10.10.0.20
baseoid: 1.3.6.1.4.1.11.2.14.11.1.2.8.1.1.3.0
community: "x"
value_template: "{{ value.replace('C','') | int }}"
unit_of_measurement: "°C"
name: "Procurve 3500yl current temperature"
- platform: snmp
host: 10.10.0.20
baseoid: 1.3.6.1.4.1.11.2.14.11.1.2.8.1.1.4.0
community: "x"
value_template: "{{ value.replace('C','') | int }}"
unit_of_measurement: "°C"
name: "Procurve 3500yl maximum temperature"
- platform: snmp
host: 10.10.0.20
baseoid: 1.3.6.1.4.1.11.2.14.11.1.2.8.1.1.5.0
value_template: "{{ value.replace('C','') | int }}"
unit_of_measurement: "°C"
community: "x"
name: "Procurve 3500yl minimum temperature"
- platform: snmp
host: 10.10.0.20
baseoid: 1.3.6.1.4.1.11.2.14.11.1.2.8.1.1.6.0
name: "Procurve 3500yl over-temperature state"
community: "x"
# 1 - on; 2 - off;
- platform: snmp
host: 10.10.0.20
baseoid: 1.3.6.1.4.1.11.2.14.11.1.2.8.1.1.7.0
name: "Procurve 3500yl temperature threshold"
value_template: "{{ value.replace('C','') | int }}"
unit_of_measurement: "°C"
community: "x" And i believe that 'value_template:' option here may be preventing HA from starting up. |
Can you edit your local change value = self._value_template.async_render_with_possible_json_value(
value, STATE_UNKNOWN) |
Seems that this has fixed the problem - HA is booting correctly now. Thank you! |
cc @mtdcr |
I can confirm that this seems to have fixed the problem for me: Once I worked out how to edit a file inside a Docker container. |
vi never fails :) |
@awarecan, thank you for locating the problem! Would you mind creating the PR? |
I don't have environment to test |
Home Assistant release with the issue: 0.78
Last working Home Assistant release (if known):
0.77.3
Operating environment (Hass.io/Docker/Windows/etc.):
Intel NUC docker image running on Ubuntu
Component/platform:
SNMP sensor
Description of problem:
After upgrading to 0.78 HA stopped working. Using trial and error method (removing yaml files one by one) i found out that the problem is caused by my SNMP config. There shouldnt be any breaking changes regarding SNMP in 0.78.
Problem-relevant
configuration.yaml
entries and (fill out even if it seems unimportant):Traceback (if applicable):
Only the last few lines of log are relevant to SNMP
The log ends here.
Additional information:
The text was updated successfully, but these errors were encountered: