Hello, I’m having trouble using a regex template to extract a number from a string from an SNMP sensor. The SNMP string is:
"Timeticks: (60080629) 6 days, 22:53:26.29"
The homeassistant sensor doesn’t work, and in the logs:
SNMP error: noSuchName
(other snmp sesnors that return a numeric value are fine)
I’m hoping this is becuase its a string and not numeric?
I’m trying to use a regex template to get the number between paranthesis.
I’ve tried:
{{"Timeticks: (60080629) 6 days, 22:53:26.29" | regex_search('\(([^)]+)\)') }}
But this simply evaluates to True
since the string includes parenthesis.