GithubHelp home page GithubHelp logo

hassio-addons / addon-vscode Goto Github PK

View Code? Open in Web Editor NEW
461.0 16.0 77.0 1.13 MB

Studio Code Server - Home Assistant Community Add-ons

Home Page: https://addons.community

License: MIT License

Dockerfile 48.54% Shell 26.93% Jinja 24.53%
vscode ide code-server home-assistant homeassistant addon addons

addon-vscode's Introduction

Home Assistant Community Add-on: Studio Code Server

GitHub Release Project Stage License

Supports aarch64 Architecture Supports amd64 Architecture Supports armhf Architecture Supports armv7 Architecture Supports i386 Architecture

Github Actions Project Maintenance GitHub Activity

Discord Community Forum

Sponsor Frenck via GitHub Sponsors

Support Frenck on Patreon

A VSCode experience, accessible through the browser.

Studio Code Server in the Home Assistant Frontend

About

This add-on runs code-server, which gives you a Visual Studio Code experience straight from the browser. It allows you to edit your Home Assistant configuration directly from your web browser, directly from within the Home Assistant frontend.

The add-on has the Home Assistant, MDI icons and YAML extensions pre-installed and pre-configured right out of the box. This means that auto-completion works instantly, without the need for configuring anything.

๐Ÿ“š Read the full add-on documentation

Support

Got questions?

You have several options to get them answered:

You could also open an issue here GitHub.

Contributing

This is an active open-source project. We are always open to people who want to use the code or contribute to it.

We have set up a separate document containing our contribution guidelines.

Thank you for being involved! ๐Ÿ˜

Authors & contributors

The original setup of this repository is by Franck Nijhof.

For a full list of all authors and contributors, check the contributor's page.

We have got some Home Assistant add-ons for you

Want some more functionality to your Home Assistant instance?

We have created multiple add-ons for Home Assistant. For a full list, check out our GitHub Repository.

License

MIT License

Copyright (c) 2019-2024 Franck Nijhof

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

addon-vscode's People

Contributors

adamfeldman avatar casperklein avatar dependabot[bot] avatar felipecrs avatar frenck avatar glmnet avatar hjanum avatar hoppingmonk avatar lukewaite avatar mdegat01 avatar myztillx avatar niklaswa avatar renovate[bot] avatar riemers avatar sinclairpaul avatar theredbull205 avatar timmo001 avatar tjorim avatar wrt54g avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

addon-vscode's Issues

Can see the add-on in Hass.io tab but can't install it

Problem/Motivation

Cannot install the add-on.

Expected behavior

To be installed as any other add-on in the repo.

Actual behavior

Add-on is greyed-out, with red icon, saying "not available".

Steps to reproduce

....

Proposed changes

...
download

Renaming a file fails

Problem/Motivation

When i try to rename a .yaml file i will "jump out" of renaming mode and my typing becomes some kind of search instead.

Expected behavior

The file name to be edited until i click "enter"

Actual behavior

(What actually happened)

Steps to reproduce

I copied a .yaml file and pasted it in my "packages" folder, the if i click F2 or if right mouse click and choose "rename" i get same problem.
Running the latest 1.1.0 addon version

Proposed changes

(If you have a proposed change, workaround or fix,
describe the rationale behind it)
Screenshot McDesktop 2019-11-03 14_25_10
Screenshot McDesktop 2019-11-03 14_24_28

Trying to rename "androidtv copy" to "sonoff"

nginx: [emerg] open() "/proc/1/fd/1" failed (13: Permission denied)

Problem/Motivation

add-on fails to start,
502: Bad Gateway

Expected behavior

open gui

Actual behavior

Apparently a permissions issue preventing nginx from starting.

See

nginx: [emerg] open() "/proc/1/fd/1" failed (13: Permission denied)
$ sudo ls -l /proc/1/fd/1
lrwx------ 1 root root 64 Jul 31 14:42 /proc/1/fd/1 -> /dev/null

in log below.

Log:

-----------------------------------------------------------
 Hass.io Add-on: Visual Studio Code
 Fully featured VSCode experience, to edit your HA config in the browser, including auto-completion!
-----------------------------------------------------------
 Add-on version: 0.6.1
 You are running the latest version of this add-on.
 System: Ubuntu 18.04.2 LTS  (amd64 / intel-nuc)
 Home Assistant version: 0.96.5
 Supervisor version: 170
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] code-server.sh: executing... 
[cont-init.d] code-server.sh: exited 0.
[cont-init.d] nginx.sh: executing... 
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] user.sh: executing... 
[cont-init.d] user.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[14:36:00] INFO: Starting the code server...
(node:403) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
INFO  code-server v1.1156-vsc1.33.1
INFO  Additional documentation: http://github.com/cdr/code-server
INFO  Initializing {"data-dir":"/data/vscode","extensions-dir":"/data/vscode/extensions","working-dir":"/config","log-dir":"/root/.cache/code-server/logs/20190731213602038"}
INFO  Starting webserver... {"host":"127.0.0.1","port":"8443"}
WARN  No certificate specified. This could be insecure.
WARN  Documentation on securing your setup: https://github.com/cdr/code-server/blob/master/doc/security/ssl.md
WARN   
WARN  Launched without authentication.
INFO   
INFO  Started (click the link below to open):
INFO  http://localhost:8443/
INFO   
INFO  Starting shared process [1/5]...
[14:36:02] INFO: Starting NGinx...
nginx: [emerg] open() "/proc/1/fd/1" failed (13: Permission denied)
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing... 
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

Websocket connection failed: One or more reserved bits are on

Problem/Motivation

VS Code shows black screen, no interface loads.

Expected behavior

VS Code should load.

Actual behavior

VS Code shows black screen, no interface loads.

Browser console infinitely throws ide.main.c231df.js:53 WebSocket connection to 'wss://redacted/api/hassio_ingress/redacted/' failed: One or more reserved bits are on: reserved1 = 0, reserved2 = 1, reserved3 = 1.

Steps to reproduce

Fresh install, default settings.

Is ingress forced in v2.0?

Problem/Motivation

I can't connect over the local port (default to 1337) after upgrading to 2.0. I'm using a chromebook, and installed code server as a progressive web app on it. When using it through Home Assistant in the browser i can't use shortcuts like ctrl+tab to navigate.

Expected behavior

The port to accept connections.

Actual behavior

VS Code does not load anymore without ingress. Also i can't see the network parameters for the addon anymore.

Steps to reproduce

Upgrade to 2.0 and try without ingress.

Proposed changes

Add the possibility to use without ingress.

Can not run on Pi

Problem/Motivation

Just a suggestion.

Expected behavior

"Assumed" that it would run on a pi

Actual behavior

got an error message "This add-on is not available on your system."

Steps to reproduce

try to install it on a pi

Proposed changes

Add a remark/warning in the text that it will not run on Pi/ARM ...

still not working here - it crashes Hassio -

Problem/Motivation

it just hangs after starting , it shows the files structure on the left , but by clicking any , it wont open and remains there " waiting" .
then , the addon simply crashes the home assistant.

(Why the issue was filed)

