After an extensive search on google for a device tracker for the Experia Box V10, I arrived at the conclusion that this integration did not exist. Thus I have created it. Based on the script created by MvdB (Device tracker for Arcadyan VGV7519 router (Experia Box V8)), I changed the requests that are being performed to match those that are necessary for the ZTE router that KPN and Telfort are currently supplying to customers.
Thanks!! This is exactly what Iāve been looking for. Iāve been using nmap as a workaround.
I tried your script, but it gives an error:
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 180, in _step
result = coro.send(None)
File "/usr/src/app/homeassistant/components/device_tracker/__init__.py", line 738, in async_device_tracker_scan
found_devices = yield from scanner.async_scan_devices()
AttributeError: 'ZteH369ADeviceScanner' object has no attribute 'async_scan_devices'
The script does access the router, because if I try to log in it says that another user is currently logged on, however I guess it doesnāt report back to homeassistant.
I run homeassistant in Docker on a QNAP NAS. I tried restarting and reinstalling homeassistant, but no luck so far.
Iāve just updated the script. Noticed I hadnāt saved the latest version of the file. Try again with the new version, that should work for you!
As far as the router goes - thatās the behaviour I would expect. If you need to access the router for some reason, you can also safely tell the interface to log the other user off. This wonāt get in the way of presence detection.
Seems to work however after using the script in Hass.io itās impossible to get in the webbased admin of the router because of the Admin is always logged in inside Hass.io.
Any suggestions how to fix this? First thought was creating an extra user on the router however thatās impossible on the Experiabox V10.
As far as the router goes - thatās the behaviour I would expect. If you need to access the router for some reason, you can also safely tell the interface to log the other user off. This wonāt get in the way of presence detection.
Well thatās the issue, if i tell the router to log of the current logged in admin user it doesnāt do a thing. I canāt get into the experiabox anymore as long as the device tracker is running. Solution for now is to comment the device tracker config, reboot hassio and then log in to the router but itās far from ideal.
Thatās odd - on my interface I can simply select the user thatās logged in, with the radio button in front of it, and force the interface to log them off. Iāll see at some point this week if I can update the script to log the user off properly. It seems to be ignoring the last request it makes to the router.
Iāve just updated the script to resolve this issue. Unless you time your router configuration session at exactly the same time as the device tracker checks your status, you now wonāt get the notification that someone is already logged in on the router. Update your script, restart home assistant and let me know if it works for you!
Today I installed two āExperia Wifiā access points, which KPN gives out for free if your Wifi isnāt sufficient (can be tested through the wifi tuner: https://www.kpn.com/internet/wifi/tuner.htm). Unfortunately these Access points turn off the Wifi of the V10 and all devices are shown as LAN devices. Is there any way to track them through this device tracker?
Unfortunately these access points are not currently supported by this plugin. Since I donāt have these access points myself Iām, as of right now, also unable to help in developing this functionality.
Iām open to assist if someone picks this up though.
Hi Sjaak, I managed to track the wifi devices through the list of LAN clients (as they are listed there) by changing AccessMode=WLAN to AccessMode=LAN in the data-url in experiaboxv10.py.
Unfortunately after turning the wifi connection off on my phone the phone still stays listed in the LAN clients list on the Experiabox. I thought lowering the DHCP lease 60 second would be a solution for that, but no. The device stays listed. Any idea on this?
Iām going to assume that this is caused by the router displaying the registered rather than the active LAN devices. My first thought would be that you need to take the list of WiFi devices from these access points instead of from your router.
@Maur1ce
I havenāt tested, but please configure it and let us know if it works. I donāt have one of these boxes myself to test with.
@ruddie
That error seems to be something related to hassio. Could you include the logs that are generated upon boot? You should be able to find them in the āInfoā panel of Hassio.local
Iāve just tried it with the V10A. It gives no errors but I havnāt got it to track my phone just yet. It added my KPN videobox to the known_devices while i had ātrack_new_devices: falseā.
Iām going to play with this some more to see if I can make it to work. Or does anyone have the solution?