tsunglung / XiaomiAirFryer

Xiaomi Smart Air Fryer integration for Home Assistant
MIT License
74 stars 21 forks source link

Configuration wizzard error #13

Open kbalint opened 1 year ago

kbalint commented 1 year ago

Hi, I've installed the plugin via Hacks, and try to to configure it, it fails with the error:

Config flow could not be loaded: <html> <head><title>504 Gateway Time-out</title></head> <body> <center><h1>504 Gateway Time-out</h1></center> <hr><center>nginx</center> </body> </html> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page -->

I have the Xiaomi Miio plugin installed, and working with other integrations.

I'm running my HA as a docker container.

As per the config_flow.py I guess it must be something with the self-referencing URL of my Home assistant instance? I tried to run it on the local addres (http://hass.custom.local:8123) and the outer address (eg. https://hass.example.com) but same error. How can I debug it? Thanks.

kikofhm commented 1 year ago

I have the same problem. Doesn't show the login form page to insert mail and password from Xiaomi account

KochergaAlex commented 1 year ago

And I have the same problem. Doesn't show the login form page to insert mail and password from Xiaomi account

luca-angemi commented 10 months ago

For those who feel comfortable changing storage data I managed to workaround this issue until it's fixed.

Add an entry into the core.config_entries file, such as this, change accordingly to your model and restart HA

      {
        "entry_id": "007e07a8326bf509ef2d3f0dc00a495d", 
        "version": 1,
        "minor_version": 1,
        "domain": "xiaomi_airfryer",
        "title": "Xiaomi Smart Air Fryer 6.5L", 
        "data": {},
        "options": {
          "config_flow_device": "device",
          "host": "192.168.1.36", 
          "token": "xxxxxxxxxxxxxxxxxxxxx",
          "model": "careli.fryer.maf10a",
          "mac": "aa:bb:cc:dd:ee:ff", 
          "cloud_username": "yourmail@mail.com",
          "cloud_password": "password",
          "cloud_country": "de"
        },
        "pref_disable_new_entities": false,
        "pref_disable_polling": false,
        "source": "user",
        "unique_id": "aa:bb:cc:dd:ee:ff",
        "disabled_by": null
      },