Expected behavior

(What you expected to happen)

Actual behavior

after rebooting , received this log error

ModuleNotFoundError: No module named 'distutils.util'
[10:19:09] FATAL: Failed executing init command: pip3 install yamllint
[cont-init.d] 81-user-scripts.sh: exited 1.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing... 
-----------------------------------------------------------
                Oops! Something went wrong.

 We are so sorry, but something went terribly wrong when
 starting or running this add-on.
 
 Be sure to check the log above, line by line, for hints.
-----------------------------------------------------------
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

(What actually happened)

Steps to reproduce

(How can someone else make/see it happen)

Proposed changes

(If you have a proposed change, workaround or fix,
describe the rationale behind it)

Context menu to reload automations/themes/etc

This is both an feature request and a issue.

Currently I'm using "Configurator" in the Hassio addons to make changes to files. Home Assistant needs a reload command for specific files to reread them and "Configurator" has a little menu to reload certain things, which comes in handy almost every time.

image

The VSCode Addon in Hassio completely lacks this menu, which makes me switch back and forth between pages just to reload something, which can be very tedious. That's why I'm still on "Configurator".

A additional context menu to reload all those things would be awesome!

Won't accept password

Problem/Motivation

Can't open vscode

(Why the issue was filed)
VScode gets to logon screen but won't accept password

Expected behavior

(What you expected to happen)

Actual behavior

just keeps looping and asking for password

(What actually happened)

parse error: Expected string key before ':' at line 1, column 4
[18:31:52] ERROR: Unknown HTTP error occured
 System:   (amd64 / qemux86-64)
 Home Assistant version: 0.90.2
 Supervisor version: 150
.
.
.
.
.
ERROR Failed to parse cookies {"error":{}}
ERROR Failed to parse cookies {"error":{}}
ERROR Failed to parse cookies {"error":{}}
ERROR Failed to parse cookies {"error":{}}
ERROR SHARED stderr {"data":"Uncaught Exception:  Error: ENOENT: no such file or directory, open '/data/vscode/Backups/workspaces.json'\n\nError: ENOENT: no such file or directory, open '/data/vscode/Backups/workspaces.json'\n    at Timeout.setTimeout [as _onTimeout] (eval at exports.requireModule (/usr/local/bin/code-server:468:27625), <anonymous>:56921:31)\n    at ontimeout (timers.js:498:11)\n    at tryOnTimeout (timers.js:323:5)\n    at Timer.listOnTimeout (timers.js:290:5)\n"}
ERROR Failed to parse cookies {"error":{}}
ERROR Failed to parse cookies {"error":{}}
ERROR Failed to parse cookies {"error":{}}
ERROR Failed to parse cookies {"error":{}}

Just using default config with a !secret password...

image

Addon config:

{
  "password": "!secret vscodesecret",
  "ssl": false,
  "certfile": "fullchain.pem",
  "keyfile": "privkey.pem",
  "packages": [],
  "init_commands": []
}

Also tried switching protection mode off..

Steps to reproduce

(How can someone else make/see it happen)

Proposed changes

(If you have a proposed change, workaround or fix,
describe the rationale behind it)

Custom yaml tag for !secret

Problem/Motivation

VS Code YAML validator highlights "!secret" as invalid. As this is very common in Home Assistant configs and is valid, adding a custom YAML tag would make sense.

Steps to reproduce

Open a yaml file with a !secret reference in it and the YAML validator will mark the file red (error).

Proposed changes

Would be nice if the vs code user settings.json would already contain the custom yaml tag for !secret. I played around and this does seem to work;

"yaml.customTags": [
    "!secret scalar",
]

Is possible to add the requirements to documentation for install the addon?

Problem/Motivation

I have Pi3 with Hassio but I can't install the addon

Expected behavior

Actual behavior

Can' install the addon
" This add-on is not available on your system."

Steps to reproduce

Hassio Menu > Addon store > Search for Visual Studio Code

Proposed changes

Add requirements sections to the documentation

Syntax checker doesn't support attribute_templates: in sensor template

Problem/Motivation

Below is valid code supported by Home Assistant and documented on https://www.home-assistant.io/integrations/template/

Expected behavior

Correct syntax check

Actual behavior

False syntax check

Steps to reproduce

 - platform: template
    sensors:
      aqi_nitrogen_dioxide:
        friendly_name: Stikstofdioxide
        icon_template: mdi:car
        unit_of_measurement: 'PPM'
        value_template: >
          {{ states.sensor.waqi_bamendaweg_dordrecht.attributes.nitrogen_dioxide }}
        attribute_templates:
          friendly: >-
            {% set nox = states('sensor.aqi_nitrogen_dioxide') | int(-1) %}
            {% if nox > 300 %}
              Schadelijk
            {% elif nox > 200 %}
              Erg slecht
            {% elif nox > 150 %}
              Slecht
            {% elif nox > 100 %}
              Slecht voor gevoelige mensen
            {% elif nox > 50 %}
              Matig
            {% elif nox >= 0 %}
              Goed
            {% else %}
              unknown
            {% endif %}

Screenshot from 2019-11-07 11-51-21

Proposed changes

Add/fix support for syntax check of attribute_templates in sensor template

Home Assistant
Instructions on how to integrate Template Sensors into Home Assistant.

files do not open , and hassio was restarted.

Problem/Motivation

the file list is shown , but after selecting the send file , it wont open. it just stays in "waiting" mode.

(Why the issue was filed)

Expected behavior

(What you expected to happen)

Actual behavior

ERROR SHARED stderr {"data":"Uncaught Exception: Error: ENOENT: no such file or directory, open '/data/vscode/Backups/workspaces.json'\n\nError: ENOENT: no such file or directory, open '/data/vscode/Backups/workspaces.json'\n at Timeout.setTimeout [as _onTimeout] (eval at exports.requireModule (/usr/local/bin/code-server:468:27625), :56921:31)\n at ontimeout (timers.js:498:11)\n at tryOnTimeout (timers.js:323:5)\n at Timer.listOnTimeout (timers.js:290:5)\n"}
INFO WebSocket closed / {"client":1,"code":1006}
ERROR SHARED stderr {"data":"Uncaught Exception: { Error: read ECONNRESET\n at Pipe.onread (net.js:622:25) errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' }\n"}

after this , the whole hassio v machine crashes .

(What actually happened)

Steps to reproduce

(How can someone else make/see it happen)

Proposed changes

(If you have a proposed change, workaround or fix,
describe the rationale behind it)

Error shown in the Visual Studio Code editor

Since the update to 0.5.3, I see this error pop up when I open the editor:

image

The editor seems to work normally, I can edit and save files.

My config:

{
  "ssl": true,
  "certfile": "fullchain.pem",
  "keyfile": "privkey.pem",
  "packages": [],
  "init_commands": [],
  "disable_telemetry": false
}

addon does not work with reverse proxy or assigning a port on the host

Problem/Motivation

New Ingress not working with reverse proxy and port assignment also fails

Expected behavior

Should work normally

Actual behavior

Black screen when trying using the reverse proxy and the Open Web-UI button, 403 Forbidden when using the port assigned to host for the addon

