Revert "argggh"

This reverts commit e59214cbdf.
This commit is contained in:
Richard Sperry 2025-04-14 16:00:42 -07:00
parent 9ff2bb6306
commit 022fca94a4
45 changed files with 3295 additions and 3294 deletions

View file

@ -1,38 +1,38 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the // For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-docker-compose // README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-docker-compose
{ {
"name": "Existing Docker Compose (Extend)", "name": "Existing Docker Compose (Extend)",
// Sets the run context to one level up instead of the .devcontainer folder. // Sets the run context to one level up instead of the .devcontainer folder.
"context": "../vscode", "context": "../vscode",
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. // Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
"dockerFile": "../vscode/Dockerfile", "dockerFile": "../vscode/Dockerfile",
// The optional 'workspaceFolder' property is the path VS Code should open by default when // The optional 'workspaceFolder' property is the path VS Code should open by default when
// connected. This is typically a file mount in .devcontainer/docker-compose.yml // connected. This is typically a file mount in .devcontainer/docker-compose.yml
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}" "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}"
// Features to add to the dev container. More info: https://containers.dev/features. // Features to add to the dev container. More info: https://containers.dev/features.
// "features": {}, // "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally. // Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [], // "forwardPorts": [],
// Uncomment the next line if you want start specific services in your Docker Compose config. // Uncomment the next line if you want start specific services in your Docker Compose config.
// "runServices": [], // "runServices": [],
// Uncomment the next line if you want to keep your containers running after VS Code shuts down. // Uncomment the next line if you want to keep your containers running after VS Code shuts down.
// "shutdownAction": "none", // "shutdownAction": "none",
// Uncomment the next line to run commands after the container is created. // Uncomment the next line to run commands after the container is created.
// "postCreateCommand": "cat /etc/os-release", // "postCreateCommand": "cat /etc/os-release",
// Configure tool-specific properties.root // Configure tool-specific properties.root
// "customizations": {}, // "customizations": {},
// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root. // Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "devcontainer" // "remoteUser": "devcontainer"
} }

View file

@ -1,26 +1,26 @@
version: '3.8' version: '3.8'
services: services:
# Update this to the name of the service you want to work with in your docker-compose.yml file # Update this to the name of the service you want to work with in your docker-compose.yml file
app: app:
# Uncomment if you want to override the service's Dockerfile to one in the .devcontainer # Uncomment if you want to override the service's Dockerfile to one in the .devcontainer
# folder. Note that the path of the Dockerfile and context is relative to the *primary* # folder. Note that the path of the Dockerfile and context is relative to the *primary*
# docker-compose.yml file (the first in the devcontainer.json "dockerComposeFile" # docker-compose.yml file (the first in the devcontainer.json "dockerComposeFile"
# array). The sample below assumes your primary file is in the root of your project. # array). The sample below assumes your primary file is in the root of your project.
# #
build: build:
context: ../vscode context: ../vscode
dockerfile: Dockerfile dockerfile: Dockerfile
volumes: volumes:
# Update this to wherever you want VS Code to mount the folder of your project # Update this to wherever you want VS Code to mount the folder of your project
- ..:/workspaces:cached - ..:/workspaces:cached
# Uncomment the next four lines if you will use a ptrace-based debugger like C++, Go, and Rust. # Uncomment the next four lines if you will use a ptrace-based debugger like C++, Go, and Rust.
# cap_add: # cap_add:
# - SYS_PTRACE # - SYS_PTRACE
# security_opt: # security_opt:
# - seccomp:unconfined # - seccomp:unconfined
# Overrides default command so things don't shut down after the process ends. # Overrides default command so things don't shut down after the process ends.
command: sleep infinity command: sleep infinity

2
.github/CODEOWNERS vendored
View file

