Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ FROM mcr.microsoft.com/devcontainers/python:1-3.13
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

RUN \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
mkdir -p /etc/apt/keyrings \
&& curl -fsSL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor -o /etc/apt/keyrings/yarn.gpg \
&& echo "deb [signed-by=/etc/apt/keyrings/yarn.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
bluez \
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ The default action of the image is to run `container`, which will
| `HASS_PASSWORD` | The password of the default user | `dev` |
| `LOVELACE_PLUGINS` | List of lovelac plugins to download from github | Empty |
| `LOVELACE_LOCAL_FILES` | List of filenames in `/config/www/workspace` to add as lovelace resources | Emtpy |
| `LOVELACE_REMOTE_FILES` | List of full URLs to remotely served lovelace resources to add to lovelace configuration | Empty |

### About Lovelace Plugins
The dowload and install of plugins is *very* basic. This is not HACS.
Expand All @@ -38,6 +39,8 @@ The dowload and install of plugins is *very* basic. This is not HACS.

`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`.

`LOVELACE_REMOTE_FILES` is for plugins served remotely (e.g. by a local dev server) and should be a space separated list of full URLs including host and port, e.g. `"http://localhost:5000/my-card.js http://localhost:5001/other-card.js"`. The URLs are used as-is in the lovelace resources configuration.

### Container Script

```bash
Expand Down
5 changes: 5 additions & 0 deletions container
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ function install_lovelace_plugins() {
plugins="${plugins} /local/workspace/${file}"
done

for file in $LOVELACE_REMOTE_FILES
do
plugins="${plugins} ${file}"
done

fetch_lovelace_plugins

cat > /config/.storage/lovelace_resources << EOF
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
homeassistant==2025.3.4
homeassistant==2026.2.3