Steps to reproduce

Setup nginx reverse proxy and create a host for hassio or create an entry using the forwarded port

Proposed changes

(If you have a proposed change, workaround or fix,
describe the rationale behind it)

Here is the log file, I only removed the IP of my accessing browser and replaced with X.X.X.X:

**UPDATE: Also added the log for the 403 forbidden error as well as the config I have:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing...


Hass.io Add-on: Visual Studio Code
Fully featured VSCode experience, to edit your HA config in the browser, including auto-completion!

Add-on version: 0.3.0
You are running the latest version of this add-on.
System: Ubuntu 18.10 (amd64 / qemux86-64)
Home Assistant version: 0.91.3
Supervisor version: 159

Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.

[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing...
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] code-server.sh: executing...
[cont-init.d] code-server.sh: exited 0.
[cont-init.d] nginx.sh: executing...
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] user.sh: executing...
[cont-init.d] user.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[13:38:07] INFO: Starting the code server...
INFO code-server v1.792-vsc1.33.1
INFO Additional documentation: http://github.com/codercom/code-server
INFO Initializing {"data-dir":"/data/vscode","extensions-dir":"/data/vscode/extensions","working-dir":"/config","log-dir":"/root/.cache/code-server/logs/20190415173809295"}
INFO Starting webserver... {"host":"127.0.0.1","port":"8443"}
WARN No certificate specified. This could be insecure.
WARN Documentation on securing your setup: https://github.com/codercom/code-server/blob/master/doc/security/ssl.md
WARN Launched without authentication.
INFO
INFO Started (click the link below to open):
INFO http://localhost:8443/
INFO
INFO Starting shared process [1/5]...
[13:38:09] INFO: Starting NGinx...
INFO Connected to shared process
[15/Apr/2019:13:39:13 -0400] 200 X.X.X.X, 172.17.0.3, 172.30.32.1(172.30.32.2) GET / HTTP/1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36)
[15/Apr/2019:13:39:13 -0400] 200 X.X.X.X, 172.17.0.3, 172.30.32.1(172.30.32.2) GET /1-f2dd3d.bundle.js HTTP/1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36)
[15/Apr/2019:13:39:13 -0400] 200 X.X.X.X, 172.17.0.3, 172.30.32.1(172.30.32.2) GET /main.css HTTP/1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36)
[15/Apr/2019:13:39:13 -0400] 200 X.X.X.X, 172.17.0.3, 172.30.32.1(172.30.32.2) GET /f2dd3d.bundle.js HTTP/1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36)
[15/Apr/2019:13:39:24 -0400] 101 X.X.X.X, 172.17.0.3, 172.30.32.1(172.30.32.2) GET / HTTP/1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36)
INFO WebSocket opened / {"client":1}
INFO WebSocket closed / {"client":1,"code":1006}
INFO WebSocket opened / {"client":2,"ip":"127.0.0.1"}
[15/Apr/2019:13:39:25 -0400] 101 X.X.X.X, 172.17.0.3, 172.30.32.1(172.30.32.2) GET / HTTP/1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36)
INFO WebSocket closed / {"client":2,"code":1006}
INFO WebSocket opened / {"client":3,"ip":"127.0.0.1"}
[15/Apr/2019:13:39:25 -0400] 101 X.X.X.X, 172.17.0.3, 172.30.32.1(172.30.32.2) GET / HTTP/1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36)
INFO WebSocket closed / {"client":3,"code":1006}
INFO WebSocket opened / {"client":4,"ip":"127.0.0.1"}
[15/Apr/2019:13:39:25 -0400] 101 X.X.X.X, 172.17.0.3, 172.30.32.1(172.30.32.2) GET / HTTP/1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36)
INFO WebSocket closed / {"client":4,"code":1006}
INFO WebSocket opened / {"client":5,"ip":"127.0.0.1"}
2019/04/15 13:45:43 [error] 449#449: *57 access forbidden by rule, client: 172.30.32.1, server: a0d7b954-vscode, request: "GET / HTTP/1.1", host: "XXXXXX.duckdns.org:443"
[15/Apr/2019:13:45:43 -0400] 403 X.X.X.X(172.30.32.1) GET / HTTP/1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36)
2019/04/15 13:46:05 [error] 449#449: *58 access forbidden by rule, client: 172.30.32.1, server: a0d7b954-vscode, request: "GET / HTTP/1.1", host: "XXXXXXXX.duckdns.org:443"
[15/Apr/2019:13:46:05 -0400] 403 X.X.X.X(172.30.32.1) GET / HTTP/1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36)

CONFIG:
{
"ssl": false,
"certfile": "fullchain.pem",
"keyfile": "privkey.pem",
"packages": [],
"init_commands": []
}

VSCode Addon erased ALL MY CONFIG!!!

Problem/Motivation

I was changing some code on a yaml file, and the addon shows me a "reconnecting" message. Then, all the config on that YAML file was lost. It happened twice today.

I really don't know how to recover all my config.....

Expected behavior

Actual behavior

Logs

[19/Dec/2019:15:31:19 -0300] 200 200.73.XXX.XXX, 172.30.32.1(172.30.32.2) GET /vscode-remote-resource?path=/data/vscode/extensions/vscode-icons-team.vscode-icons-9.6.0/icons/folder_type_temp.svg&tkn= HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36)
[19/Dec/2019:15:31:19 -0300] 200 200.73.XXX.XXX, 172.30.32.1(172.30.32.2) GET /vscode-remote-resource?path=/data/vscode/extensions/vscode-icons-team.vscode-icons-9.6.0/icons/folder_type_theme.svg&tkn= HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36)
[19/Dec/2019:15:31:19 -0300] 200 200.73.XXX.XXX, 172.30.32.1(172.30.32.2) GET /vscode-remote-resource?path=/data/vscode/extensions/vscode-icons-team.vscode-icons-9.6.0/icons/folder_type_www.svg&tkn= HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36)
[19/Dec/2019:15:31:19 -0300] 200 200.73.XXX.XXX, 172.30.32.1(172.30.32.2) GET /vscode-remote-resource?path=/data/vscode/extensions/vscode-icons-team.vscode-icons-9.6.0/icons/default_file.svg&tkn= HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36)
[19/Dec/2019:15:32:25 -0300] 101 200.73.XXX.XXX, 172.30.32.1(172.30.32.2) GET /?reconnectionToken=02b1efca-a685-47f9-9bb6-XXXXXXb&reconnection=false&skipWebSocketFrames=false HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36)
[19/Dec/2019:15:32:25 -0300] 101 200.73.XXX.XXX, 172.30.32.1(172.30.32.2) GET /?reconnectionToken=ec017cff-e5fc-4161-900d-XXXXXX&reconnection=false&skipWebSocketFrames=false HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36)

Proposed changes

(If you have a proposed change, workaround or fix,
describe the rationale behind it)

Weird error message on configuration.yaml

Problem/Motivation

Error message when trying to edit configuraion.yaml

