{ "name": "ESPHome NUT UPS Development", "image": "ghcr.io/esphome/esphome:latest", "features": { "ghcr.io/devcontainers/features/git:1": {}, "ghcr.io/devcontainers/features/github-cli:1": {}, "ghcr.io/devcontainers/features/python:1": { "version": "3.11", "installTools": true }, "ghcr.io/anthropics/devcontainer-features/claude-code:1.0.5": {} }, "mounts": [ "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=cached", "source=/dev,target=/dev,type=bind" ], "privileged": true, "runArgs": [ "--device-cgroup-rule=c 188:* rmw", "--device-cgroup-rule=c 189:* rmw", "--device=/dev/bus/usb:/dev/bus/usb:rwm" ], "workspaceFolder": "/workspace", "postCreateCommand": "bash .devcontainer/setup.sh", "customizations": { "vscode": { "extensions": [ "ms-python.python", "ms-python.flake8", "ms-python.black-formatter", "redhat.vscode-yaml", "ms-vscode.cpptools", "ms-vscode.cmake-tools", "esphome.esphome-vscode", "platformio.platformio-ide", "ms-vscode.hexeditor" ], "settings": { "python.defaultInterpreterPath": "/usr/local/bin/python", "python.formatting.provider": "black", "python.linting.enabled": true, "python.linting.flake8Enabled": true, "files.associations": { "*.yaml": "yaml", "*.yml": "yaml" }, "terminal.integrated.defaultProfile.linux": "bash", "editor.formatOnSave": true, "editor.tabSize": 2, "[yaml]": { "editor.tabSize": 2 }, "[python]": { "editor.tabSize": 4 }, "[cpp]": { "editor.tabSize": 2 } } } }, "forwardPorts": [ 6052, 6123, 80, 443, 8080, 3232 ], "containerEnv": { "ESPHOME_DASHBOARD_USE_PING": "true", "PLATFORMIO_CORE_DIR": "/workspace/.platformio" }, "init": true, "remoteUser": "root", "capAdd": [ "SYS_RAWIO", "SYS_ADMIN" ] }