@ -1 +1 @@
.github/* @frenck .github/* @frenck

View file

@ -1,133 +1,133 @@
# Contributor Covenant Code of Conduct # Contributor Covenant Code of Conduct
## Our Pledge ## Our Pledge
We as members, contributors, and leaders pledge to make participation in our We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status, identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, religion, or sexual identity nationality, personal appearance, race, religion, or sexual identity
and orientation. and orientation.
We pledge to act and interact in ways that contribute to an open, welcoming, We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community. diverse, inclusive, and healthy community.
## Our Standards ## Our Standards
Examples of behavior that contributes to a positive environment for our Examples of behavior that contributes to a positive environment for our
community include: community include:
- Demonstrating empathy and kindness toward other people - Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences - Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback - Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes, - Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience and learning from the experience
- Focusing on what is best not just for us as individuals, but for the - Focusing on what is best not just for us as individuals, but for the
overall community overall community
Examples of unacceptable behavior include: Examples of unacceptable behavior include:
- The use of sexualized language or imagery, and sexual attention or - The use of sexualized language or imagery, and sexual attention or
advances of any kind advances of any kind
- Trolling, insulting or derogatory comments, and personal or political attacks - Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment - Public or private harassment
- Publishing others' private information, such as a physical or email - Publishing others' private information, such as a physical or email
address, without their explicit permission address, without their explicit permission
- Other conduct which could reasonably be considered inappropriate in a - Other conduct which could reasonably be considered inappropriate in a
professional setting professional setting
## Enforcement Responsibilities ## Enforcement Responsibilities
Community leaders are responsible for clarifying and enforcing our standards of Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive, response to any behavior that they deem inappropriate, threatening, offensive,
or harmful. or harmful.
Community leaders have the right and responsibility to remove, edit, or reject Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate. decisions when appropriate.
## Scope ## Scope
This Code of Conduct applies within all community spaces, and also applies when This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces. an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address, Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed posting via an official social media account, or acting as an appointed
representative at an online or offline event. representative at an online or offline event.
## Enforcement ## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at reported to the community leaders responsible for enforcement at
frenck@frenck.dev. frenck@frenck.dev.
All complaints will be reviewed and investigated promptly and fairly. All complaints will be reviewed and investigated promptly and fairly.
All community leaders are obligated to respect the privacy and security of the All community leaders are obligated to respect the privacy and security of the
reporter of any incident. reporter of any incident.
## Enforcement Guidelines ## Enforcement Guidelines
Community leaders will follow these Community Impact Guidelines in determining Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct: the consequences for any action they deem in violation of this Code of Conduct:
### 1. Correction ### 1. Correction
**Community Impact**: Use of inappropriate language or other behavior deemed **Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community. unprofessional or unwelcome in the community.
**Consequence**: A private, written warning from community leaders, providing **Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested. behavior was inappropriate. A public apology may be requested.
### 2. Warning ### 2. Warning
**Community Impact**: A violation through a single incident or series **Community Impact**: A violation through a single incident or series
of actions. of actions.
**Consequence**: A warning with consequences for continued behavior. No **Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or like social media. Violating these terms may lead to a temporary or
permanent ban. permanent ban.
### 3. Temporary Ban ### 3. Temporary Ban
**Community Impact**: A serious violation of community standards, including **Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior. sustained inappropriate behavior.
**Consequence**: A temporary ban from any sort of interaction or public **Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period. with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban. Violating these terms may lead to a permanent ban.
### 4. Permanent Ban ### 4. Permanent Ban
**Community Impact**: Demonstrating a pattern of violation of community **Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals. individual, or aggression toward or disparagement of classes of individuals.
**Consequence**: A permanent ban from any sort of public interaction within **Consequence**: A permanent ban from any sort of public interaction within
the community. the community.
## Attribution ## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at version 2.0, available at
[https://www.contributor-covenant.org/version/2/0/code_of_conduct.html][v2.0]. [https://www.contributor-covenant.org/version/2/0/code_of_conduct.html][v2.0].
Community Impact Guidelines were inspired by Community Impact Guidelines were inspired by
[Mozilla's code of conduct enforcement ladder][mozilla coc]. [Mozilla's code of conduct enforcement ladder][mozilla coc].
For answers to common questions about this code of conduct, see the FAQ at For answers to common questions about this code of conduct, see the FAQ at
[https://www.contributor-covenant.org/faq][faq]. Translations are available [https://www.contributor-covenant.org/faq][faq]. Translations are available
at [https://www.contributor-covenant.org/translations][translations]. at [https://www.contributor-covenant.org/translations][translations].
[homepage]: https://www.contributor-covenant.org [homepage]: https://www.contributor-covenant.org
[v2.0]: https://www.contributor-covenant.org/version/2/0/code_of_conduct.html [v2.0]: https://www.contributor-covenant.org/version/2/0/code_of_conduct.html
[mozilla coc]: https://github.com/mozilla/diversity [mozilla coc]: https://github.com/mozilla/diversity
[faq]: https://www.contributor-covenant.org/faq [faq]: https://www.contributor-covenant.org/faq
[translations]: https://www.contributor-covenant.org/translations [translations]: https://www.contributor-covenant.org/translations

View file

@ -1,29 +1,29 @@
# Contributing # Contributing
When contributing to this repository, please first discuss the change you wish When contributing to this repository, please first discuss the change you wish
to make via issue, email, or any other method with the owners of this repository to make via issue, email, or any other method with the owners of this repository
before making a change. before making a change.
Please note we have a code of conduct, please follow it in all your interactions Please note we have a code of conduct, please follow it in all your interactions
with the project. with the project.
## Issues and feature requests ## Issues and feature requests
You've found a bug in the source code, a mistake in the documentation or maybe You've found a bug in the source code, a mistake in the documentation or maybe
you'd like a new feature? You can help us by submitting an issue to our you'd like a new feature? You can help us by submitting an issue to our
[GitHub Repository][github]. Before you create an issue, make sure you search [GitHub Repository][github]. Before you create an issue, make sure you search
the archive, maybe your question was already answered. the archive, maybe your question was already answered.
Even better: You could submit a pull request with a fix / new feature! Even better: You could submit a pull request with a fix / new feature!
## Pull request process ## Pull request process
1. Search our repository for open or closed [pull requests][prs] that relates 1. Search our repository for open or closed [pull requests][prs] that relates
to your submission. You don't want to duplicate effort. to your submission. You don't want to duplicate effort.
1. You may merge the pull request in once you have the sign-off of two other 1. You may merge the pull request in once you have the sign-off of two other
developers, or if you do not have permission to do that, you may request developers, or if you do not have permission to do that, you may request
the second reviewer to merge it for you. the second reviewer to merge it for you.
[github]: https://github.com/hassio-addons/addon-vscode/issues [github]: https://github.com/hassio-addons/addon-vscode/issues
[prs]: https://github.com/hassio-addons/addon-vscode/pulls [prs]: https://github.com/hassio-addons/addon-vscode/pulls

8
.github/FUNDING.yml vendored
View file

@ -1,4 +1,4 @@
--- ---
github: frenck github: frenck
patreon: frenck patreon: frenck
custom: https://frenck.dev/donate/ custom: https://frenck.dev/donate/

View file

@ -1,20 +1,20 @@
# Problem/Motivation # Problem/Motivation
> (Why the issue was filed) > (Why the issue was filed)
## Expected behavior ## Expected behavior
> (What you expected to happen) > (What you expected to happen)
## Actual behavior ## Actual behavior
> (What actually happened) > (What actually happened)
## Steps to reproduce ## Steps to reproduce
> (How can someone else make/see it happen) > (How can someone else make/see it happen)
## Proposed changes ## Proposed changes
> (If you have a proposed change, workaround or fix, > (If you have a proposed change, workaround or fix,
> describe the rationale behind it) > describe the rationale behind it)

View file

@ -1,9 +1,9 @@
# Proposed Changes # Proposed Changes
> (Describe the changes and rationale behind them) > (Describe the changes and rationale behind them)
## Related Issues ## Related Issues
> ([Github link][autolink-references] to related issues or pull requests) > ([Github link][autolink-references] to related issues or pull requests)
[autolink-references]: https://help.github.com/articles/autolinked-references-and-urls/ [autolink-references]: https://help.github.com/articles/autolinked-references-and-urls/

3678
.github/SECURITY.md vendored

File diff suppressed because it is too large Load diff

300
.github/renovate.json vendored
View file

@ -1,150 +1,150 @@
{ {
"$schema": "https://docs.renovatebot.com/renovate-schema.json", "$schema": "https://docs.renovatebot.com/renovate-schema.json",
"rebaseWhen": "behind-base-branch", "rebaseWhen": "behind-base-branch",
"dependencyDashboard": true, "dependencyDashboard": true,
"labels": ["dependencies", "no-stale"], "labels": ["dependencies", "no-stale"],
"commitMessagePrefix": "⬆️", "commitMessagePrefix": "⬆️",
"commitMessageTopic": "{{depName}}", "commitMessageTopic": "{{depName}}",
"customManagers": [ "customManagers": [
{ {
"customType": "regex", "customType": "regex",
"fileMatch": ["/Dockerfile$", "/build.yaml$"], "fileMatch": ["/Dockerfile$", "/build.yaml$"],
"matchStringsStrategy": "any", "matchStringsStrategy": "any",
"matchStrings": [ "matchStrings": [
"ARG BUILD_FROM=(?<depName>.*?):(?<currentValue>.*?)\\s+", "ARG BUILD_FROM=(?<depName>.*?):(?<currentValue>.*?)\\s+",
"(aarch64|amd64|armhf|armv7|i386):\\s[\"']?(?<depName>.*?):(?<currentValue>.*?)[\"']?\\s" "(aarch64|amd64|armhf|armv7|i386):\\s[\"']?(?<depName>.*?):(?<currentValue>.*?)[\"']?\\s"
], ],
"datasourceTemplate": "docker" "datasourceTemplate": "docker"
}, },
{ {
"customType": "regex", "customType": "regex",
"fileMatch": ["/Dockerfile$"], "fileMatch": ["/Dockerfile$"],
"matchStringsStrategy": "any", "matchStringsStrategy": "any",
"matchStrings": [ "matchStrings": [
"\\s\\s(?<package>[a-z0-9][a-z0-9-]+)=(?<currentValue>[a-z0-9-:_+~.]+)\\s+" "\\s\\s(?<package>[a-z0-9][a-z0-9-]+)=(?<currentValue>[a-z0-9-:_+~.]+)\\s+"
], ],
"versioningTemplate": "deb", "versioningTemplate": "deb",
"datasourceTemplate": "repology", "datasourceTemplate": "repology",
"depNameTemplate": "debian_12/{{{replace 'openssh-client' 'openssh' package}}}" "depNameTemplate": "debian_12/{{{replace 'openssh-client' 'openssh' package}}}"
}, },
{ {
"customType": "regex", "customType": "regex",
"fileMatch": ["/Dockerfile$"], "fileMatch": ["/Dockerfile$"],
"matchStrings": [ "matchStrings": [
"ARG CODE_SERVER_VERSION=[\"']?(?<currentValue>.+?)[\"']?\\s+" "ARG CODE_SERVER_VERSION=[\"']?(?<currentValue>.+?)[\"']?\\s+"
], ],
"datasourceTemplate": "github-releases", "datasourceTemplate": "github-releases",
"depNameTemplate": "cdr/code-server" "depNameTemplate": "cdr/code-server"
}, },
{ {
"customType": "regex", "customType": "regex",
"fileMatch": ["/Dockerfile$"], "fileMatch": ["/Dockerfile$"],
"matchStrings": [ "matchStrings": [
"ARG HA_CLI_VERSION=[\"']?(?<currentValue>.+?)[\"']?\\s+" "ARG HA_CLI_VERSION=[\"']?(?<currentValue>.+?)[\"']?\\s+"
], ],
"datasourceTemplate": "github-releases", "datasourceTemplate": "github-releases",
"depNameTemplate": "home-assistant/cli", "depNameTemplate": "home-assistant/cli",
"versioningTemplate": "loose" "versioningTemplate": "loose"
}, },
{ {
"customType": "regex", "customType": "regex",
"fileMatch": ["vscode/vscode.extensions$"], "fileMatch": ["vscode/vscode.extensions$"],
"matchStrings": ["emilast\\.LogFileHighlighter#(?<currentValue>.+)\\s"], "matchStrings": ["emilast\\.LogFileHighlighter#(?<currentValue>.+)\\s"],
"datasourceTemplate": "github-releases", "datasourceTemplate": "github-releases",
"depNameTemplate": "emilast/vscode-logfile-highlighter" "depNameTemplate": "emilast/vscode-logfile-highlighter"
}, },
{ {
"customType": "regex", "customType": "regex",
"fileMatch": ["vscode/vscode.extensions$"], "fileMatch": ["vscode/vscode.extensions$"],
"matchStrings": ["esbenp\\.prettier-vscode#(?<currentValue>.+)\\s"], "matchStrings": ["esbenp\\.prettier-vscode#(?<currentValue>.+)\\s"],
"datasourceTemplate": "github-releases", "datasourceTemplate": "github-releases",
"depNameTemplate": "prettier/prettier-vscode", "depNameTemplate": "prettier/prettier-vscode",
"extractVersionTemplate": "^v(?<version>.*)$" "extractVersionTemplate": "^v(?<version>.*)$"
}, },
{ {
"customType": "regex", "customType": "regex",
"fileMatch": ["vscode/vscode.extensions$"], "fileMatch": ["vscode/vscode.extensions$"],
"matchStrings": ["ESPHome\\.esphome-vscode#(?<currentValue>.+)\\s"], "matchStrings": ["ESPHome\\.esphome-vscode#(?<currentValue>.+)\\s"],
"datasourceTemplate": "github-releases", "datasourceTemplate": "github-releases",
"depNameTemplate": "esphome/esphome-vscode", "depNameTemplate": "esphome/esphome-vscode",
"versioningTemplate": "loose", "versioningTemplate": "loose",
"extractVersionTemplate": "^v(?<version>.*)$" "extractVersionTemplate": "^v(?<version>.*)$"
}, },
{ {
"customType": "regex", "customType": "regex",
"fileMatch": ["vscode/vscode.extensions$"], "fileMatch": ["vscode/vscode.extensions$"],
"matchStrings": [ "matchStrings": [
"keesschollaart\\.vscode-home-assistant#(?<currentValue>.+)\\s" "keesschollaart\\.vscode-home-assistant#(?<currentValue>.+)\\s"
], ],
"datasourceTemplate": "github-releases", "datasourceTemplate": "github-releases",
"depNameTemplate": "keesschollaart81/vscode-home-assistant", "depNameTemplate": "keesschollaart81/vscode-home-assistant",
"extractVersionTemplate": "^v(?<version>.*)$" "extractVersionTemplate": "^v(?<version>.*)$"
}, },
{ {
"customType": "regex", "customType": "regex",
"fileMatch": ["vscode/vscode.extensions$"], "fileMatch": ["vscode/vscode.extensions$"],
"matchStrings": [ "matchStrings": [
"lukas-tr\\.materialdesignicons-intellisense#(?<currentValue>.+)\\s" "lukas-tr\\.materialdesignicons-intellisense#(?<currentValue>.+)\\s"
], ],
"datasourceTemplate": "github-releases", "datasourceTemplate": "github-releases",
"depNameTemplate": "lukas-tr/vscode-materialdesignicons-intellisense", "depNameTemplate": "lukas-tr/vscode-materialdesignicons-intellisense",
"extractVersionTemplate": "^v(?<version>.*)$" "extractVersionTemplate": "^v(?<version>.*)$"
}, },
{ {
"customType": "regex", "customType": "regex",
"fileMatch": ["vscode/vscode.extensions$"], "fileMatch": ["vscode/vscode.extensions$"],
"matchStrings": ["netcorext\\.uuid-generator#(?<currentValue>.+)\\s"], "matchStrings": ["netcorext\\.uuid-generator#(?<currentValue>.+)\\s"],
"datasourceTemplate": "github-releases", "datasourceTemplate": "github-releases",
"depNameTemplate": "arenchen/vscode-uuid-generator" "depNameTemplate": "arenchen/vscode-uuid-generator"
}, },
{ {
"customType": "regex", "customType": "regex",
"fileMatch": ["vscode/vscode.extensions$"], "fileMatch": ["vscode/vscode.extensions$"],
"matchStrings": ["usernamehw\\.errorlens#(?<currentValue>.+)\\s"], "matchStrings": ["usernamehw\\.errorlens#(?<currentValue>.+)\\s"],
"datasourceTemplate": "github-releases", "datasourceTemplate": "github-releases",
"depNameTemplate": "usernamehw/vscode-error-lens", "depNameTemplate": "usernamehw/vscode-error-lens",
"extractVersionTemplate": "^v(?<version>.*)$" "extractVersionTemplate": "^v(?<version>.*)$"
} }
], ],
"packageRules": [ "packageRules": [
{ {
"matchDatasources": ["repology"], "matchDatasources": ["repology"],
"automerge": true "automerge": true
}, },
{ {
"groupName": "Add-on base image", "groupName": "Add-on base image",
"matchDatasources": ["docker"] "matchDatasources": ["docker"]
}, },
{ {
"groupName": "Add-on base image", "groupName": "Add-on base image",
"matchDatasources": ["docker"], "matchDatasources": ["docker"],
"matchUpdateTypes": ["minor", "patch"], "matchUpdateTypes": ["minor", "patch"],
"automerge": true "automerge": true
}, },
{ {
"matchDatasources": ["github-releases"], "matchDatasources": ["github-releases"],
"matchDepNames": ["coder/code-server"], "matchDepNames": ["coder/code-server"],
"matchUpdateTypes": ["minor", "patch"], "matchUpdateTypes": ["minor", "patch"],
"automerge": true "automerge": true
}, },
{ {
"matchDatasources": ["github-releases"], "matchDatasources": ["github-releases"],
"matchDepNames": ["home-assistant/cli"], "matchDepNames": ["home-assistant/cli"],
"automerge": true "automerge": true
}, },
{ {
"matchManagers": ["pip_requirements"], "matchManagers": ["pip_requirements"],
"addLabels": ["python"] "addLabels": ["python"]
}, },
{ {
"matchManagers": ["pip_requirements"], "matchManagers": ["pip_requirements"],
"matchDepTypes": ["dev"], "matchDepTypes": ["dev"],
"rangeStrategy": "pin" "rangeStrategy": "pin"
}, },
{ {
"matchManagers": ["pip_requirements"], "matchManagers": ["pip_requirements"],
"matchUpdateTypes": ["minor", "patch"], "matchUpdateTypes": ["minor", "patch"],
"automerge": true "automerge": true
} }
] ]
} }

View file

@ -1,16 +1,16 @@
--- ---
name: CI name: CI
# yamllint disable-line rule:truthy # yamllint disable-line rule:truthy
on: on:
push: push:
pull_request: pull_request:
types: types:
- opened - opened
- reopened - reopened
- synchronize - synchronize
workflow_dispatch: workflow_dispatch:
jobs: jobs:
workflows: workflows:
uses: hassio-addons/workflows/.github/workflows/addon-ci.yaml@main uses: hassio-addons/workflows/.github/workflows/addon-ci.yaml@main

View file

@ -1,19 +1,19 @@
--- ---
name: Deploy name: Deploy
# yamllint disable-line rule:truthy # yamllint disable-line rule:truthy
on: on:
release: release:
types: types:
- published - published
workflow_run: workflow_run:
workflows: ["CI"] workflows: ["CI"]
branches: [main] branches: [main]
types: types:
- completed - completed
jobs: jobs:
workflows: workflows:
uses: hassio-addons/workflows/.github/workflows/addon-deploy.yaml@main uses: hassio-addons/workflows/.github/workflows/addon-deploy.yaml@main
secrets: secrets:
DISPATCH_TOKEN: ${{ secrets.DISPATCH_TOKEN }} DISPATCH_TOKEN: ${{ secrets.DISPATCH_TOKEN }}

View file

@ -1,12 +1,12 @@
--- ---
name: Sync labels name: Sync labels
# yamllint disable-line rule:truthy # yamllint disable-line rule:truthy
on: on:
schedule: schedule:
- cron: "34 5 * * *" - cron: "34 5 * * *"
workflow_dispatch: workflow_dispatch:
jobs: jobs:
workflows: workflows:
uses: hassio-addons/workflows/.github/workflows/labels.yaml@main uses: hassio-addons/workflows/.github/workflows/labels.yaml@main

View file

@ -1,12 +1,12 @@
--- ---
name: Lock name: Lock
# yamllint disable-line rule:truthy # yamllint disable-line rule:truthy
on: on:
schedule: schedule:
- cron: "0 9 * * *" - cron: "0 9 * * *"
workflow_dispatch: workflow_dispatch:
jobs: jobs:
workflows: workflows:
uses: hassio-addons/workflows/.github/workflows/lock.yaml@main uses: hassio-addons/workflows/.github/workflows/lock.yaml@main

View file

@ -1,15 +1,15 @@
--- ---
name: PR Labels name: PR Labels
# yamllint disable-line rule:truthy # yamllint disable-line rule:truthy
on: on:
pull_request_target: pull_request_target:
types: types:
- opened - opened
- labeled - labeled
- unlabeled - unlabeled
- synchronize - synchronize
jobs: jobs:
workflows: workflows:
uses: hassio-addons/workflows/.github/workflows/pr-labels.yaml@main uses: hassio-addons/workflows/.github/workflows/pr-labels.yaml@main

View file

@ -1,12 +1,12 @@
--- ---
name: Release Drafter name: Release Drafter
# yamllint disable-line rule:truthy # yamllint disable-line rule:truthy
on: on:
push: push:
branches: branches:
- main - main
jobs: jobs:
workflows: workflows:
uses: hassio-addons/workflows/.github/workflows/release-drafter.yaml@main uses: hassio-addons/workflows/.github/workflows/release-drafter.yaml@main

View file

@ -1,12 +1,12 @@
--- ---
name: Stale name: Stale
# yamllint disable-line rule:truthy # yamllint disable-line rule:truthy
on: on:
schedule: schedule:
- cron: "0 8 * * *" - cron: "0 8 * * *"
workflow_dispatch: workflow_dispatch:
jobs: jobs:
workflows: workflows:
uses: hassio-addons/workflows/.github/workflows/stale.yaml@main uses: hassio-addons/workflows/.github/workflows/stale.yaml@main

View file

@ -1,5 +1,5 @@
{ {
"recommendations": [ "recommendations": [
"pinage404.bash-extension-pack" "pinage404.bash-extension-pack"
] ]
} }

View file

@ -1,5 +1,5 @@
{ {
"yaml.schemas": { "yaml.schemas": {
"https://json.schemastore.org/yamllint.json": "file:///f%3A/repos/addon-vscode/vscode/rootfs/usr/lib/code-server/defaults/config.yaml" "https://json.schemastore.org/yamllint.json": "file:///f%3A/repos/addon-vscode/vscode/rootfs/usr/lib/code-server/defaults/config.yaml"
} }
} }

132
.yamllint
View file

@ -1,66 +1,66 @@
--- ---
rules: rules:
braces: braces:
level: error level: error
min-spaces-inside: 0 min-spaces-inside: 0
max-spaces-inside: 1 max-spaces-inside: 1
min-spaces-inside-empty: -1 min-spaces-inside-empty: -1
max-spaces-inside-empty: -1 max-spaces-inside-empty: -1
brackets: brackets:
level: error level: error
min-spaces-inside: 0 min-spaces-inside: 0
max-spaces-inside: 0 max-spaces-inside: 0
min-spaces-inside-empty: -1 min-spaces-inside-empty: -1
max-spaces-inside-empty: -1 max-spaces-inside-empty: -1
colons: colons:
level: error level: error
max-spaces-before: 0 max-spaces-before: 0
max-spaces-after: 1 max-spaces-after: 1
commas: commas:
level: error level: error
max-spaces-before: 0 max-spaces-before: 0
min-spaces-after: 1 min-spaces-after: 1
max-spaces-after: 1 max-spaces-after: 1
comments: comments:
level: error level: error
require-starting-space: true require-starting-space: true
min-spaces-from-content: 2 min-spaces-from-content: 2
comments-indentation: comments-indentation:
level: error level: error
document-end: document-end:
level: error level: error
present: false present: false
document-start: document-start:
level: error level: error
present: true present: true
empty-lines: empty-lines:
level: error level: error
max: 1 max: 1
max-start: 0 max-start: 0
max-end: 1 max-end: 1
hyphens: hyphens:
level: error level: error
max-spaces-after: 1 max-spaces-after: 1
indentation: indentation:
level: error level: error
spaces: 2 spaces: 2
indent-sequences: true indent-sequences: true
check-multi-line-strings: false check-multi-line-strings: false
key-duplicates: key-duplicates:
level: error level: error
line-length: line-length:
ignore: | ignore: |
.github/support.yml .github/support.yml
level: warning level: warning
max: 120 max: 120
allow-non-breakable-words: true allow-non-breakable-words: true
allow-non-breakable-inline-mappings: true allow-non-breakable-inline-mappings: true
new-line-at-end-of-file: new-line-at-end-of-file:
level: error level: error
new-lines: new-lines:
level: error level: error
type: unix type: unix
trailing-spaces: trailing-spaces:
level: error level: error
truthy: truthy:
level: error level: error

View file

@ -1,21 +1,21 @@
# MIT License # MIT License
Copyright (c) 2019-2025 Franck Nijhof Copyright (c) 2019-2025 Franck Nijhof
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software. copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 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 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. SOFTWARE.

264
README.md
View file

@ -1,132 +1,132 @@
# Home Assistant Community Add-on: Studio Code Server # Home Assistant Community Add-on: Studio Code Server
[![GitHub Release][releases-shield]][releases] [![GitHub Release][releases-shield]][releases]
![Project Stage][project-stage-shield] ![Project Stage][project-stage-shield]
[![License][license-shield]](LICENSE.md) [![License][license-shield]](LICENSE.md)
![Supports aarch64 Architecture][aarch64-shield] ![Supports aarch64 Architecture][aarch64-shield]
![Supports amd64 Architecture][amd64-shield] ![Supports amd64 Architecture][amd64-shield]
![Supports armhf Architecture][armhf-shield] ![Supports armhf Architecture][armhf-shield]
![Supports armv7 Architecture][armv7-shield] ![Supports armv7 Architecture][armv7-shield]
![Supports i386 Architecture][i386-shield] ![Supports i386 Architecture][i386-shield]
[![Github Actions][github-actions-shield]][github-actions] [![Github Actions][github-actions-shield]][github-actions]
![Project Maintenance][maintenance-shield] ![Project Maintenance][maintenance-shield]
[![GitHub Activity][commits-shield]][commits] [![GitHub Activity][commits-shield]][commits]
[![Discord][discord-shield]][discord] [![Discord][discord-shield]][discord]
[![Community Forum][forum-shield]][forum] [![Community Forum][forum-shield]][forum]
[![Sponsor Frenck via GitHub Sponsors][github-sponsors-shield]][github-sponsors] [![Sponsor Frenck via GitHub Sponsors][github-sponsors-shield]][github-sponsors]
[![Support Frenck on Patreon][patreon-shield]][patreon] [![Support Frenck on Patreon][patreon-shield]][patreon]
A VSCode experience, accessible through the browser. A VSCode experience, accessible through the browser.
![Studio Code Server in the Home Assistant Frontend](images/screenshot.png) ![Studio Code Server in the Home Assistant Frontend](images/screenshot.png)
## About ## About
This add-on runs [code-server](https://github.com/cdr/code-server), which This add-on runs [code-server](https://github.com/cdr/code-server), which
gives you a Visual Studio Code experience straight from the browser. It allows 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, you to edit your Home Assistant configuration directly from your web browser,
directly from within the Home Assistant frontend. directly from within the Home Assistant frontend.
The add-on has the Home Assistant, MDI icons and YAML extensions pre-installed 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 and pre-configured right out of the box. This means that auto-completion works
instantly, without the need for configuring anything. instantly, without the need for configuring anything.
[:books: Read the full add-on documentation][docs] [:books: Read the full add-on documentation][docs]
## Support ## Support
Got questions? Got questions?
You have several options to get them answered: You have several options to get them answered:
- The [Home Assistant Community Add-ons Discord chat server][discord] for add-on - The [Home Assistant Community Add-ons Discord chat server][discord] for add-on
support and feature requests. support and feature requests.
- The [Home Assistant Discord chat server][discord-ha] for general Home - The [Home Assistant Discord chat server][discord-ha] for general Home
Assistant discussions and questions. Assistant discussions and questions.
- The Home Assistant [Community Forum][forum]. - The Home Assistant [Community Forum][forum].
- Join the [Reddit subreddit][reddit] in [/r/homeassistant][reddit] - Join the [Reddit subreddit][reddit] in [/r/homeassistant][reddit]
You could also [open an issue here][issue] GitHub. You could also [open an issue here][issue] GitHub.
## Contributing ## Contributing
This is an active open-source project. We are always open to people who want to This is an active open-source project. We are always open to people who want to
use the code or contribute to it. use the code or contribute to it.
We have set up a separate document containing our We have set up a separate document containing our
[contribution guidelines](.github/CONTRIBUTING.md). [contribution guidelines](.github/CONTRIBUTING.md).
Thank you for being involved! :heart_eyes: Thank you for being involved! :heart_eyes:
## Authors & contributors ## Authors & contributors
The original setup of this repository is by [Franck Nijhof][frenck]. The original setup of this repository is by [Franck Nijhof][frenck].
For a full list of all authors and contributors, For a full list of all authors and contributors,
check [the contributor's page][contributors]. check [the contributor's page][contributors].
## We have got some Home Assistant add-ons for you ## We have got some Home Assistant add-ons for you
Want some more functionality to your Home Assistant instance? Want some more functionality to your Home Assistant instance?
We have created multiple add-ons for Home Assistant. For a full list, check out We have created multiple add-ons for Home Assistant. For a full list, check out
our [GitHub Repository][repository]. our [GitHub Repository][repository].
## License ## License
MIT License MIT License
Copyright (c) 2019-2025 Franck Nijhof Copyright (c) 2019-2025 Franck Nijhof
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software. copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 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 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. SOFTWARE.
[aarch64-shield]: https://img.shields.io/badge/aarch64-yes-green.svg [aarch64-shield]: https://img.shields.io/badge/aarch64-yes-green.svg
[amd64-shield]: https://img.shields.io/badge/amd64-yes-green.svg [amd64-shield]: https://img.shields.io/badge/amd64-yes-green.svg
[armhf-shield]: https://img.shields.io/badge/armhf-no-red.svg [armhf-shield]: https://img.shields.io/badge/armhf-no-red.svg
[armv7-shield]: https://img.shields.io/badge/armv7-no-red.svg [armv7-shield]: https://img.shields.io/badge/armv7-no-red.svg
[commits-shield]: https://img.shields.io/github/commit-activity/y/hassio-addons/addon-vscode.svg [commits-shield]: https://img.shields.io/github/commit-activity/y/hassio-addons/addon-vscode.svg
[commits]: https://github.com/hassio-addons/addon-vscode/commits/main [commits]: https://github.com/hassio-addons/addon-vscode/commits/main
[contributors]: https://github.com/hassio-addons/addon-vscode/graphs/contributors [contributors]: https://github.com/hassio-addons/addon-vscode/graphs/contributors
[discord-ha]: https://discord.gg/c5DvZ4e [discord-ha]: https://discord.gg/c5DvZ4e
[discord-shield]: https://img.shields.io/discord/478094546522079232.svg [discord-shield]: https://img.shields.io/discord/478094546522079232.svg
[discord]: https://discord.me/hassioaddons [discord]: https://discord.me/hassioaddons
[docs]: https://github.com/hassio-addons/addon-vscode/blob/main/vscode/DOCS.md [docs]: https://github.com/hassio-addons/addon-vscode/blob/main/vscode/DOCS.md
[forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg [forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg
[forum]: https://community.home-assistant.io/t/home-assistant-community-add-on-visual-studio-code/107863?u=frenck [forum]: https://community.home-assistant.io/t/home-assistant-community-add-on-visual-studio-code/107863?u=frenck
[frenck]: https://github.com/frenck [frenck]: https://github.com/frenck
[github-actions-shield]: https://github.com/hassio-addons/addon-vscode/workflows/CI/badge.svg [github-actions-shield]: https://github.com/hassio-addons/addon-vscode/workflows/CI/badge.svg
[github-actions]: https://github.com/hassio-addons/addon-vscode/actions [github-actions]: https://github.com/hassio-addons/addon-vscode/actions
[github-sponsors-shield]: https://frenck.dev/wp-content/uploads/2019/12/github_sponsor.png [github-sponsors-shield]: https://frenck.dev/wp-content/uploads/2019/12/github_sponsor.png
[github-sponsors]: https://github.com/sponsors/frenck [github-sponsors]: https://github.com/sponsors/frenck
[i386-shield]: https://img.shields.io/badge/i386-no-red.svg [i386-shield]: https://img.shields.io/badge/i386-no-red.svg
[issue]: https://github.com/hassio-addons/addon-vscode/issues [issue]: https://github.com/hassio-addons/addon-vscode/issues
[license-shield]: https://img.shields.io/github/license/hassio-addons/addon-vscode.svg [license-shield]: https://img.shields.io/github/license/hassio-addons/addon-vscode.svg
[maintenance-shield]: https://img.shields.io/maintenance/yes/2025.svg [maintenance-shield]: https://img.shields.io/maintenance/yes/2025.svg
[patreon-shield]: https://frenck.dev/wp-content/uploads/2019/12/patreon.png [patreon-shield]: https://frenck.dev/wp-content/uploads/2019/12/patreon.png
[patreon]: https://www.patreon.com/frenck [patreon]: https://www.patreon.com/frenck
[project-stage-shield]: https://img.shields.io/badge/project%20stage-production%20ready-brightgreen.svg [project-stage-shield]: https://img.shields.io/badge/project%20stage-production%20ready-brightgreen.svg
[reddit]: https://reddit.com/r/homeassistant [reddit]: https://reddit.com/r/homeassistant
[releases-shield]: https://img.shields.io/github/release/hassio-addons/addon-vscode.svg [releases-shield]: https://img.shields.io/github/release/hassio-addons/addon-vscode.svg
[releases]: https://github.com/hassio-addons/addon-vscode/releases [releases]: https://github.com/hassio-addons/addon-vscode/releases
[repository]: https://github.com/hassio-addons/repository [repository]: https://github.com/hassio-addons/repository

View file

@ -1,4 +1,4 @@
--- ---
name: vscode name: vscode
url: https://github.com/rsperry79/addon-vscode/ url: https://github.com/rsperry79/addon-vscode/
maintainer: Richard Sperry <https://github.com/rsperry79/addon-vscode/> maintainer: Richard Sperry <https://github.com/rsperry79/addon-vscode/>

View file

@ -1,79 +1,79 @@
# Home Assistant Community Add-on: Visual Studio Code # Home Assistant Community Add-on: Visual Studio Code
[![Release][release-shield]][release] ![Project Stage][project-stage-shield] ![Project Maintenance][maintenance-shield] [![Release][release-shield]][release] ![Project Stage][project-stage-shield] ![Project Maintenance][maintenance-shield]
[![Discord][discord-shield]][discord] [![Community Forum][forum-shield]][forum] [![Discord][discord-shield]][discord] [![Community Forum][forum-shield]][forum]
[![Sponsor Frenck via GitHub Sponsors][github-sponsors-shield]][github-sponsors] [![Sponsor Frenck via GitHub Sponsors][github-sponsors-shield]][github-sponsors]
[![Support Frenck on Patreon][patreon-shield]][patreon] [![Support Frenck on Patreon][patreon-shield]][patreon]
Visual Studio Code, accessible through the browser. Visual Studio Code, accessible through the browser.
## About ## About
This add-on runs Visual Studio Code, allowing you to edit your Home Assistant This add-on runs Visual Studio Code, allowing you to edit your Home Assistant
configuration straight from the web browser and can be embedded straight configuration straight from the web browser and can be embedded straight
into the Home Assistant frontend UI. into the Home Assistant frontend UI.
Visual Studio Code runs as a remote server using `code-server`, and is a Visual Studio Code runs as a remote server using `code-server`, and is a
fully fledged VSCode experience. fully fledged VSCode experience.
The add-on has the Home Assistant, MDI icons and YAML extensions pre-installed 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 and pre-configured right out of the box. This means that auto-completion works
instantly, without the need for configuring anything. instantly, without the need for configuring anything.
![Studio Code Server in the Home Assistant Frontend][screenshot] ![Studio Code Server in the Home Assistant Frontend][screenshot]
{% if channel == "edge" %} {% if channel == "edge" %}
## WARNING! THIS IS AN EDGE VERSION! ## WARNING! THIS IS AN EDGE VERSION!
This Home Assistant Add-ons repository contains edge builds of add-ons. This Home Assistant Add-ons repository contains edge builds of add-ons.
Edge builds add-ons are based upon the latest development version. Edge builds add-ons are based upon the latest development version.
- They may not work at all. - They may not work at all.
- They might stop working at any time. - They might stop working at any time.
- They could have a negative impact on your system. - They could have a negative impact on your system.
This repository was created for: This repository was created for:
- Anybody willing to test. - Anybody willing to test.
- Anybody interested in trying out upcoming add-ons or add-on features. - Anybody interested in trying out upcoming add-ons or add-on features.
- Developers. - Developers.
If you are more interested in stable releases of our add-ons: If you are more interested in stable releases of our add-ons:
<https://github.com/hassio-addons/repository> <https://github.com/hassio-addons/repository>
{% endif %} {% endif %}
{% if channel == "beta" %} {% if channel == "beta" %}
## WARNING! THIS IS A BETA VERSION! ## WARNING! THIS IS A BETA VERSION!
This Home Assistant Add-ons repository contains beta releases of add-ons. This Home Assistant Add-ons repository contains beta releases of add-ons.
- They might stop working at any time. - They might stop working at any time.
- They could have a negative impact on your system. - They could have a negative impact on your system.
This repository was created for: This repository was created for:
- Anybody willing to test. - Anybody willing to test.
- Anybody interested in trying out upcoming add-ons or add-on features. - Anybody interested in trying out upcoming add-ons or add-on features.
If you are more interested in stable releases of our add-ons: If you are more interested in stable releases of our add-ons:
<https://github.com/hassio-addons/repository> <https://github.com/hassio-addons/repository>
{% endif %} {% endif %}
[discord-shield]: https://img.shields.io/discord/478094546522079232.svg [discord-shield]: https://img.shields.io/discord/478094546522079232.svg
[discord]: https://discord.me/hassioaddons [discord]: https://discord.me/hassioaddons
[forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg [forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg
[forum]: https://community.home-assistant.io/t/home-assistant-community-add-on-visual-studio-code/107863?u=frenck [forum]: https://community.home-assistant.io/t/home-assistant-community-add-on-visual-studio-code/107863?u=frenck
[github-sponsors-shield]: https://frenck.dev/wp-content/uploads/2019/12/github_sponsor.png [github-sponsors-shield]: https://frenck.dev/wp-content/uploads/2019/12/github_sponsor.png
[github-sponsors]: https://github.com/sponsors/frenck [github-sponsors]: https://github.com/sponsors/frenck
[maintenance-shield]: https://img.shields.io/maintenance/yes/2025.svg [maintenance-shield]: https://img.shields.io/maintenance/yes/2025.svg
[patreon-shield]: https://frenck.dev/wp-content/uploads/2019/12/patreon.png [patreon-shield]: https://frenck.dev/wp-content/uploads/2019/12/patreon.png
[patreon]: https://www.patreon.com/frenck [patreon]: https://www.patreon.com/frenck
[project-stage-shield]: https://img.shields.io/badge/project%20stage-production%20ready-brightgreen.svg [project-stage-shield]: https://img.shields.io/badge/project%20stage-production%20ready-brightgreen.svg
[release-shield]: https://img.shields.io/badge/version-{{ version }}-blue.svg [release-shield]: https://img.shields.io/badge/version-{{ version }}-blue.svg
[release]: {{ repo }}/tree/{{ version }} [release]: {{ repo }}/tree/{{ version }}
[screenshot]: {{ repo }}/raw/main/images/screenshot.png [screenshot]: {{ repo }}/raw/main/images/screenshot.png

View file

@ -1,188 +1,188 @@
# Home Assistant Community Add-on: Studio Code Server # Home Assistant Community Add-on: Studio Code Server
This add-on runs [code-server](https://github.com/coder/code-server), which This add-on runs [code-server](https://github.com/coder/code-server), which
gives you a Visual Studio Code experience straight from the browser. It allows 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, you to edit your Home Assistant configuration directly from your web browser,
directly from within the Home Assistant frontend. directly from within the Home Assistant frontend.
The add-on has the Home Assistant, MDI icons and YAML extensions pre-installed 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 and pre-configured right out of the box. This means that auto-completion works
instantly, without the need for configuring anything. instantly, without the need for configuring anything.
## Installation ## Installation
The installation of this add-on is pretty straightforward and not different in The installation of this add-on is pretty straightforward and not different in
comparison to installing any other Home Assistant add-on. comparison to installing any other Home Assistant add-on.
1. Click the Home Assistant My button below to open the add-on on your Home 1. Click the Home Assistant My button below to open the add-on on your Home
Assistant instance. Assistant instance.
[![Open this add-on in your Home Assistant instance.][addon-badge]][addon] [![Open this add-on in your Home Assistant instance.][addon-badge]][addon]
1. Click the "Install" button to install the add-on. 1. Click the "Install" button to install the add-on.
1. Start the "Studio Code Server" add-on. 1. Start the "Studio Code Server" add-on.
1. Check the logs of the "Studio Code Server" add-on to see if everything went 1. Check the logs of the "Studio Code Server" add-on to see if everything went
well. well.
1. Click the "OPEN WEB UI" button to open Studio Code Server. 1. Click the "OPEN WEB UI" button to open Studio Code Server.
## Configuration ## Configuration
**Note**: _Remember to restart the add-on when the configuration is changed._ **Note**: _Remember to restart the add-on when the configuration is changed._
Example add-on configuration: Example add-on configuration:
```yaml ```yaml
log_level: info log_level: info
config_path: /share/my_path config_path: /share/my_path
packages: packages:
- mariadb-client - mariadb-client
init_commands: init_commands:
- ls -la - ls -la
``` ```
**Note**: _This is just an example, don't copy and paste it! Create your own!_ **Note**: _This is just an example, don't copy and paste it! Create your own!_
### Option: `log_level` ### Option: `log_level`
The `log_level` option controls the level of log output by the addon and can The `log_level` option controls the level of log output by the addon and can
be changed to be more or less verbose, which might be useful when you are be changed to be more or less verbose, which might be useful when you are
dealing with an unknown issue. Possible values are: dealing with an unknown issue. Possible values are:
- `trace`: Show every detail, like all called internal functions. - `trace`: Show every detail, like all called internal functions.
- `debug`: Shows detailed debug information. - `debug`: Shows detailed debug information.
- `info`: Normal (usually) interesting events. - `info`: Normal (usually) interesting events.
- `warning`: Exceptional occurrences that are not errors. - `warning`: Exceptional occurrences that are not errors.
- `error`: Runtime errors that do not require immediate action. - `error`: Runtime errors that do not require immediate action.
- `fatal`: Something went terribly wrong. Add-on becomes unusable. - `fatal`: Something went terribly wrong. Add-on becomes unusable.
Please note that each level automatically includes log messages from a Please note that each level automatically includes log messages from a
more severe level, e.g., `debug` also shows `info` messages. By default, more severe level, e.g., `debug` also shows `info` messages. By default,
the `log_level` is set to `info`, which is the recommended setting unless the `log_level` is set to `info`, which is the recommended setting unless
you are troubleshooting. you are troubleshooting.
### Option: `config_path` ### Option: `config_path`
This option allows you to override the default path the add-on will open This option allows you to override the default path the add-on will open
when accessing the web interface. For example, use a different when accessing the web interface. For example, use a different
configuration directory like `/share/myconfig` instead of `/config`. If set configuration directory like `/share/myconfig` instead of `/config`. If set
to `/root` then all the common folders of HA such as `/config`, `/ssl`, to `/root` then all the common folders of HA such as `/config`, `/ssl`,
`/share`, etc. will appear as subfolders for each access. `/share`, etc. will appear as subfolders for each access.
When not configured, the addon will automatically use the default: `/config` When not configured, the addon will automatically use the default: `/config`
### Option: `packages` ### Option: `packages`
Allows you to specify additional [Ubuntu packages][ubuntu-packages] to be Allows you to specify additional [Ubuntu packages][ubuntu-packages] to be
installed in your shell environment (e.g., Python, PHP, Go). installed in your shell environment (e.g., Python, PHP, Go).
**Note**: _Adding many packages will result in a longer start-up **Note**: _Adding many packages will result in a longer start-up
time for the add-on._ time for the add-on._
### Option: `init_commands` ### Option: `init_commands`
Customize your VSCode environment even more with the `init_commands` option. Customize your VSCode environment even more with the `init_commands` option.
Add one or more shell commands to the list, and they will be executed every Add one or more shell commands to the list, and they will be executed every
single time this add-on starts. single time this add-on starts.
## Resetting your VSCode settings to the add-on defaults ## Resetting your VSCode settings to the add-on defaults
The add-on updates your settings to be optimized for use with Home Assistant. The add-on updates your settings to be optimized for use with Home Assistant.
As soon as you change a setting, the add-on will stop doing that since it As soon as you change a setting, the add-on will stop doing that since it
might be destructive. However, in case you changed some things, but want to might be destructive. However, in case you changed some things, but want to
return to the defaults as delivered by this add-on, do the following: return to the defaults as delivered by this add-on, do the following:
1. Open the Visual Studio Code editor. 1. Open the Visual Studio Code editor.
1. Click on `Terminal` in the top menu bar and click on `New Terminal`. 1. Click on `Terminal` in the top menu bar and click on `New Terminal`.
1. Execute the following command in the terminal window: `reset-settings`. 1. Execute the following command in the terminal window: `reset-settings`.
1. Done! 1. Done!
## Known issues and limitations ## Known issues and limitations
- Can this add-on run on a Raspberry Pi? Yes, but only if you run a 64 bits - Can this add-on run on a Raspberry Pi? Yes, but only if you run a 64 bits
operating system. Also, see point below. operating system. Also, see point below.
- This add-on currently only supports AMD64 and aarch64/ARM64 machines. - This add-on currently only supports AMD64 and aarch64/ARM64 machines.
Although we support ARM devices, please be aware, that this add-on is quite Although we support ARM devices, please be aware, that this add-on is quite
heavy to run, and requires quite a bit of RAM. We do not recommended to run heavy to run, and requires quite a bit of RAM. We do not recommended to run
it on devices with less than 4Gb of memory. it on devices with less than 4Gb of memory.
- "Visual Studio Code is unable to watch for file changes in this large - "Visual Studio Code is unable to watch for file changes in this large
workspace" (error ENOSPC) workspace" (error ENOSPC)
This issue is caused by your system not having enough file handles, This issue is caused by your system not having enough file handles,
which causes VSCode to be unable to watch all your files. For HassOS, which causes VSCode to be unable to watch all your files. For HassOS,
currently the only option is to click on the little cog when the currently the only option is to click on the little cog when the
notification appears and tell it to not show again. In case you have notification appears and tell it to not show again. In case you have
a generic Linux setup (e.g., Ubuntu), follow this guide by Microsoft: a generic Linux setup (e.g., Ubuntu), follow this guide by Microsoft:
<https://code.visualstudio.com/docs/setup/linux#_visual-studio-code-is-unable-to-watch-for-file-changes-in-this-large-workspace-error-enospc> <https://code.visualstudio.com/docs/setup/linux#_visual-studio-code-is-unable-to-watch-for-file-changes-in-this-large-workspace-error-enospc>
## Changelog & Releases ## Changelog & Releases
This repository keeps a change log using [GitHub's releases][releases] This repository keeps a change log using [GitHub's releases][releases]
functionality. functionality.
Releases are based on [Semantic Versioning][semver], and use the format Releases are based on [Semantic Versioning][semver], and use the format
of `MAJOR.MINOR.PATCH`. In a nutshell, the version will be incremented of `MAJOR.MINOR.PATCH`. In a nutshell, the version will be incremented
based on the following: based on the following:
- `MAJOR`: Incompatible or major changes. - `MAJOR`: Incompatible or major changes.
- `MINOR`: Backwards-compatible new features and enhancements. - `MINOR`: Backwards-compatible new features and enhancements.
- `PATCH`: Backwards-compatible bugfixes and package updates. - `PATCH`: Backwards-compatible bugfixes and package updates.
## Support ## Support
Got questions? Got questions?
You have several options to get them answered: You have several options to get them answered:
- The [Home Assistant Community Add-ons Discord chat server][discord] for add-on - The [Home Assistant Community Add-ons Discord chat server][discord] for add-on
support and feature requests. support and feature requests.
- The [Home Assistant Discord chat server][discord-ha] for general Home - The [Home Assistant Discord chat server][discord-ha] for general Home
Assistant discussions and questions. Assistant discussions and questions.
- The Home Assistant [Community Forum][forum]. - The Home Assistant [Community Forum][forum].
- Join the [Reddit subreddit][reddit] in [/r/homeassistant][reddit] - Join the [Reddit subreddit][reddit] in [/r/homeassistant][reddit]
You could also [open an issue here][issue] GitHub. You could also [open an issue here][issue] GitHub.
## Authors & contributors ## Authors & contributors
The original setup of this repository is by [Franck Nijhof][frenck]. The original setup of this repository is by [Franck Nijhof][frenck].
For a full list of all authors and contributors, For a full list of all authors and contributors,
check [the contributor's page][contributors]. check [the contributor's page][contributors].
## License ## License
MIT License MIT License
Copyright (c) 2019-2025 Franck Nijhof Copyright (c) 2019-2025 Franck Nijhof
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software. copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 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 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. SOFTWARE.
[addon-badge]: https://my.home-assistant.io/badges/supervisor_addon.svg [addon-badge]: https://my.home-assistant.io/badges/supervisor_addon.svg
[addon]: https://my.home-assistant.io/redirect/supervisor_addon/?addon=a0d7b954_vscode&repository_url=https%3A%2F%2Fgithub.com%2Fhassio-addons%2Frepository [addon]: https://my.home-assistant.io/redirect/supervisor_addon/?addon=a0d7b954_vscode&repository_url=https%3A%2F%2Fgithub.com%2Fhassio-addons%2Frepository
[contributors]: https://github.com/hassio-addons/addon-vscode/graphs/contributors [contributors]: https://github.com/hassio-addons/addon-vscode/graphs/contributors
[discord-ha]: https://discord.gg/c5DvZ4e [discord-ha]: https://discord.gg/c5DvZ4e
[discord]: https://discord.me/hassioaddons [discord]: https://discord.me/hassioaddons
[forum]: https://community.home-assistant.io/t/home-assistant-community-add-on-visual-studio-code/107863?u=frenck [forum]: https://community.home-assistant.io/t/home-assistant-community-add-on-visual-studio-code/107863?u=frenck
[frenck]: https://github.com/frenck [frenck]: https://github.com/frenck
[issue]: https://github.com/hassio-addons/addon-vscode/issues [issue]: https://github.com/hassio-addons/addon-vscode/issues
[reddit]: https://reddit.com/r/homeassistant [reddit]: https://reddit.com/r/homeassistant
[releases]: https://github.com/hassio-addons/addon-vscode/releases [releases]: https://github.com/hassio-addons/addon-vscode/releases
[semver]: https://semver.org/spec/v2.0.0 [semver]: https://semver.org/spec/v2.0.0
[ubuntu-packages]: https://packages.ubuntu.com [ubuntu-packages]: https://packages.ubuntu.com

View file

@ -1,124 +1,124 @@
ARG BUILD_FROM=ghcr.io/hassio-addons/debian-base:7.8.1 ARG BUILD_FROM=ghcr.io/hassio-addons/debian-base:7.8.1
# hadolint ignore=DL3006 # hadolint ignore=DL3006
FROM ${BUILD_FROM} FROM ${BUILD_FROM}
# Confiure locale # Confiure locale
ENV \ ENV \
LANG=en_US.UTF-8 \ LANG=en_US.UTF-8 \
LANGUAGE=en_US:en \ LANGUAGE=en_US:en \
LC_ALL=en_US.UTF-8 \ LC_ALL=en_US.UTF-8 \
PIP_BREAK_SYSTEM_PACKAGES=1 PIP_BREAK_SYSTEM_PACKAGES=1
# Set shell # Set shell
SHELL ["/bin/bash", "-o", "pipefail", "-c"] SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# Setup base system # Setup base system
ARG BUILD_ARCH=amd64 ARG BUILD_ARCH=amd64
ARG CODE_SERVER_VERSION="4.98.2" ARG CODE_SERVER_VERSION="4.98.2"
ARG HA_CLI_VERSION="4.37.0" ARG HA_CLI_VERSION="4.37.0"
# Install packages # Install packages
# TODO: If versions are set, will either run in devcontainers or HA but not both. # TODO: If versions are set, will either run in devcontainers or HA but not both.
# TODO: Check if all are needed # TODO: Check if all are needed
# hadolint ignore=DL3008 # hadolint ignore=DL3008
RUN apt-get update \ RUN apt-get update \
&& apt-get full-upgrade -y \ && apt-get full-upgrade -y \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends \
ack \ ack \
libarchive-tools \ libarchive-tools \
colordiff \ colordiff \
git \ git \
iputils-ping \ iputils-ping \
locales \ locales \
mariadb-client \ mariadb-client \
mosquitto-clients \ mosquitto-clients \
net-tools=2.10-0.1 \ net-tools=2.10-0.1 \
openssh-client \ openssh-client \
openssl \ openssl \
python3-dev \ python3-dev \
python3 \ python3 \
zsh \ zsh \
unzip \ unzip \
htop \ htop \
nano \ nano \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
#System configuration #System configuration
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen && \ RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen && \
update-locale LANG=en_US.UTF-8 && \ update-locale LANG=en_US.UTF-8 && \
curl https://bootstrap.pypa.io/get-pip.py | python3 curl https://bootstrap.pypa.io/get-pip.py | python3
# Install code-server # Install code-server
WORKDIR /tmp/ WORKDIR /tmp/
RUN curl -fsSL https://code-server.dev/install.sh | sh -s -- --version ${CODE_SERVER_VERSION} RUN curl -fsSL https://code-server.dev/install.sh | sh -s -- --version ${CODE_SERVER_VERSION}
# Install Home Assistant CLI # Install Home Assistant CLI
WORKDIR /tmp/ WORKDIR /tmp/
# hadolint ignore=SC2086 # hadolint ignore=SC2086
RUN if [ "${BUILD_ARCH}" = "aarch64" ]; then HA_CLI_URL="https://github.com/home-assistant/cli/releases/download/${HA_CLI_VERSION}/ha_arm64"; \ RUN if [ "${BUILD_ARCH}" = "aarch64" ]; then HA_CLI_URL="https://github.com/home-assistant/cli/releases/download/${HA_CLI_VERSION}/ha_arm64"; \
elif [ "${BUILD_ARCH}" = "amd64" ]; then HA_CLI_URL="https://github.com/home-assistant/cli/releases/download/${HA_CLI_VERSION}/ha_amd64"; fi \ elif [ "${BUILD_ARCH}" = "amd64" ]; then HA_CLI_URL="https://github.com/home-assistant/cli/releases/download/${HA_CLI_VERSION}/ha_amd64"; fi \
&& curl -J -L -o ha ${HA_CLI_URL} \ && curl -J -L -o ha ${HA_CLI_URL} \
&& mv ./ha "/usr/bin/ha" \ && mv ./ha "/usr/bin/ha" \
&& chmod +x "/usr/bin/ha" && chmod +x "/usr/bin/ha"
#Copy root file system #Copy root file system
COPY rootfs / COPY rootfs /
RUN chown -R root:root /root RUN chown -R root:root /root
# Install Oh My ZSH # Install Oh My ZSH
# hadolint ignore=SC2086 # hadolint ignore=SC2086
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" \ RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" \
&& git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions \ && git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions \
&& git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting \ && git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting \
&& sed -i -e "s#bin/bash#bin/zsh#" /etc/passwd && sed -i -e "s#bin/bash#bin/zsh#" /etc/passwd
# Install Python packages # Install Python packages
COPY ./requirements.txt /tmp/requirements.txt COPY ./requirements.txt /tmp/requirements.txt
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10 && \ RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10 && \
pip3 install --no-cache-dir -r /tmp/requirements.txt pip3 install --no-cache-dir -r /tmp/requirements.txt
# Cleanup apt cache # Cleanup apt cache
RUN apt-get purge -y --auto-remove \ RUN apt-get purge -y --auto-remove \
libarchive-tools \ libarchive-tools \
python3-dev python3-dev
# Cleanup files # Cleanup files
RUN find /usr/local \ RUN find /usr/local \
\( -type d -a -name test -o -name tests -o -name '__pycache__' \) \ \( -type d -a -name test -o -name tests -o -name '__pycache__' \) \
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \ -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
-exec rm -rf '{}' + && \ -exec rm -rf '{}' + && \
rm -fr /root/.cache /tmp/* /var/{cache,log}/* /var/lib/apt/lists/* rm -fr /root/.cache /tmp/* /var/{cache,log}/* /var/lib/apt/lists/*
# Health check # Health check
HEALTHCHECK \ HEALTHCHECK \
CMD curl --fail http://127.0.0.1:1337/healthz || exit 1 CMD curl --fail http://127.0.0.1:1337/healthz || exit 1
# Build Final image # Build Final image
ARG BUILD_ARCH ARG BUILD_ARCH
ARG BUILD_DATE ARG BUILD_DATE
ARG BUILD_DESCRIPTION ARG BUILD_DESCRIPTION
ARG BUILD_NAME ARG BUILD_NAME
ARG BUILD_REF ARG BUILD_REF
ARG BUILD_REPOSITORY ARG BUILD_REPOSITORY
ARG BUILD_VERSION ARG BUILD_VERSION
# Labels # Labels
LABEL \ LABEL \
io.hass.name="${BUILD_NAME}" \ io.hass.name="${BUILD_NAME}" \
io.hass.description="${BUILD_DESCRIPTION}" \ io.hass.description="${BUILD_DESCRIPTION}" \
io.hass.arch="${BUILD_ARCH}" \ io.hass.arch="${BUILD_ARCH}" \
io.hass.type="addon" \ io.hass.type="addon" \
io.hass.version=${BUILD_VERSION} \ io.hass.version=${BUILD_VERSION} \
maintainer="Franck Nijhof <frenck@addons.community>" \ maintainer="Franck Nijhof <frenck@addons.community>" \
org.opencontainers.image.title="${BUILD_NAME}" \ org.opencontainers.image.title="${BUILD_NAME}" \
org.opencontainers.image.description="${BUILD_DESCRIPTION}" \ org.opencontainers.image.description="${BUILD_DESCRIPTION}" \
org.opencontainers.image.vendor="Home Assistant Community Add-ons" \ org.opencontainers.image.vendor="Home Assistant Community Add-ons" \
org.opencontainers.image.authors="Franck Nijhof <frenck@addons.community>" \ org.opencontainers.image.authors="Franck Nijhof <frenck@addons.community>" \
org.opencontainers.image.licenses="MIT" \ org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.url="https://addons.community" \ org.opencontainers.image.url="https://addons.community" \
org.opencontainers.image.source="https://github.com/${BUILD_REPOSITORY}" \ org.opencontainers.image.source="https://github.com/${BUILD_REPOSITORY}" \
org.opencontainers.image.documentation="https://github.com/${BUILD_REPOSITORY}/blob/main/README.md" \ org.opencontainers.image.documentation="https://github.com/${BUILD_REPOSITORY}/blob/main/README.md" \
org.opencontainers.image.created=${BUILD_DATE} \ org.opencontainers.image.created=${BUILD_DATE} \
org.opencontainers.image.revision=${BUILD_REF} \ org.opencontainers.image.revision=${BUILD_REF} \
org.opencontainers.image.version=${BUILD_VERSION} org.opencontainers.image.version=${BUILD_VERSION}

View file

@ -1,7 +1,7 @@
--- ---
build_from: build_from:
aarch64: ghcr.io/hassio-addons/debian-base:7.8.1 aarch64: ghcr.io/hassio-addons/debian-base:7.8.1
amd64: ghcr.io/hassio-addons/debian-base:7.8.1 amd64: ghcr.io/hassio-addons/debian-base:7.8.1
codenotary: codenotary:
base_image: codenotary@frenck.dev base_image: codenotary@frenck.dev
signer: codenotary@frenck.dev signer: codenotary@frenck.dev

View file

@ -1,50 +1,50 @@
--- ---
name: Studio Code Server name: Studio Code Server
version: dev version: dev
slug: vscode slug: vscode
description: Fully featured Visual Studio Code (VSCode) experience integrated in the Home Assistant frontend. description: Fully featured Visual Studio Code (VSCode) experience integrated in the Home Assistant frontend.
url: https://github.com/hassio-addons/addon-vscode url: https://github.com/hassio-addons/addon-vscode
codenotary: codenotary@frenck.dev codenotary: codenotary@frenck.dev
ingress: true ingress: true
ingress_port: 1337 ingress_port: 1337
ingress_stream: true ingress_stream: true
panel_icon: mdi:microsoft-visual-studio-code panel_icon: mdi:microsoft-visual-studio-code
startup: services startup: services
init: false init: false
arch: arch:
- aarch64 - aarch64
- amd64 - amd64
uart: true uart: true
hassio_api: true hassio_api: true
hassio_role: manager hassio_role: manager
homeassistant_api: true homeassistant_api: true
map: map:
- type: addons - type: addons
read_only: false read_only: false
- type: all_addon_configs - type: all_addon_configs
read_only: false read_only: false
- type: backup - type: backup
read_only: false read_only: false
- type: homeassistant_config - type: homeassistant_config
read_only: false read_only: false
path: /config path: /config
- type: media - type: media
read_only: false read_only: false
- type: share - type: share
read_only: false read_only: false
- type: ssl - type: ssl
read_only: false read_only: false
services: services:
- mysql:want - mysql:want
- mqtt:want - mqtt:want
options: options:
packages: [] packages: []
init_commands: [] init_commands: []
schema: schema:
log_level: list(trace|debug|info|warn|error)? log_level: list(trace|debug|info|warn|error)?
config_path: str? config_path: str?
packages: packages:
- str - str
init_commands: init_commands:
- str - str

View file

@ -1,2 +1,2 @@
esphome==2025.3.3 esphome==2025.3.3
yamllint==1.37.0 yamllint==1.37.0

View file

@ -1,11 +1,11 @@
_ _ _ _ _ _ _ _ _ _
| | | | /\ (_) | | | | | | | | /\ (_) | | | |
| |__| | ___ _ __ ___ ___ / \ ___ ___ _ ___| |_ __ _ _ __ | |_ | |__| | ___ _ __ ___ ___ / \ ___ ___ _ ___| |_ __ _ _ __ | |_
| __ |/ _ \| '_ ` _ \ / _ \ / /\ \ / __/ __| / __| __/ _` | '_ \| __| | __ |/ _ \| '_ ` _ \ / _ \ / /\ \ / __/ __| / __| __/ _` | '_ \| __|
| | | | (_) | | | | | | __/ / ____ \\__ \__ \ \__ \ || (_| | | | | |_ | | | | (_) | | | | | | __/ / ____ \\__ \__ \ \__ \ || (_| | | | | |_
|_| |_|\___/|_| |_| |_|\___| /_/ \_\___/___/_|___/\__\__,_|_| |_|\__| |_| |_|\___/|_| |_| |_|\___| /_/ \_\___/___/_|___/\__\__,_|_| |_|\__|
Our command line: Our command line:
$ ha help $ ha help

View file

@ -1 +1 @@
longrun longrun

View file

@ -1 +1 @@
oneshot oneshot

View file

@ -1 +1 @@
/etc/s6-overlay/s6-rc.d/init-code-server/run /etc/s6-overlay/s6-rc.d/init-code-server/run

View file

@ -1,28 +1,28 @@
#!/command/with-contenv bashio #!/command/with-contenv bashio
# shellcheck shell=bash # shellcheck shell=bash
# ============================================================================== # ==============================================================================
# Home Assistant Community Add-on: Studio Code Server # Home Assistant Community Add-on: Studio Code Server
# Pre-configures the Mosquitto clients, if the service is available # Pre-configures the Mosquitto clients, if the service is available
# ============================================================================== # ==============================================================================
declare host declare host
declare password declare password
declare port declare port
declare username declare username
if bashio::services.available "mqtt"; then if bashio::services.available "mqtt"; then
host=$(bashio::services "mqtt" "host") host=$(bashio::services "mqtt" "host")
password=$(bashio::services "mqtt" "password") password=$(bashio::services "mqtt" "password")
port=$(bashio::services "mqtt" "port") port=$(bashio::services "mqtt" "port")
username=$(bashio::services "mqtt" "username") username=$(bashio::services "mqtt" "username")
mkdir -p /root/.config mkdir -p /root/.config
{ {
echo "-h ${host}" echo "-h ${host}"
echo "--pw ${password}" echo "--pw ${password}"
echo "--port ${port}" echo "--port ${port}"
echo "--username ${username}" echo "--username ${username}"
} >/root/.config/mosquitto_sub } >/root/.config/mosquitto_sub
ln -s /root/.config/mosquitto_sub /root/.config/mosquitto_pub ln -s /root/.config/mosquitto_sub /root/.config/mosquitto_pub
ln -s /root/.config/mosquitto_sub /root/.config/mosquitto_rr ln -s /root/.config/mosquitto_sub /root/.config/mosquitto_rr
fi fi

View file

@ -1 +1 @@
oneshot oneshot

View file

@ -1 +1 @@
/etc/s6-overlay/s6-rc.d/init-mosquitto/run /etc/s6-overlay/s6-rc.d/init-mosquitto/run

View file

@ -1 +1 @@
oneshot oneshot

View file

@ -1 +1 @@
/etc/s6-overlay/s6-rc.d/init-mysql/run /etc/s6-overlay/s6-rc.d/init-mysql/run

View file

@ -1 +1 @@
oneshot oneshot

View file

@ -1 +1 @@
/etc/s6-overlay/s6-rc.d/init-user/run /etc/s6-overlay/s6-rc.d/init-user/run

View file

@ -1,103 +1,103 @@
# shellcheck disable=SC1090,SC2034,SC2086 # shellcheck disable=SC1090,SC2034,SC2086
# If you come from bash you might have to change your $PATH. # If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH # export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation. # Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random" # Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded. # it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="robbyrussell" ZSH_THEME="robbyrussell"
# Uncomment the following line to use case-sensitive completion. # Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true" # CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion. Case # Uncomment the following line to use hyphen-insensitive completion. Case
# sensitive completion must be off. _ and - will be interchangeable. # sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true" # HYPHEN_INSENSITIVE="true"
# Uncomment the following line to disable bi-weekly auto-update checks. # Uncomment the following line to disable bi-weekly auto-update checks.
DISABLE_AUTO_UPDATE="true" DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to change how often to auto-update (in days). # Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13 # export UPDATE_ZSH_DAYS=13
# Uncomment the following line to disable colors in ls. # Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true" # DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title. # Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true" # DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction. # Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true" # ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion. # Uncomment the following line to display red dots whilst waiting for completion.
COMPLETION_WAITING_DOTS="true" COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files # Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories # under VCS as dirty. This makes repository status check for large repositories
# much, much faster. # much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true" # DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time # Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output. # stamp shown in the history command output.
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" # The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# HIST_STAMPS="mm/dd/yyyy" # HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom? # Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder # ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse) # Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup. # Add wisely, as too many plugins slow down shell startup.
plugins=( plugins=(
extract extract
git git
nmap nmap
pip pip
python python
rsync rsync
zsh-autosuggestions zsh-autosuggestions
zsh-syntax-highlighting zsh-syntax-highlighting
) )
# shellcheck disable=SC1091 # shellcheck disable=SC1091
source $ZSH/oh-my-zsh.sh source $ZSH/oh-my-zsh.sh
# User configuration # User configuration
# export MANPATH="/usr/local/man:$MANPATH" # export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment # You may need to manually set your language environment
# export LANG=en_US.UTF-8 # export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions # Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then # if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim' # export EDITOR='vim'
# else # else
# export EDITOR='mvim' # export EDITOR='mvim'
# fi # fi
# Compilation flags # Compilation flags
# export ARCHFLAGS="-arch x86_64" # export ARCHFLAGS="-arch x86_64"
# ssh # ssh
# export SSH_KEY_PATH="~/.ssh/rsa_id" # export SSH_KEY_PATH="~/.ssh/rsa_id"
# Set personal aliases, overriding those provided by oh-my-zsh libs, # Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh # plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder. # users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`. # For a full list of active aliases, run `alias`.
# #
# Example aliases # Example aliases
# alias zshconfig="mate ~/.zshrc" # alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh" # alias ohmyzsh="mate ~/.oh-my-zsh"
alias reset-settings="cp /root/.code-server/settings.json /data/vscode/User/settings.json && echo 'Setting restored!'" alias reset-settings="cp /root/.code-server/settings.json /data/vscode/User/settings.json && echo 'Setting restored!'"
# Home Assistant CLI # Home Assistant CLI
source <(ha completion zsh) && compdef _ha ha source <(ha completion zsh) && compdef _ha ha
# Show motd on start # Show motd on start
cat /etc/motd cat /etc/motd

View file

@ -1,2 +1,3 @@
#!/bin/sh #!/bin/sh
exec code-server "${@}"
exec /usr/local/lib/code-server/bin/code-server "${@}"

View file

@ -1,99 +1,99 @@
{ {
"files.associations": { "files.associations": {
"*.dash": "yaml", "*.dash": "yaml",
"**/esphome/*.yaml": "esphome", "**/esphome/*.yaml": "esphome",
"**/esphome/**/*.yaml": "esphome", "**/esphome/**/*.yaml": "esphome",
"*.yaml": "home-assistant" "*.yaml": "home-assistant"
}, },
"files.watcherExclude": { "files.watcherExclude": {
".nfs**": true, ".nfs**": true,
".Trash-0/**": true, ".Trash-0/**": true,
"**/__pycache__/**": true, "**/__pycache__/**": true,
"**/._*": true, "**/._*": true,
"**/.cloud": true, "**/.cloud": true,
"**/.git/objects/**": true, "**/.git/objects/**": true,
"**/.git/subtree-cache/**": true, "**/.git/subtree-cache/**": true,
"**/.HA_VERSION": true, "**/.HA_VERSION": true,
"**/.storage": true, "**/.storage": true,
"**/*.db-shm": true, "**/*.db-shm": true,
"**/*.db-wal": true, "**/*.db-wal": true,
"**/*.db": true, "**/*.db": true,
"**/*.log": true, "**/*.log": true,
"**/deps/**": true, "**/deps/**": true,
"**/node_modules": true, "**/node_modules": true,
"**/OZW_Log.txt": true, "**/OZW_Log.txt": true,
"**/pyozw.sqlite": true "**/pyozw.sqlite": true
}, },
"search.exclude": { "search.exclude": {
".Trash-0/**": true, ".Trash-0/**": true,
"**/__pycache__/**": true, "**/__pycache__/**": true,
"**/._*": true, "**/._*": true,
"**/.cloud": true, "**/.cloud": true,
"**/.git/objects/**": true, "**/.git/objects/**": true,
"**/.git/subtree-cache/**": true, "**/.git/subtree-cache/**": true,
"**/.git": true, "**/.git": true,
"**/.HA_VERSION": true, "**/.HA_VERSION": true,
"**/.storage": true, "**/.storage": true,
"**/*.db-shm": true, "**/*.db-shm": true,
"**/*.db-wal": true, "**/*.db-wal": true,
"**/*.db": true, "**/*.db": true,
"**/*.log": true, "**/*.log": true,
"**/deps/**": true, "**/deps/**": true,
"**/node_modules": true, "**/node_modules": true,
"**/OZW_Log.txt": true, "**/OZW_Log.txt": true,
"**/pyozw.sqlite": true "**/pyozw.sqlite": true
}, },
"files.exclude": { "files.exclude": {
".Trash-0/**": true, ".Trash-0/**": true,
"**/__pycache__": true, "**/__pycache__": true,
"**/.cloud": true, "**/.cloud": true,
"**/.DS_Store": true, "**/.DS_Store": true,
"**/.git": true, "**/.git": true,
"**/.HA_VERSION": true, "**/.HA_VERSION": true,
"**/.storage": true, "**/.storage": true,
"**/*.db-shm": true, "**/*.db-shm": true,
"**/*.db-wal": true, "**/*.db-wal": true,
"**/*.db": true, "**/*.db": true,
"**/deps/**": true, "**/deps/**": true,
"**/node_modules": true "**/node_modules": true
}, },
"yaml.customTags": [ "yaml.customTags": [
"!env_var scalar", "!env_var scalar",
"!include_dir_list scalar", "!include_dir_list scalar",
"!include_dir_merge_list scalar", "!include_dir_merge_list scalar",
"!include_dir_merge_named scalar", "!include_dir_merge_named scalar",
"!include_dir_named scalar", "!include_dir_named scalar",
"!include scalar", "!include scalar",
"!secret scalar" "!secret scalar"
], ],
"[yaml]": { "[yaml]": {
"editor.autoIndent": "full", "editor.autoIndent": "full",
"editor.insertSpaces": true, "editor.insertSpaces": true,
"editor.tabSize": 2, "editor.tabSize": 2,
"editor.quickSuggestions": { "editor.quickSuggestions": {
"other": true, "other": true,
"comments": false, "comments": false,
"strings": true "strings": true
} }
}, },
"[home-assistant]": { "[home-assistant]": {
"editor.autoIndent": "full", "editor.autoIndent": "full",
"editor.insertSpaces": true, "editor.insertSpaces": true,
"editor.tabSize": 2, "editor.tabSize": 2,
"editor.defaultFormatter": "esbenp.prettier-vscode", "editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true, "editor.formatOnSave": true,
"editor.formatOnPaste": true "editor.formatOnPaste": true
}, },
"editor.renderWhitespace": "boundary", "editor.renderWhitespace": "boundary",
"esphome.validator": "local", "esphome.validator": "local",
"telemetry.enableTelemetry": false, "telemetry.enableTelemetry": false,
"terminal.integrated.copyOnSelection": true, "terminal.integrated.copyOnSelection": true,
"terminal.integrated.shell.linux": "/usr/bin/zsh", "terminal.integrated.shell.linux": "/usr/bin/zsh",
"update.mode": "none", "update.mode": "none",
"vsicons.dontShowNewVersionMessage": true, "vsicons.dontShowNewVersionMessage": true,
"vsicons.projectDetection.disableDetect": true, "vsicons.projectDetection.disableDetect": true,
"workbench.iconTheme": "vs-seti", "workbench.iconTheme": "vs-seti",
"yaml.format.enable": true, "yaml.format.enable": true,
"editor.defaultFormatter": "esbenp.prettier-vscode", "editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.rulers": [80, 88, 100, 120] "editor.rulers": [80, 88, 100, 120]
} }