File 'configuration.yaml' could not be parsed, it was referenced from path 'configuration.yaml'. This file will be ignored. Error message: TypeError: source_utils_1.default is not a function Error(s): - TypeError: source_utils_1.default is not a function

Appears in a bubble at the bottom right of the screen over and over again. Sometimes (about half the time) this also prevents saving changes.

Expected behavior

To be able to edit configuration.yaml

Actual behavior

As above

Steps to reproduce

Open configuration.yaml, get annoyed by the constant error pop-ups! ๐Ÿ˜

Proposed changes

No idea - but it only seems to affect configuration.yaml - other files seem to work fine.

More info

Nothing apparent in the add-on logs

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 

-----------------------------------------------------------
 Hass.io Add-on: Visual Studio Code
 Fully featured VSCode experience, to edit your HA config in the browser, including auto-completion!
-----------------------------------------------------------
 Add-on version: 1.0.1
 You are running the latest version of this add-on.
 System: Debian GNU/Linux 10 (buster)  (amd64 / qemux86-64)
 Home Assistant version: 0.101.0
 Supervisor version: 192
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] code-server.sh: executing... 
[cont-init.d] code-server.sh: exited 0.
[cont-init.d] nginx.sh: executing... 
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] user.sh: executing... 
[cont-init.d] user.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[20:45:48] INFO: Starting the code server...
[20:45:51] INFO: Starting NGinx...
info  Server listening on http://127.0.0.1:8443
info    - No authentication
info    - Not serving HTTPS
[31/Oct/2019:20:46:03 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET / HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:03 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/out/vs/workbench/workbench.web.api.css HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:03 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/out/vs/workbench/workbench.web.api.nls.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:03 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/out/vs/loader.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:03 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/node_modules/semver-umd/lib/semver-umd.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:03 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/node_modules/@microsoft/applicationinsights-web/dist/applicationinsights-web.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:04 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/out/vs/workbench/workbench.web.api.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:05 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/out/vs/code/browser/workbench/workbench.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:06 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/out/vs/workbench/services/extensions/worker/extensionHostWorkerMain.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:06 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/out/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.win.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:08 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/out/vs/workbench/browser/parts/editor/media/letterpress-dark.svg HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:08 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/out/vs/base/browser/ui/codiconLabel/codicon/codicon.ttf?10ac421d405314bb3250169d97fc2c62= HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:08 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/out/vs/base/browser/ui/octiconLabel/octicons/octicons.ttf?1829db8570ee0fa5a4bef3bb41d5f62e= HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:08 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/out/vs/workbench/services/extensions/worker/extensionHostWorker.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:08 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/node_modules/vscode-textmate/release/main.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:08 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/out/vs/workbench/services/extensions/worker/extensionHostWorker.nls.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:08 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/node_modules/onigasm-umd/release/onigasm.wasm HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:08 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/node_modules/onigasm-umd/release/main.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:08 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /vscode-remote-resource?path=/src/build/code-server2.1665-vsc1.39.2-linux-x86_64-built/extensions/theme-seti/icons/seti.woff&tkn= HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:11 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /vscode-remote-resource?path=/src/build/code-server2.1665-vsc1.39.2-linux-x86_64-built/extensions/git/resources/icons/dark/open-change.svg&tkn= HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:11 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/out/vs/base/worker/workerMain.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)

Visual Studio Code addon not available

Problem/Motivation

Add-On not available

Expected behavior

Being able to install it from Homeassistant in HassIO

Actual behavior

A message appear in add-on HA menu:
This add-on is not available on your system.
and install icon is not available

Steps to reproduce

I don't have any idea, does it happen to everybody in which circumstances?

Proposed changes

Add to the docs in which kind of system or circumstances is not available.

Unable to connect to the Extensions Marketplace

Problem/Motivation

When trying to search the Extensions Marketplace, I receive an error. I'm trying to determine if this is an issue, or expected behavior.

Expected behavior

Expected to get the list of available extensions.

Actual behavior

I receive the error "We cannot connect to the Extensions Marketplace at this time, please try again later.

Steps to reproduce

Try to search for an extension or add a language support module.

Proposed changes

Unsure. This is all I can see in the logs for VSC:

[error] An unknown error occurred. Please consult the log for more details.

Not seeing anything of note in the add-on logs.

Auto-completion does not work

Using 0.3.0 of the Visual Studio Code plugin with HASS.io 0.91.4 but the auto-completion does not work. It should not necessary to do anything with settings to get this feature activated according to the documentation. Not sure what to do now?

ERROR: Unknown HTTP error occurred

Problem/Motivation

Error on first launch

Expected behavior

Successful launch

Actual behavior

Error:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Hass.io Add-on: Visual Studio Code
 Fully featured VSCode experience, to edit your HA config in the browser, including auto-completion!
-----------------------------------------------------------
 Add-on version: 0.1.0
 You are running the latest version of this add-on.
parse error: Expected string key before ':' at line 1, column 4
[20:43:21] ERROR: Unknown HTTP error occured
 System:   (amd64 / qemux86-64)
 Home Assistant version: 0.84.6
 Supervisor version: 150

Steps to reproduce

Home Assistant 0.84.6 (Hass.io) running on VirtualBox (Ubuntu 64). I received this error on first installation / attempt to run. The only config option I changed was the addition of a password. Running Duck DNS / Let's Encrypt.

Proposed changes

(If you have a proposed change, workaround or fix,
describe the rationale behind it)

lost interface

Problem/Motivation

Ive broken my cscode editor I was adding a folder to config and could not get back to see all files in config just the new one I created I know this is probably user error but I tried searching for config now all I get is a black screen in the dark gray. Have tried reinstalling cscode and clearing cache but no change. Can you point me in right direction please. Sorry if this is not the right place tp post.

Expected behavior

(What you expected to happen)

Actual behavior

(What actually happened)

Steps to reproduce

(How can someone else make/see it happen)

Proposed changes

(If you have a proposed change, workaround or fix,
describe the rationale behind it)

Arm64 support

Problem/Motivation

I would love to have this extension on my HASS setup, unfortunately it's not available for Arm64 yet. Would it be much work to enable this?

Cannot install in HASSIO

Problem/Motivation

Not Available for install

Expected behavior

Be able to install the addon

Actual behavior

Message says This add-on is not available on your system.

Steps to reproduce

Click Hassio on the side bar, go to Addon Store, click the VS Code item

Proposed changes

If its not available for Hassio should be removed from the addons store.

Attempting to add Hass.io Repository fails; shows name as "Unknown"

Problem/Motivation

I have this add-on working in HA 0.84.6; cannot add repository in 0.90.2. (Hass.io, VirtualBox, Ubuntu 64)

Expected behavior

Ability to add repository and add-on.

Actual behavior

Supplying the repository shows "unknown." No add-on available to install.

Steps to reproduce

Attempt to install the add-on in 0.90.2. (Not sure if my config, described above, is significant.)

Proposed changes

none

Screen Shot 2019-03-28 at 9 19 10 AM

WebSocket Connection Error 401 in MacOS Safari

Problem/Motivation

The 2.0 version of this add-on does not load in MacOS Mojave Safari

Expected behavior

VC Code should load and present the full interface

