{"id":19637415,"url":"https://github.com/thomasloven/hass-custom-devcontainer","last_synced_at":"2025-04-28T09:31:44.089Z","repository":{"id":37891779,"uuid":"340323720","full_name":"thomasloven/hass-custom-devcontainer","owner":"thomasloven","description":"A devcontainer for developing and testing custom Home Assistant stuff","archived":false,"fork":false,"pushed_at":"2025-03-24T22:28:31.000Z","size":19,"stargazers_count":29,"open_issues_count":4,"forks_count":15,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T08:04:55.536Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thomasloven.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-19T09:43:48.000Z","updated_at":"2025-03-24T22:28:35.000Z","dependencies_parsed_at":"2024-11-11T12:37:18.654Z","dependency_job_id":"6637fc5f-8e65-41d5-9f59-26ed25125285","html_url":"https://github.com/thomasloven/hass-custom-devcontainer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasloven%2Fhass-custom-devcontainer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasloven%2Fhass-custom-devcontainer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasloven%2Fhass-custom-devcontainer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasloven%2Fhass-custom-devcontainer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thomasloven","download_url":"https://codeload.github.com/thomasloven/hass-custom-devcontainer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251284897,"owners_count":21564691,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T12:34:27.921Z","updated_at":"2025-04-28T09:31:42.169Z","avatar_url":"https://github.com/thomasloven.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A docker container for developing and testing custom Home Assistant plugins and integrations\n\n## Usage\n\n```\ndocker run --rm -it \\\n    -p 5000:8123 \\\n    -v $(pwd):/workspaces/test \\\n    -v $(pwd):/config/www/workspace \\\n    -e LOVELACE_LOCAL_FILES=\"myplugin.js\"\n    -e LOVELACE_PLUGINS=\"thomasloven/lovelace-card-mod thomasloven/lovelace-auto-entities custom-cards/button-card\" \\\n    thomasloven/hass-custom-devcontainer\n```\n\nThe default action of the image is to run `container`, which will\n- Make sure there's a basic Home Assistant configuration in `/config`\n- Add a default admin user to Home Assistant\n- Skip the onboarding procedure\n- Download and install [HACS](https://hacs.xyz)\n- Download lovelace plugins from github\n- Add plugins to lovelace configuration\n- Start Home Assistant with `-v`\n\n\n### Environment Variables\n\n| Name | Description | Default |\n|---|---|---|\n| `HASS_USERNAME` | The username of the default user | `dev` |\n| `HASS_PASSWORD` | The password of the default user | `dev` |\n| `LOVELACE_PLUGINS` | List of lovelac plugins to download from github | Empty |\n| `LOVELACE_LOCAL_FILES` | List of filenames in `/config/www/workspace` to add as lovelace resources | Emtpy |\n\n### About Lovelace Plugins\nThe dowload and install of plugins is *very* basic. This is not HACS.\n\n`LOVELACE_PLUGINS` should be a space separated list of author/repo pairs, e.g. `\"thomasloven/lovelace-card-mod  kalkih/mini-media-player\"`\n\n`LOVELACE_LOCAL_FILES` is for the currently worked on plugins and should be a list of file names which are mounted in `/config/www/workspace`.\n\n### Container Script\n\n```bash\ncontainer\n```\nSet up and launch Home Assistant\n\n```bash\ncontainer setup\n```\nPerform download and setup parts but do not launch Home Assistant\n\n```bash\ncontainer launch\n```\nLaunch Home Assistant with `hass -c /config -v`\n\n## devcontainer.json example\n\n```json\n{\n  \"image\": \"thomasloven/hass-custom-devcontainer\",\n  \"postCreateCommand\": \"container setup \u0026\u0026 npm add\",\n  \"forwardPorts\": [8123],\n  \"mounts\": [\n    \"source=${localWorkspaceFolder},target=/config/www/workspace,type=bind\",\n    \"source=${localWorkspaceFolder}/test,target=/config/test,type=bind\",\n    \"source=${localWorkspaceFolder}/test/configuration.yaml,target=/config/configuration.yaml,type=bind\"\n  ],\n  \"runArgs\": [\"--env-file\", \"${localWorkspaceFolder}/test/.env\"]\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasloven%2Fhass-custom-devcontainer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomasloven%2Fhass-custom-devcontainer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasloven%2Fhass-custom-devcontainer/lists"}