core: Unable to add the switchbot integration through UI
The problem
Steps to reproduce:
- Click Integrations tab (bottom left)
- Click “Add integration”
- Search for Switchbot using the search box; select Switchbot
- Wait a few seconds, a spinner with text
Please wait while SwitchBot is being setupis displayed. - Error popup is is shown with the text below (I use nginx frontend, btw):
I checked the core logs, and I did not see any relevant entries.
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 -->
What version of Home Assistant Core has the issue?
core-2022.3.0
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
switchbot
Link to integration documentation on our website
https://www.home-assistant.io/integrations/switchbot/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 18 (4 by maintainers)
Try adding --privileged -v /dev/bus/usb:/dev/bus/usb when running docker. This has solved this issue for me. So you socker script might look like : sudo docker run -id --name=“home-assistant” --privileged --restart on-failure -e “TZ=Asia/Riyadh” --net=host -v /volume1/docker/home-assistant:/config - -v /volume1/docker/shared:/shared -v /var/run/docker.sock:/var/run/docker.sock -v /dev/bus/usb:/dev/bus/usb homeassistant/home-assistant
Same here, but with a fresh install using docker. Unable to add the switchbot integration (neither using the app nor the website). Any help appreciated.