Actual behavior

A blank screen is presented to the user. In the browser's developer console the message "WebSocket connection to 'ws://hassio:1337/' failed: Unexpected response code: 401" is repeatedly displayed.

Browsing to the same URL on the same machine using Chrome works fine - there are no WebSocket errors.

Steps to reproduce

Navigate to http://hassio:1337 in MacOS Safari, and compare to the same in Chrome on the same machine. Yes, I have intentionally turned off SSL in this setup - not sure if enabling SSL changes the behavior.

Proposed changes

I had a similar issue when using an early version of the add-on in the Edge repo. I believe this was before the NGINX proxy was built in. I got that version working behind my own proxy by following the instructions here:
https://github.com/codercom/code-server/blob/master/doc/self-hosted/index.md#nginx-reverse-proxy
I believe you need to add proxy_set_header Accept-Encoding gzip; per those instructions, which I don't see currently enabled in the latest version of the add-on.

Screenshots

Safari

Chrome

GitHub
Run VS Code on a remote server. Contribute to codercom/code-server development by creating an account on GitHub.

can't start with vscode-amd64:0.7.0

Problem/Motivation

(Why the issue was filed)

Expected behavior

(What you expected to happen)

Actual behavior

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
curl: /usr/lib/x86_64-linux-gnu/libcurl.so.4: unsupported version 0 of Verdef record
curl: error while loading shared libraries: /usr/lib/x86_64-linux-gnu/libcurl.so.4: unsupported version 0 of Verneed record
[14:10:39] ERROR: Something went wrong contacting the API
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
jq: error while loading shared libraries: /usr/lib/x86_64-linux-gnu/libonig.so.4: unsupported version 0 of Verneed record
jq: error while loading shared libraries: /usr/lib/x86_64-linux-gnu/libonig.so.4: unsupported version 0 of Verneed record
/var/run/s6/etc/cont-init.d/01-log-level.sh: line 41: log_level: unbound variable
[cont-init.d] 01-log-level.sh: exited 1.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing... 
-----------------------------------------------------------
                Oops! Something went wrong.

 We are so sorry, but something went terribly wrong when
 starting or running this add-on.
 
 Be sure to check the log above, line by line, for hints.
-----------------------------------------------------------
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

Steps to reproduce

(How can someone else make/see it happen)

Proposed changes

(If you have a proposed change, workaround or fix,
describe the rationale behind it)

VSCode v3 plugin not supported

Problem/Motivation

Updating plug in is 'greyed' out and says it isn't supported on my system

image

System:

HASSIO

HassOS v2.11
HA 0.91.2

Running in a VM on Proxmox

Expected behavior

Plug in to work

Actual behavior

19-04-15 08:21:50 ERROR (MainThread) [hassio.addons.addon] Add-on a0d7b954_vscode not supported on qemux86-64 with ['amd64', 'i386'] architecture

I don't understand the reference to AMD architecture as my NUC is running Intel:

image

Steps to reproduce

Click on update when running this configuration

Proposed changes

(If you have a proposed change, workaround or fix,
describe the rationale behind it)

source control doesn't sync

Problem/Motivation

The source control tab on the vscode addon don't sync with the source control off the vscode program on windows.

Expected behavior

That source control sync between addon and windows program

Actual behavior

They don't sync

Steps to reproduce

I commit and push changes through the vscode program on windows but it doesn't sync between the addon, i don't know if it is reproduce-able

for me it doesn't work

source control
2019-08-06 09 44 08 10 10 50 90 370dbeaddb4e
2019-08-06 09 43 45 10 10 50 90 3b008e869770

LIFX Cloud in config

Problem/Motivation

LIFX Cloud-related data in config throws errors, when in-fact, the code works fine. See attached screenshot.

lifx_token_errors

Expected behavior

No errors

Actual behavior

errors reported

Steps to reproduce

Follow the steps to add LIFX scenes to HA via the LIFX Cloud documentation.

Proposed changes

Not sure.

Unexpected error from Error Lens 2.9.0

Problem/Motivation

Flagged error in lovelace-ui.yaml when editing in VSC.

Expected behavior

No flagged error for:

image

Actual behavior

(What actually happened)

image

Check Configuration reports "Configuration valid!".

According to...
https://www.home-assistant.io/lovelace/picture-entity/#how-to-use-state_filter
..."state_filter" is optional.

Steps to reproduce

This happens when running Home Assistant 0.105.2 and Visual Studio Code 1.2.3.

Proposed changes

Fix if reproducible.

High CPU and Disk Usage when I load the VSCode page

Problem/Motivation

It appears to happen the second or third time I load the page. The first time, the CPU/Disk spikes for about 5 seconds, and then the second or third time, it goes to 100% usage, and like 80+MB/s on the disk, which is probably max. The CPU spikes to 100 in a few seconds. But the disk takes a couple minutes. It gets to the point where I can't even log into the desktop or connect to anything else on the system. Even HA becomes unresponsive. Sometimes it corrects itself after about an hour. Other times I have to hard reboot the VM(Linux Mint, latest version). HA is .92.2

This started happening on my old HA, so I built a completely new one, and I don't think it happened when I didn't have many devices loaded, but I didn't really test it that thoroughly. And I was only able to get to the logs once to see. The other times, the issues happen, and I can't access anything, and have to hard reboot, and I think HA is wiping the logs when it starts back up. The one time I was able to see the logs, I didn't copy the whole thing, so all I have is this line:

[aiohttp.server] Error handling request

There was a bunch more stuff after that.

I googled that error, and people were saying that it happens when you are trying to access https when HA is running http or the other way around.

I'm only doing http, and on the plugin as well.

Does anyone have any idea what might be causing this? I can't access any troubleshooting info when the problem happens so it's kind of tough to figure it out for me.

Thanks in advance.

Vscode won't start

Problem/Motivation

Vscode won't run and gives the following errors:

19-08-25 22:30:13 INFO (SyncWorker_0) [hassio.docker.interface] Stop addon_a0d7b954_vscode application
19-08-25 22:30:15 INFO (SyncWorker_0) [hassio.docker.interface] Clean addon_a0d7b954_vscode application
19-08-25 22:30:20 ERROR (SyncWorker_4) [hassio.docker] Can't start addon_a0d7b954_vscode: 404 Client Error: Not Found ("linux runtime spec devices: error gathering device information while adding custom device "/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE1996743-if00": lstat /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE1996743-if00: no such file or directory")

(Why the issue was filed)

Expected behavior

(What you expected to happen)

Actual behavior

(What actually happened)

Steps to reproduce

Synology NAS with a Conbee II stick added via deCONZ.

(How can someone else make/see it happen)

Proposed changes

(If you have a proposed change, workaround or fix,
describe the rationale behind it)

Adding AppDaemon HADashboard extension .dash to YAML

Problem/Motivation

We need to add .dash file extension to have the HADashboard configuration files treated as YAML.

Proposed changes

It is a pretty easy change. I can make it via PullRequest, but wanted to make sure it was OK first. Just add the following to the settings.json file

"files.associations": {
"*.dash": "yaml"
}

