The net-gear device tracker is parsing information returned from my router incorrectly.
Some of my devices show up as on in my routers web interface and I can strings like “LT”, “<” and “UNKNOWN>” in my known_devices.yaml. Renaming things in router’s interface didn’t help.
Does anyone know of a fix?
My known_devices.yaml
lt:
hide_if_away: false
mac: UNKNOWN>
name: ‘<’
picture:
track: true
vendor: unknown
unknowngt:
hide_if_away: false
mac: ‘<’
name: unknown>
picture:
track: true
vendor: unknown
Update; I solved it by editing the python Script. I did a replacement before it’s split. The fix looks something like this. (around line 65 in pynetgear/init.py)
temp = re.compile('<unknown>')
junk = temp.sub('unknown', response)
data = re.search(r"<NewAttachDevice>(.*)</NewAttachDevice>",
junk).group(1).split(";")
Sorry about posting so quick, I have no python experience and I didn’t realize how easy the fix was.
last update - That fixed the errors but over all it didn’t work very well. I’m just going to give up on it.