-
Notifications
You must be signed in to change notification settings - Fork 27
Unable to add fullykiosk instances to homeassistant #54
Comments
What version of Fully Kiosk Browser is running on the tablet? |
One is running 1.44-play other is running 1.42.5-fire. Neither have been updated recently. |
Same problem here Logger: custom_components.fullykiosk.config_flow Unexpected exception
I think it is since I updated Fully and the android webview |
Deleted all webview updates, no improvement |
Yeah I had not updated the webview or fully (or the fullykiosk integration) before it stopped working. I think something changed in homeassistant that is causing the issue. My install of fully can be remote controlled using the web interface, so it's definitely not fully that is broken. |
Which version of homeassistant are you using? |
core-2021.9.7, but I've had the issue for a few days (weeks?) now. The media player functionality stopped working a while ago and I only just got to debugging it. Can't remember exactly how long ago it was. |
I get the same error:
That mime-type I get with curl as well:
So it seams that this code is raising the error:
So the error could be here: Fully-APP Version : 1.44-play |
Definitely this is a problem introduced with Fully Kiosk Browser version 1.44. Downgraded back to version 1.43.8 and all my FKB tablet sensors (RAM, Storage, Screen, App, Wifi statuses, etc etc) in Home Assistant show to be functioning again. Home Assistant version is 2021.9.7 |
@github-infohost-org Can you output the result of the curl command above with version 1.43.8? Insert the right IP address and your passport, execute it and post the result (but remove at least the password :-)… |
I can confirm that it is related to v1.44 Downgraded to 1.43 and everything is working. |
curl command output with 1.43
|
I also have the same problem running home assistant 2021.9.7, integration version 0.1.4 and fullykiosk app 1.44-play. |
@Bascht74, curl command output with 1.43.8: curl -v "http://xx:2323/?cmd=deviceInfo&password=xx&type=json"
< HTTP/1.1 200 OK |
Looks like they changed the Content-Type encoding from text/html to application/json.
If someone has some time and wants to test, try modifying that line in that file to just |
I am on a supervised installation. So no access to this file. |
I am on a hass install on a raspberry pi, but can't seem to find the file either. There's no /usr/local/lib/python3.9 . Does anyone know where I can find the fullykiosk library? |
Depends on how you have HA installed and what version of python you're running (venv or no venv/docker/etc) |
Just running Hass on a raspberry pi (no docker). I tried looking up the device properties via browser on 1.44-play vs 1.42.5-fire and I see the differences in the output that fully is returning. Assuming that the error in the issue was caused by the changes in fully v1.44, is there any information I can provide to help debug why I can't add the fire tablet (v1.42.5) either? The symptoms are the same - try to add the device with the information, it spins for a bit and then times out with "Failed to connect, please try again". |
Mod does not appear to work on 1.43, 2021-10-04 11:30:22 ERROR (MainThread) [custom_components.fullykiosk.coordinator] Error requesting x.x.x.x deviceInfo data: 0, messa /usr/local/lib/python3.9/site-packages/fullykiosk # ls -al from .exceptions import FullyKioskError _LOGGER = logging.getLogger(name) RESPONSE_STATUS = "status" class FullyKiosk:
class _RequestsHandler:
/usr/local/lib/python3.9/site-packages/fullykiosk # Will try shortly to upgrade FKB on tablet to 1.44 and see if it starts working... |
Sorry, those filenames are correct... this editor here is changing the underscores to bold type face! |
Mod works on 1.44!
< HTTP/1.1 200 OK |
@cgarwood Hi, or is there another possibility (e.g. that json() accepts both content types)? |
Fix implemented in the python lib, waiting on pypi to process it and will get an update for the component out |
New component released published, should be available in HACS shortly or I think you can force HACS to do a re-scan |
@cgarwood Thanks for the quick update! Just adding this here in case someone else has the same issue that I did. The latest integration still didn't fix my issue. I was seeing errors trying to reconnect to the tablets. I ended up reverting to a backup of HA where I had not yet deleted the fullykiosk integration. In the logs I found the two IPs that HA was trying to talk to, and gave those as permanent IPs for the two tablets. This brought everything back online. Reinstalling all of the latest HA core and supervisor updates has not yet broken anything, so I can only speculate that there is some 'persistent' storage of mac addresses/IP addresses of the fully kiosk tablets that not even an uninstall/reinstall of the fully kiosk integration seems to get rid of. This prevents me from adding 'the same mac address (or some other identifier)' to fullykiosk, even though the integration is empty after a clean install. The main feature request I would make is for there to be a way to change the IP address of the fullykiosk instance after everything has been set up. Everything works now, so I'm happy as a clam. Thanks! |
I've been using the fullykiosk integration (via HACS) on homeassistant for a few months now to control two tablets. A few days ago both tablets were marked unreachable in homeassistant. I assumed this was a result of my router changing the IP address of the tablets at some point. I couldn't figure out how to change the IP address for existing entities, so I tried to remove them, uninstall/reinstall fullkykiosk and try to add the tablets again. Now the tablets aren't getting added as fullykiosk instances. On the configuration page I enter this:
IP/Host: http://192.168.0.XXX
Port: 2323
Password: xxxx
It spins for a while and ultimately responds with: " Failed to connect, please try again ".
Looking through the logs, I found this:
Traceback (most recent call last):
File "/config/custom_components/fullykiosk/config_flow.py", line 80, in async_step_user
info = await validate_input(self.hass, user_input)
File "/config/custom_components/fullykiosk/config_flow.py", line 50, in validate_input
deviceInfo = await fully.getDeviceInfo()
File "/usr/local/lib/python3.9/site-packages/fullykiosk/init.py", line 29, in getDeviceInfo
result = await self.sendCommand("deviceInfo")
File "/usr/local/lib/python3.9/site-packages/fullykiosk/init.py", line 21, in sendCommand
data = await self._rh.get(
File "/usr/local/lib/python3.9/site-packages/fullykiosk/init.py", line 129, in get
data = await response.json(content_type="text/html")
File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 1097, in json
raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: application/json', url=URL('http://192.168.0.XXX:2323/?cmd=deviceInfo&password=xxxx&type=json')
If I put http://192.168.0.XXX:2323/?cmd=deviceInfo&password=xxxx&type=json into a browser, it loads a json page just fine. Not really sure what to do here. I have uninstalled/reinstalled fullykiosk in HA multiple times, rebooted the RPi between installs as well. Not sure what to do next. Any help would be appreciated. Thanks!
PS: If it helps, I'm using Nabu Casa, but all of the configuration is being done locally while I'm on the same network as HA/the tablets.
The text was updated successfully, but these errors were encountered: