This component will set up the following platforms.
Platform | Description |
---|---|
switch |
VSCode tunnel in your HA Docker container. Turn it on/off with the switch |
{% if not installed %}
- Install the custom component from HACS.
- Restart Home Assistant.
- In the HA UI go to "Configuration" -> "Integrations" click "+" and search for "Home Assistant VSCode Tunnel".
- Follow the installation instructions. Authenticating with github is required.
- Restart Home Assistant
- Turn on the VSCode Tunnel Switch entity to start the tunnel.
- Go to https://vscode.dev/your_tunnel_name to access your home assistant files (configuartion.yaml, etc)
- Turn off the VScode Tunnel Switch if you want to stop the tunnel and the associated external connection.
https://vscode.dev can't be opened in an iframe, so this will not work as a sidebar menu item in home assistant - YET! Apparently this feature has been requested and hopefully will be available soon! (see microsoft/vscode#150152)
{% endif %}
If you are having trouble with authentication, increase the timeout in the options.
If you are experiencing a "reload error" after browsing to https://vscode.dev/your_tunnel_name, ensure that you have "turned on" the switch in your home assistant instance. If you are still having difficulties browse to https://vscode.dev and select you tunnel instance from the workspace dropdown menu at the top of the page.
This project was generated from @oncleben31's Home Assistant Custom Component Cookiecutter template.
Code template was mainly taken from @Ludeeus's integration_blueprint template