I try to install the device_tracker component upc_connect. I am having a Ziggo connectbox NL.
In the documenation i read that this connect box is working with upc_connect.
But it is not working. I get the folowing error:
2019-01-26 11:20:36 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform upc_connectnk
Traceback (most recent call last):
File “/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/device_tracker/init.py”, line 173, in async_setup_platform
hass, {DOMAIN: p_config})
File “/home/homeassistant/.homeassistant/custom_components/device_tracker/upc_connectnk.py”, line 37, in async_get_scanner
success_init = await scanner.async_initialize_token()
File “/home/homeassistant/.homeassistant/custom_components/device_tracker/upc_connectnk.py”, line 101, in async_initialize_token
self.token = response.cookies[‘sessionToken’].value
KeyError: ‘sessionToken’
I got the feeling this component is broken, I tried with / without password and nothing changes. Always seeing the same error about the ‘sessionToken’.
Yes, here too it seems broken.
Today I updated my Hass.io from version 0.93.1 to 0.96.2. In the older version I got a warning, but it worked:
Your configuration contains extra keys that the platform does not support (but were silently accepted before 0.88). Please find and remove the following.This will become a breaking change.
- [password]. (See /config/configuration.yaml, line 65).
Offending data: {"platform": "upc_connect", "password": ******, "host": "<redacted>", "new_device_defaults": "<redacted>"}"
In the newer version the warning became an error message and it also did not function anymore. I had to revert back to the previous version.
My configuration file does indeed contain a password. I tried without it, but that simply doesn’t work. To me it also makes sense that this component needs a password, although the documentation does indeed not mention a password.
How can this be solved? What actions should be taken? This is obviously wrong!
Please ignore my previous message.
I now commented out the password in the configuration file and the device tracker still worked. After testing that for a while I updated Home Assistant and every still seems to work fine. I have no clue why in the past I was unable to make it work without a password.
I’m using the ziggo connectbox NL, apparently the username and password are not required (strange since I would expect it to be secure). Would be nice if anyone knows the reason and can shad a light on it.
It looks like these routers now require authentication to get the list of connected devices. There is a python library here which you can use to test your router. (This library’s code seems very same to one in homeassistant btw.) Still gives me 302
I’m also running into the KeyError: 'sessionToken' issue with my Ziggo Connect Box.
In my case it’s caused because my particular Connect Box / router (ARRIS TG2492LG) doesn’t work with the python library used by the upc_connect device_tracker. This Connect Box / router runs incompatible software.
It should be possible to make an device_tracker for this particular router. I already figured out which calls are required to login and retrieve the connected devices. But sadly I don’t have enough time at this moment to add a new device_tracker myself…
If someone wants to make the device_tracker for this particular Ziggo Connect Box I can provide the calls and information to retrieve the connected devices.
Other problem is after you successfull logged in to the modem with HA to discover, you cannot login twice to change settings in your modem (via browser --> http://192.168.178.1/common_page/login.html) , because HA is already logged in and it’s unpossible to login 2 times… see here for more people with same problems and little info
I’m also running into the KeyError: 'sessionToken' issue with my Ziggo Connect Box.
In my case it’s caused because my particular Connect Box / router (ARRIS TG2492LG) doesn’t work with the python library used by the upc_connect device_tracker. This Connect Box / router runs incompatible software.