This project uses VS Code DevContainers for development.
- Docker installed and running
- VS Code with the Dev Containers extension
- Open this repository in VS Code
- When prompted, click "Reopen in Container" (or run
Dev Containers: Reopen in Containerfrom the command palette) - Wait for the container to build (first time takes a few minutes to install HA)
- Home Assistant starts automatically on port 8123
- Open http://localhost:8123 to access the HA instance
- Code changes: Edit files in
custom_components/companion_media_player/— they're symlinked into HA's config - Restart HA: Run
pkill -f hass; .devcontainer/post-start.shin the terminal - View logs:
tail -f /tmp/hass.log - Debug logs: Already enabled for
custom_components.companion_media_playervia/config/configuration.yaml