Netgear devicetracker parsing issue

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”, “&LT” and “UNKNOWN&GT” 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&GT
name: ‘&lt’
picture:
track: true
vendor: unknown

unknowngt:
hide_if_away: false
mac: ‘&LT’
name: unknown&gt
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.

I had the same issue with a WNDR3700v2 router from netgear, i also fixed it like you did, however i also had an issue with parsing the entry since it was not formatted as expected by the code.

I have the same NetGear router. Does device tracking work for you (i.e. are you happy with that)? At the moment I get the following log lines:

INFO (SyncWorker_0) [homeassistant.components.netgear.device_tracker] Scanning
INFO (SyncWorker_0) [pynetgear] Get attached devices

and the component reports a bulk of device_tracker.unknown_NN to Home Assistant, but no IP addresses or MAC. How can I identify those devices?