esphome/esphome-vscode

Cannot connect to ESPHome dashboard

Salvora opened this issue · 4 comments

I have set up the addon as instructed.

ssl: true
certfile: fullchain.pem
keyfile: privkey.pem
leave_front_door_open: true

I can access the dashboard just fine.
but the vscode extension cannot connect for some reason:
Cannot connect to ESPHome dashboard. Make sure you can access 'https://ha.home.org:6052/' and have set the option 'leave_front_door_open': true
dashboard uri:
https://ha.home.org:6052

what happens when you input that url on your web browser?

It opens up the ESPHome dashboard

and

https://ha.home.org:6052/vscode shows. "Can "Upgrade" only to "WebSocket"."

Additionally, same things happens when I use the VSCode addon of HA. When I switch file type to esphome, it throws an error.
The configuration for it is set like this: 15ef4d2f-esphome.local.hass.io:6052
Esphome is also accessible on local network with no problem.

The VS Code extension doesn't support SSL-secured endpoints at the moment. I opened #49 to fix it.