XiaomiAirFryer icon indicating copy to clipboard operation
XiaomiAirFryer copied to clipboard

Configuration wizzard error

Open kbalint opened this issue 1 year ago • 3 comments

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.

kbalint avatar Jul 25 '23 11:07 kbalint

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

kikofhm avatar Oct 20 '23 15:10 kikofhm

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

KochergaAlex avatar Oct 29 '23 10:10 KochergaAlex

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": "[email protected]",
          "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
      },
  • entry_id: any random 32 chars string
  • title: name of the integration, can be changed later
  • host: the local ip of your fryer
  • token: the token of your fryer
  • model: model of your fryer
  • mac: mac address of your device
  • cloud_username: email of your xiaomi account
  • cloud_password: password of your xiaomi account
  • cloud_country: server of your xiaomi account
  • unique_id: mac address of your device

luca-angemi avatar Jan 12 '24 08:01 luca-angemi