Unable to Copy or Cut text

Problem/Motivation

(Why the issue was filed)

Expected behavior

Using cmd +c or cmd+x is no longer working

Actual behavior

I can highlight text but after trying to copy or cut and then paste, the old contents in the clipboard is pasted. I can copy text in other areas of home assistant and paste that text in vscode but not text I try to copy within vscode. This use to work for me, I have uninstalled vscode and reinstalled it but its not solved the issue. Im running 0.94 but this problem has been around since 0.92

Steps to reproduce

(How can someone else make/see it happen)

Proposed changes

(If you have a proposed change, workaround or fix,
describe the rationale behind it)

Error 502 at the first launch

Problem/Motivation

I have an issue with the vscode addon. I won't start.
I use hass.io in docker container. Docker version : 19.03.3
Host machine is a Debian 10.

VSCode Conf

{
  "ssl": true,
  "certfile": "fullchain.pem",
  "keyfile": "privkey.pem",
  "packages": [],
  "init_commands": [],
  "disable_telemetry": false
}

Expected behavior

Use VSCode for editing my HA conf.

Actual behavior

Error 502: Bad Gateway when i want to access to VSCode.

Steps to reproduce

Install VSCode and start it.

Addon Log

-----------------------------------------------------------
 Hass.io Add-on: Visual Studio Code
 Fully featured VSCode experience, to edit your HA config in the browser, including auto-completion!
-----------------------------------------------------------
 Add-on version: 0.7.0
 You are running the latest version of this add-on.
 System: Debian GNU/Linux 10 (buster)  (amd64 / qemux86-64)
 Home Assistant version: 0.100.2
 Supervisor version: 189
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] code-server.sh: executing... 
[cont-init.d] code-server.sh: exited 0.
[cont-init.d] nginx.sh: executing... 
parse error: Expected string key before ':' at line 1, column 4
[18:14:50] ERROR: Unknown HTTP error occured
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] user.sh: executing... 
[cont-init.d] user.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[18:14:50] INFO: Starting the code server...
(node:414) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
INFO  code-server v1.1156-vsc1.33.1
INFO  Additional documentation: http://github.com/cdr/code-server
INFO  Initializing {"data-dir":"/data/vscode","extensions-dir":"/data/vscode/extensions","working-dir":"/config","log-dir":"/root/.cache/code-server/logs/20191021161451117"}
INFO  Starting webserver... {"host":"127.0.0.1","port":"8443"}
WARN  No certificate specified. This could be insecure.
WARN  Documentation on securing your setup: https://github.com/cdr/code-server/blob/master/doc/security/ssl.md
WARN   
WARN  Launched without authentication.
INFO   
INFO  Started (click the link below to open):
INFO  http://localhost:8443/
INFO   
INFO  Starting shared process [1/5]...
[18:14:51] INFO: Starting NGinx...
nginx: [emerg] invalid number of arguments in "resolver" directive in /etc/nginx/includes/resolver.conf:1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing... 
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

Hass.io log

19-10-21 16:14:49 INFO (SyncWorker_20) [hassio.docker.addon] Start Docker add-on hassioaddons/vscode-amd64 with version 0.7.0
19-10-21 16:14:49 INFO (MainThread) [hassio.api.security] /host/info access from a0d7b954_vscode
19-10-21 16:14:50 WARNING (MainThread) [hassio.api.security] /dns/info no role for a0d7b954_vscode
19-10-21 16:14:50 ERROR (MainThread) [hassio.api.security] Invalid token for access /dns/info

Code-Server Causing CPU Spike

Problem/Motivation

Running VSCode Add-On 1.2.1 on Ubuntu 18.04 Hassio docker (Intel NUC8i3BEK), code-server is spiking the CPU to 100% and keeping it there causing the entire system to slow to a crawl (and requiring a host restart).

Expected behavior

No CPU spike

Actual behavior

See Problem/Motivation

Steps to reproduce

Fresh Hassio docker install on Ubuntu 18.04, add the VSCode Add-On, view the VSCode GUI at least once, wait a few minutes, and code-server will spike the CPU. Verify via ps aux | grep code-server or ps aux | grep server.js

Proposed changes

Right now, I just have to uninstall the VSCode Add-On and edit config files via nano over ssh.

Black screen with ingress through reverse proxy and custom domain

Problem/Motivation

I still have the same issue that was closed here (#25) when running HA 96.5, Hassio Supervisor 170. I get a black screen when opening the VSCode addin from the side bar with ingress, when enabling a port and going to that it does work (after logging in).

Expected behavior

Ingress link in sidebar shows VSCode interface

Actual behavior

Black screen

Steps to reproduce

Running on a subdomain (ha.domain.com) that is locally resolving to a local IP and globally through DNS with NGINX catching all traffic and routing different subdomains differently. Hassio installed on Ubuntu 18.04, running HA latest and a couple of add-ons. Configurator ingress does work, so seems to be VSCode add-on related.

Black screen with ingress through reverse proxy and custom domain

Problem/Motivation

I still have the same issue that was closed here (#25) when running HA 0.97.2, Hassio Supervisor 184 and VSCode addin 0.6.5. I get a black screen when opening the VSCode addin from the side bar with ingress, when enabling a port and going to that it does work (after logging in).

Expected behavior

Ingress link in sidebar shows VSCode interface

Actual behavior

Black screen

Steps to reproduce

Running on a subdomain (ha.domain.com) that is locally resolving to a local IP and globally through DNS with NGINX catching all traffic and routing different subdomains differently. Hassio installed on Ubuntu 18.04, running HA latest and a couple of add-ons. Configurator and Pi-hole ingress do work, so seems to be VSCode add-on related.

Config

{
"ssl": true,
"certfile": "fullchain1.pem",
"keyfile": "privkey1.pem",
"packages": [],
"init_commands": [],
"disable_telemetry": false,
"leave_front_door_open": false
}

VSCode Add-in Log

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 

-----------------------------------------------------------
 Hass.io Add-on: Visual Studio Code
 Fully featured VSCode experience, to edit your HA config in the browser, including auto-completion!
-----------------------------------------------------------
 Add-on version: 0.6.5
 You are running the latest version of this add-on.
 System: Ubuntu 18.04.3 LTS  (amd64 / qemux86-64)
 Home Assistant version: 0.97.2
 Supervisor version: 184
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] code-server.sh: executing... 
[cont-init.d] code-server.sh: exited 0.
[cont-init.d] nginx.sh: executing... 
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] user.sh: executing... 
[cont-init.d] user.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[17:11:21] INFO: Starting the code server...
(node:435) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
INFO  code-server v1.1156-vsc1.33.1
INFO  Additional documentation: http://github.com/cdr/code-server
INFO  Initializing {"data-dir":"/data/vscode","extensions-dir":"/data/vscode/extensions","working-dir":"/config","log-dir":"/root/.cache/code-server/logs/20190826151122399"}
INFO  Starting webserver... {"host":"127.0.0.1","port":"8443"}
WARN  No certificate specified. This could be insecure.
WARN  Documentation on securing your setup: https://github.com/cdr/code-server/blob/master/doc/security/ssl.md
WARN   
WARN  Launched without authentication.
INFO   
INFO  Started (click the link below to open):
INFO  http://localhost:8443/
INFO   
INFO  Starting shared process [1/5]...
[17:11:22] INFO: Starting NGinx...
WARN  stderr {"data":"(node:482) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.\n"}
INFO  Connected to shared process
[26/Aug/2019:17:11:29 +0200] 200 10.0.1.113, 10.0.0.7, 172.30.32.1(172.30.32.2) GET / HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3879.0 Safari/537.36 Edg/78.0.249.1)
[26/Aug/2019:17:11:29 +0200] 200 10.0.1.113, 10.0.0.7, 172.30.32.1(172.30.32.2) GET /ide.1.5b173b.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3879.0 Safari/537.36 Edg/78.0.249.1)
[26/Aug/2019:17:11:29 +0200] 200 10.0.1.113, 10.0.0.7, 172.30.32.1(172.30.32.2) GET /ide.main.5b173b.css HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3879.0 Safari/537.36 Edg/78.0.249.1)
[26/Aug/2019:17:11:29 +0200] 200 10.0.1.113, 10.0.0.7, 172.30.32.1(172.30.32.2) GET /ide.main.5b173b.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3879.0 Safari/537.36 Edg/78.0.249.1)
[26/Aug/2019:17:11:35 +0200] 200 10.0.1.113, 10.0.0.7, 172.30.32.1(172.30.32.2) GET / HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3879.0 Safari/537.36 Edg/78.0.249.1)

