Skip to content

Spike: Add dockerised dev environment - #4753

Draft
chickenonaraft88 wants to merge 1 commit into
springfall2008:mainfrom
chickenonaraft88:worktree-ha-testing
Draft

Spike: Add dockerised dev environment#4753
chickenonaraft88 wants to merge 1 commit into
springfall2008:mainfrom
chickenonaraft88:worktree-ha-testing

Conversation

@chickenonaraft88

Copy link
Copy Markdown
Contributor

@springfall2008 I've done a quick spike and was wondering if you think something like this would be useful at all.

Essentially it will bring up a few docker containers to allow you to quickly test a change you're making in a real home assistant, you just run dev/up.py and it'll get everything running, onboard home assistant and open two browser tabs to home assistant and predbat. I timed startup to 23 seconds after you have built and downloaded the docker containers, it also support hot loading ish so editing files is picked up by predbat, but obviously it will restart.

I'm imagining you could bring up a container with entities for each of the example yamls, so you can test solis, givenergy, etc. separately. But right now it's just super basic.

…ummy HA

docker-compose.dev.yml brings up a throwaway Home Assistant instance seeded
with dummy inverter entities, auto-completes onboarding and mints a
long-lived token via HA's private onboarding/websocket API, then starts
Predbat against it - no manual setup needed. Run with dev/up.ps1 (or
dev/up.sh), which also opens both web UIs once ready.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant