cgarwood / homeassistant-fullykiosk

Fully Kiosk Browser integration for Home Assistant
Apache License 2.0
153 stars 27 forks source link

Installation fails in 2021.12.2 #68

Closed Boomer50BMG closed 2 years ago

Boomer50BMG commented 2 years ago

I added the integration within HACs and then rebooted. I went to add through integrations/Add Integration and fullykiosk isn't showing up as an option. Not really seeing anything of help in the log.

I did remove it and rebooted, then added it back via "Explore and Download Repositories". I then rebooted. Same issue. Please advise.

cgarwood commented 2 years ago

You may need to force-refresh your browser (Ctrl-F5 on the integrations page) for it to show up in the integration list after installing.

matusk commented 2 years ago

I have same issue in 2021.12.8 Installed from HACS , restarted, force-refreshed browser cache...

If I open this link https://my.home-assistant.io/redirect/config_flow_start/?domain=fullykiosk I get modal window with question "Do you want to set up fullykiosk?" and then error message: "Config flow could not be loaded"

In logs I have:

Cannot find integration fullykiosk
19:50:00 – (ERROR) config_entries.py

Logger: homeassistant.config_entries
Source: config_entries.py:711
First occurred: 19:50:00 (1 occurrences)
Last logged: 19:50:00
cgarwood commented 2 years ago

Are there any errors or warnings in the logs? Can you confirm the fullykiosk folder exists in your HA configuration directory's custom_components folder?

matusk commented 2 years ago

there is one more fullykiosk folder in the path custom_components/fullykiosk/fullykiosk/ I removed one fullykiosk directory from the path (moved files to parent directory) and the fullykiosk appeared in the "add integration" list.

swa72 commented 2 years ago

@matusk same here ...

cgarwood commented 2 years ago

Looks like this is an issue with HACS: https://github.com/hacs/integration/issues/2437

poldim commented 2 years ago

Looks like this is an issue with HACS: hacs/integration#2437

I'm also unable to configure this addon after install. I installed the integration via HACS. Rebooted. Then when I went to config -> I select to configure the new integration -> search for Fully and click on it. After a few minutes I get this error:

image

I'm not having the same issue you referenced from HACS of extra directories.

home-assistant/custom_components/fullykiosk$ ls
binary_sensor.py  config_flow.py  coordinator.py  light.py       media_player.py  sensor.py      strings.json  translations
button.py         const.py        __init__.py     manifest.json  number.py        services.yaml  switch.py

Let me know if you need me to check anything on my setup.

cgarwood commented 2 years ago

Are there any errors in your Home Assistant log?

poldim commented 2 years ago

Are there any errors in your Home Assistant log?

There are no errors in the HA log. But here is some more details: After reboot, I select to add the integration via devices page or via the link

This is shown for a bit: Iimage

Then I get this error:

image

Which is a 504 error via Cloudflare which I'm using for DNS protection.

image

Is your integration reaching out to the WAN for any reason?

Config flow could not be loaded: <!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]--> <!--[if IE 7]> <html class="no-js ie7 oldie" lang="en-US"> <![endif]--> <!--[if IE 8]> <html class="no-js ie8 oldie" lang="en-US"> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en-US"> <!--<![endif]--> <head> <title>MY_WAN_URL | 504: Gateway time-out</title> <meta charset="UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" /> <meta name="robots" content="noindex, nofollow" /> <meta name="viewport" content="width=device-width,initial-scale=1" /> <link rel="stylesheet" id="cf_styles-css" href="/cdn-cgi/styles/main.css" type="text/css" media="screen,projection" /> <script type="text/javascript"> (function(){if(document.addEventListener&&window.XMLHttpRequest&&JSON&&JSON.stringify){var e=function(a){var c=document.getElementById("error-feedback-survey"),d=document.getElementById("error-feedback-success"),b=new XMLHttpRequest;a={event:"feedback clicked",properties:{errorCode:504,helpful:a,version:1}};b.open("POST","https://sparrow.cloudflare.com/api/v1/event");b.setRequestHeader("Content-Type","application/json");b.setRequestHeader("Sparrow-Source-Key","c771f0e4b54944bebf4261d44bd79a1e"); b.send(JSON.stringify(a));c.classList.add("feedback-hidden");d.classList.remove("feedback-hidden")};document.addEventListener("DOMContentLoaded",function(){var a=document.getElementById("error-feedback"),c=document.getElementById("feedback-button-yes"),d=document.getElementById("feedback-button-no");"classList"in a&&(a.classList.remove("feedback-hidden"),c.addEventListener("click",function(){e(!0)}),d.addEventListener("click",function(){e(!1)}))})}})(); </script> </head> <body> <div id="cf-wrapper"> <div id="cf-error-details" class="p-0"> <header class="mx-auto pt-10 lg:pt-6 lg:px-8 w-240 lg:w-full mb-8"> <h1 class="inline-block sm:block sm:mb-2 font-light text-60 lg:text-4xl text-black-dark leading-tight mr-2"> <span class="cf-error-type">Error</span> <span class="cf-error-code">504</span> </h1> <span class="inline-block sm:block font-mono text-15 lg:text-sm lg:leading-relaxed">Ray ID: 6dda43e04eb3ed03 &bull;</span> <span class="inline-block sm:block font-mono text-15 lg:text-sm lg:leading-relaxed">2022-02-15 00:03:02 UTC</span> <h2 class="text-gray-600 leading-1.3 text-3xl font-light">Gateway time-out</h2> </header> <div class="my-8 bg-gradient-gray"> <div class="w-240 lg:w-full mx-auto"> <div class="clearfix md:px-8"> <div id="cf-browser-status" class=" relative w-1/3 md:w-full py-15 md:p-0 md:py-8 md:text-left md:border-solid md:border-0 md:border-b md:border-gray-400 overflow-hidden float-left md:float-none text-center"> <div class="relative mb-10 md:m-0"> <span class="cf-icon-browser block md:hidden h-20 bg-center bg-no-repeat"></span> <span class="cf-icon-ok w-12 h-12 absolute left-1/2 md:left-auto md:right-0 md:top-0 -ml-6 -bottom-4"></span> </div> <span class="md:block w-full truncate">You</span> <h3 class="md:inline-block mt-3 md:mt-0 text-2xl text-gray-600 font-light leading-1.3">Browser</h3> <span class="leading-1.3 text-2xl text-green-success">Working</span> </div> <div id="cf-cloudflare-status" class=" relative w-1/3 md:w-full py-15 md:p-0 md:py-8 md:text-left md:border-solid md:border-0 md:border-b md:border-gray-400 overflow-hidden float-left md:float-none text-center"> <div class="relative mb-10 md:m-0"> <span class="cf-icon-cloud block md:hidden h-20 bg-center bg-no-repeat"></span> <span class="cf-icon-ok w-12 h-12 absolute left-1/2 md:left-auto md:right-0 md:top-0 -ml-6 -bottom-4"></span> </div> <span class="md:block w-full truncate">San Jose</span> <h3 class="md:inline-block mt-3 md:mt-0 text-2xl text-gray-600 font-light leading-1.3">Cloudflare</h3> <span class="leading-1.3 text-2xl text-green-success">Working</span> </div> <div id="cf-host-status" class="cf-error-source relative w-1/3 md:w-full py-15 md:p-0 md:py-8 md:text-left md:border-solid md:border-0 md:border-b md:border-gray-400 overflow-hidden float-left md:float-none text-center"> <div class="relative mb-10 md:m-0"> <span class="cf-icon-server block md:hidden h-20 bg-center bg-no-repeat"></span> <span class="cf-icon-error w-12 h-12 absolute left-1/2 md:left-auto md:right-0 md:top-0 -ml-6 -bottom-4"></span> </div> <span class="md:block w-full truncate">home.khaz.me</span> <h3 class="md:inline-block mt-3 md:mt-0 text-2xl text-gray-600 font-light leading-1.3">Host</h3> <span class="leading-1.3 text-2xl text-red-error">Error</span> </div> </div> </div> </div> <div class="w-240 lg:w-full mx-auto mb-8 lg:px-8"> <div class="clearfix"> <div class="w-1/2 md:w-full float-left pr-6 md:pb-10 md:pr-0 leading-relaxed"> <h2 class="text-3xl font-normal leading-1.3 mb-4">What happened?</h2> <p>The web server reported a gateway time-out error.</p> </div> <div class="w-1/2 md:w-full float-left leading-relaxed"> <h2 class="text-3xl font-normal leading-1.3 mb-4">What can I do?</h2> <p class="mb-6">Please try again in a few minutes.</p> </div> </div> </div> <div class="feedback-hidden py-8 text-center" id="error-feedback"> <div id="error-feedback-survey"> Was this page helpful? <button class="border border-solid bg-white cf-button cursor-pointer ml-4 px-4 py-2 rounded" id="feedback-button-yes" type="button">Yes</button> <button class="border border-solid bg-white cf-button cursor-pointer ml-4 px-4 py-2 rounded" id="feedback-button-no" type="button">No</button> </div> <div class="feedback-success feedback-hidden" id="error-feedback-success"> Thank you for your feedback! </div> </div> <div class="cf-error-footer cf-wrapper w-240 lg:w-full py-10 sm:py-4 sm:px-8 mx-auto text-center sm:text-left border-solid border-0 border-t border-gray-300"> <p class="text-13"> <span class="cf-footer-item sm:block sm:mb-1">Cloudflare Ray ID: <strong class="font-semibold">6dda43e04eb3ed03</strong></span> <span class="cf-footer-separator sm:hidden">&bull;</span> <span class="cf-footer-item sm:block sm:mb-1"><span>Your IP</span>: MY_WAN_IP</span> <span class="cf-footer-separator sm:hidden">&bull;</span> <span class="cf-footer-item sm:block sm:mb-1"><span>Performance &amp; security by</span> <a rel="noopener noreferrer" href="https://www.cloudflare.com/5xx-error-landing" id="brand_link" target="_blank">Cloudflare</a></span> </p> </div><!-- /.error-footer --> </div> </div> </body> </html>
cgarwood commented 2 years ago

The integration only communicates with the IP/hostname you enter during the config flow for the Fully Kiosk tablet. Home Assistant itself communicates with the WAN for the brand icons I believe.

poldim commented 2 years ago

The integration only communicates with the IP/hostname you enter during the config flow for the Fully Kiosk tablet. Home Assistant itself communicates with the WAN for the brand icons I believe.

That's odd that I get that error then as it happens before anything is loaded or any IPs are inputed

poldim commented 2 years ago

Not sure what changes were made, but I'm on latest 2022.2.8 and thought I'd give it a try, and it loaded up the integration config flow as expected.

image