HASSIO Log

19-08-26 15:11:21 INFO (SyncWorker_11) [hassio.docker.addon] Start Docker add-on hassioaddons/vscode-amd64 with version 0.6.5
19-08-26 15:11:21 INFO (MainThread) [hassio.api.security] /host/info access from a0d7b954_vscode
19-08-26 15:11:21 INFO (MainThread) [hassio.api.security] /dns/info access from a0d7b954_vscode

Creating automations through the UI displays as errors in Visual Studio Code

Problem/Motivation

V: 1.2.3

When viewing the YAML of my automations that were created in the Home Assistant Automation editor, Visual Studio Code displays lots of errors
Screenshot 2020-02-03 at 14 35 32

Expected behavior

No Errors, as it was created in Home Assistant

Actual behavior

Lots of Errors, as it was created in Home Assistant

Steps to reproduce

Here is the source code of one of the automations

  • id: '1580694077988'
    alias: Office-Lights-Turn off office lights if no presence detected
    description: ''
    trigger:
    • device_id: dd111ee92e3d4805b9bfbc59c78cf3cd
      domain: binary_sensor
      entity_id: binary_sensor.lumi_lumi_sensor_motion_aq2_b1463a03_occupancy
      platform: device
      type: not_occupied
      condition: []
      action:
    • device_id: fed88fbe20654c3ea0e45b59759ec230
      domain: switch
      entity_id: switch.shelly_shsw_1_b9d799
      type: turn_off
    • device_id: d1e0385d6a1b4da0839d159ffd07fc00
      domain: light
      entity_id: light.gledopto_gl_c_007_829d431d_level_light_color_on_off
      type: turn_off
    • device_id: d1e0385d6a1b4da0839d159ffd07fc00
      domain: light
      entity_id: light.gledopto_gl_c_007_829d431d_level_light_color_on_off_2
      type: turn_off

Here is the editor display
Screenshot 2020-02-03 at 15 34 10

Unable to use Git Push feature

Problem/Motivation

I'm unsure if this is expected behaviour (and there's a configuration step I missed) or an issue with the addon.

When using git inside VSCode, I can commit changes using the GUI, but when I use the push command I get an error that I cannot find the askpass.sh file.

Expected behavior

It should ask for a username and password for the git repository.

Actual behavior

The command fails with an error message. (screenshot)
If I open the git log, this is the error I see:

> git push origin master
fatal: cannot run /home/travis/build/codercom/code-server/packages/server/build/extensions/git/dist/askpass.sh: No such file or directory
fatal: could not read Username for 'https://github.com': No such device or address

If I go directly to the terminal and type in the same command (git push origin master) it correctly asks for my authentication and the push succeeds.

not starting correctly with yamlint

Problem/Motivation

i gave it a new try , starting first with no addon , it worked .
then installing with the addons , and i got the logs detailed below .
hope this helps .
thanks .

(Why the issue was filed)

Expected behavior

(What you expected to happen)

Actual behavior

