Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

How to translate snmp value with value_template

$
0
0

@jriker1 wrote:

I have a result that comes in from SNMP

iso.3.6.1.2.1.25.3.5.1.2.1 = Hex-STRING: 00

with platform: snmp

When I try:

value_template: “{%if value == ‘0’ %}OK{% else %}Failed{% endif %}”

or

value_template: “{%if value == ‘00’ %}OK{% else %}Failed{% endif %}”

It returns Failed any idea what I’m doing wrong?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>