View file

@ -1,9 +1,9 @@
emilast.LogFileHighlighter#3.4.0 emilast.LogFileHighlighter#3.4.0
esbenp.prettier-vscode#11.0.0 esbenp.prettier-vscode#11.0.0
ESPHome.esphome-vscode#2023.9.0 ESPHome.esphome-vscode#2023.9.0
keesschollaart.vscode-home-assistant#1.43.0 keesschollaart.vscode-home-assistant#1.43.0
lukas-tr.materialdesignicons-intellisense#4.1.0 lukas-tr.materialdesignicons-intellisense#4.1.0
netcorext.uuid-generator#0.0.5 netcorext.uuid-generator#0.0.5
oderwat.indent-rainbow#8.3.1 oderwat.indent-rainbow#8.3.1
redhat.vscode-yaml#1.11.10112022 redhat.vscode-yaml#1.11.10112022
usernamehw.errorlens#3.6.0 usernamehw.errorlens#3.6.0

View file

@ -1,6 +1,6 @@
{ {
"rootWorkspaces": [], "rootWorkspaces": [],
"folderURIWorkspaces": [], "folderURIWorkspaces": [],
"emptyWorkspaceInfos": [], "emptyWorkspaceInfos": [],
"emptyWorkspaces": [] "emptyWorkspaces": []
} }