Get:3 http://archive.ubuntu.com/ubuntu bionic/main amd64 mysql-common all 5.8+1.0.4 [7,308 B]
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libmysqlclient20 amd64 5.7.25-0ubuntu0.18.04.2 [818 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libdbd-mysql-perl amd64 4.046-1 [82.0 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 libreadline5 amd64 5.2+dfsg-3build1 [99.5 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libterm-readkey-perl amd64 2.37-1build1 [24.4 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 mariadb-common all 1:10.1.38-0ubuntu0.18.04.1 [15.6 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 mariadb-client-core-10.1 amd64 1:10.1.38-0ubuntu0.18.04.1 [4,763 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic/main amd64 libconfig-inifiles-perl all 2.94-1 [40.4 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libjemalloc1 amd64 3.6.0-11 [82.4 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 mariadb-client-10.1 amd64 1:10.1.38-0ubuntu0.18.04.1 [5,626 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 mariadb-client all 1:10.1.38-0ubuntu0.18.04.1 [12.8 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 12.3 MB in 8s (1,636 kB/s)
Selecting previously unselected package libaio1:amd64.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 13831 files and directories currently installed.)
Preparing to unpack .../00-libaio1_0.3.110-5_amd64.deb ...
Unpacking libaio1:amd64 (0.3.110-5) ...
Selecting previously unselected package libdbi-perl.
Preparing to unpack .../01-libdbi-perl_1.640-1_amd64.deb ...
Unpacking libdbi-perl (1.640-1) ...
Selecting previously unselected package mysql-common.
Preparing to unpack .../02-mysql-common_5.8+1.0.4_all.deb ...
Unpacking mysql-common (5.8+1.0.4) ...
Selecting previously unselected package libmysqlclient20:amd64.
Preparing to unpack .../03-libmysqlclient20_5.7.25-0ubuntu0.18.04.2_amd64.deb ...
Unpacking libmysqlclient20:amd64 (5.7.25-0ubuntu0.18.04.2) ...
Selecting previously unselected package libdbd-mysql-perl.
Preparing to unpack .../04-libdbd-mysql-perl_4.046-1_amd64.deb ...
Unpacking libdbd-mysql-perl (4.046-1) ...
Selecting previously unselected package libreadline5:amd64.
Preparing to unpack .../05-libreadline5_5.2+dfsg-3build1_amd64.deb ...
Unpacking libreadline5:amd64 (5.2+dfsg-3build1) ...
Selecting previously unselected package libterm-readkey-perl.
Preparing to unpack .../06-libterm-readkey-perl_2.37-1build1_amd64.deb ...
Unpacking libterm-readkey-perl (2.37-1build1) ...
Selecting previously unselected package mariadb-common.
Preparing to unpack .../07-mariadb-common_1%3a10.1.38-0ubuntu0.18.04.1_all.deb ...
Unpacking mariadb-common (1:10.1.38-0ubuntu0.18.04.1) ...
Selecting previously unselected package mariadb-client-core-10.1.
Preparing to unpack .../08-mariadb-client-core-10.1_1%3a10.1.38-0ubuntu0.18.04.1_amd64.deb ...
Unpacking mariadb-client-core-10.1 (1:10.1.38-0ubuntu0.18.04.1) ...
Selecting previously unselected package libconfig-inifiles-perl.
Preparing to unpack .../09-libconfig-inifiles-perl_2.94-1_all.deb ...
Unpacking libconfig-inifiles-perl (2.94-1) ...
Selecting previously unselected package libjemalloc1.
Preparing to unpack .../10-libjemalloc1_3.6.0-11_amd64.deb ...
Unpacking libjemalloc1 (3.6.0-11) ...
Selecting previously unselected package mariadb-client-10.1.
Preparing to unpack .../11-mariadb-client-10.1_1%3a10.1.38-0ubuntu0.18.04.1_amd64.deb ...
Unpacking mariadb-client-10.1 (1:10.1.38-0ubuntu0.18.04.1) ...
Selecting previously unselected package mariadb-client.
Preparing to unpack .../12-mariadb-client_1%3a10.1.38-0ubuntu0.18.04.1_all.deb ...
Unpacking mariadb-client (1:10.1.38-0ubuntu0.18.04.1) ...
Setting up libconfig-inifiles-perl (2.94-1) ...
Setting up libjemalloc1 (3.6.0-11) ...
Setting up mysql-common (5.8+1.0.4) ...
update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Setting up libterm-readkey-perl (2.37-1build1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up libaio1:amd64 (0.3.110-5) ...
Setting up libmysqlclient20:amd64 (5.7.25-0ubuntu0.18.04.2) ...
Setting up libreadline5:amd64 (5.2+dfsg-3build1) ...
Setting up libdbi-perl (1.640-1) ...
Setting up mariadb-common (1:10.1.38-0ubuntu0.18.04.1) ...
update-alternatives: using /etc/mysql/mariadb.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Setting up mariadb-client-core-10.1 (1:10.1.38-0ubuntu0.18.04.1) ...
Setting up libdbd-mysql-perl (4.046-1) ...
Setting up mariadb-client-10.1 (1:10.1.38-0ubuntu0.18.04.1) ...
Setting up mariadb-client (1:10.1.38-0ubuntu0.18.04.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
[cont-init.d] 80-user-packages.sh: exited 0.
[cont-init.d] 81-user-scripts.sh: executing... 
Traceback (most recent call last):
  File "/usr/local/bin/pip3", line 6, in <module>
    from pip._internal import main
  File "/usr/local/lib/python3.6/dist-packages/pip/_internal/__init__.py", line 40, in <module>
    from pip._internal.cli.autocompletion import autocomplete
  File "/usr/local/lib/python3.6/dist-packages/pip/_internal/cli/autocompletion.py", line 8, in <module>
    from pip._internal.cli.main_parser import create_main_parser
  File "/usr/local/lib/python3.6/dist-packages/pip/_internal/cli/main_parser.py", line 8, in <module>
    from pip._internal.cli import cmdoptions
  File "/usr/local/lib/python3.6/dist-packages/pip/_internal/cli/cmdoptions.py", line 14, in <module>
    from distutils.util import strtobool
ModuleNotFoundError: No module named 'distutils.util'
[09:27:51] FATAL: Failed executing init command: pip3 install yamllint
[cont-init.d] 81-user-scripts.sh: exited 1.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing... 
-----------------------------------------------------------
                Oops! Something went wrong.

 We are so sorry, but something went terribly wrong when
 starting or running this add-on.
 
 Be sure to check the log above, line by line, for hints.
-----------------------------------------------------------
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
```
> (What actually happened)

## Steps to reproduce

> (How can someone else make/see it happen)

## Proposed changes

> (If you have a proposed change, workaround or fix,
> describe the rationale behind it)

Delay reconnecting when Websocket connection fails

Problem/Motivation

When updating Home Assistant, it goes down, but vscode is trying to reconnect to Home Assistant. There seems to be no delay between the reconnection attempts. Causing high CPU load during Home Assistant downtime.

Expected behavior

Sleep a second or so between reconnection attempts.

Actual behavior

20-01-17 18:34:47 INFO (MainThread) [hassio.api.proxy] WebSocket access from a0d7b954_vscode
20-01-17 18:34:47 ERROR (MainThread) [hassio.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
20-01-17 18:34:47 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request initialize
20-01-17 18:34:47 INFO (MainThread) [hassio.api.proxy] WebSocket access from a0d7b954_vscode
20-01-17 18:34:47 ERROR (MainThread) [hassio.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
20-01-17 18:34:47 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request initialize
20-01-17 18:34:47 INFO (MainThread) [hassio.api.proxy] WebSocket access from a0d7b954_vscode
...

Actually:

# docker logs hassio_supervisor 2>&1 | grep "18:34:47" | grep "WebSocket access" | wc -l
122 

It's trying to connect 122 times per second.

Steps to reproduce

  1. Run this addon.
  2. Update Home Assistant.

Proposed changes

Add a time.sleep(1) between reconnection attempts.

parsing of "packages" filenames

Problem/Motivation

It's a minor problem

Filename problem in combination with the "packages" folder: when a "automations.yaml" file in the folder "packages" VSCODE expectes to have no "automation:" in the config and give out a "problem".

I originally had a folder "automations" for my automations. Since it is possible to add automations via UI, it creates a file "automations.yaml" for that. But it is not possible to have a include_dir and a include_file at the same time, so either a folder OR a file is possible, not both. (limitation of home assistant).
To be able to still use both, I moved my files from the "automation" folder to the "packages" folder and added "automation:" at the beginning.
As long as the filename is "automations.yaml", VSCODE expects to NOT include the "automation:" as it is not needed if its a "include_file". It does not see that it is in the packages folder.

Expected behavior

no parsing errors

Steps to reproduce

create a package in "packages" folder and name it automations.yaml (probably same for sensors.yaml etc)

Proposed changes

workaround so far is just to rename the file

Possibility to integrate VSCode without HassIO

Problem/Motivation

I'd like the possibility to integrate VSCode without HassIO. Could you provide instruction for manual installation

Expected behavior

Install the VSCode addon manually with Docker, pretty much like it is with hassio interface, then modify manually HA configuration to connect to the plugin.

Actual behavior

Only available in hassio as docker image... :-(

2.0 Not available on Pi4 custom install

Problem/Motivation

2.0 is still showing as unavailable on my custom Pi4 install

Expected behavior

To be able to install

Actual behavior

Not available for install

Steps to reproduce

Raspbian Buster installed on 4GB Pi4. dd'd /root to ssd. Installed docker, then installed with this script https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh

Proposed changes

Not sure. I looked at the commits, but I don't see anything checking the hardware.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.