Skip to content

HA addon#16

Merged
akappner merged 11 commits intoakappner:masterfrom
hannesdelbeke:master
Feb 20, 2026
Merged

HA addon#16
akappner merged 11 commits intoakappner:masterfrom
hannesdelbeke:master

Conversation

@hannesdelbeke
Copy link
Contributor

@hannesdelbeke hannesdelbeke commented Feb 13, 2026

issue

current repo can't be added to HA from the UI

image

fix

added addon support and followed HA best practices.
now can install from the HA addon store, which builds the docker image on your HA instance

  • go to settings / addons
  • add the repo URL https://github.com/hannesdelbeke/MieleRESTServer
  • search for the miele addon.
image image

note that this does need testing by someone else, since i haven't modded my washing machine yet.

@@ -0,0 +1,3 @@
name: MieleRESTServer Home Assistant Add-ons
url: 'https://github.com/hannesdelbeke/MieleRESTServer'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
url: 'https://github.com/hannesdelbeke/MieleRESTServer'
url: 'https://github.com/akappner/MieleRESTServer'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

once i change this you wont be able to test it in HA until this is merged i think

version: "1.1.1"
slug: miele_rest_server
description: Run MieleRESTServer as a Home Assistant add-on.
url: https://github.com/hannesdelbeke/MieleRESTServer
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
url: https://github.com/hannesdelbeke/MieleRESTServer
url: https://github.com/akappner/MieleRESTServer

exit 1; \
fi \
&& pip3 install --break-system-packages --no-cache-dir \
"https://github.com/hannesdelbeke/MieleRESTServer/archive/refs/heads/master.zip"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"https://github.com/hannesdelbeke/MieleRESTServer/archive/refs/heads/master.zip"
"https://github.com/akappner/MieleRESTServer/archive/refs/heads/master.zip"

@akappner
Copy link
Owner

@pzbitskiy
Were you able to test this PR -- does the auto-installation through Docker work on HA? I don't have this config and haven't had a chance to try and replicate it.

@davenewham
Copy link

@pzbitskiy Were you able to test this PR -- does the auto-installation through Docker work on HA? I don't have this config and haven't had a chance to try and replicate it.

Hi @akappner.

I gave this integration a try as I've been looking to move away from my own Dockerfile setup.
image

It works to host the application which is nice. I had initially expected auto discovery, but that seems to not be the case. You still have to set it up as a REST sensor, but after I had done that I was able to see the machine attributes in HA without any issues

@@ -0,0 +1,21 @@
ARG BUILD_FROM=ghcr.io/home-assistant/amd64-base:latest

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This base image argument looks like it would only work for amd64, even though the config.yaml has aarch64

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you have a look at the updates? should be addressed now.
I tested it still builds in HA

hannesdelbeke and others added 3 commits February 19, 2026 09:14
Co-authored-by: pzbitskiy <pavel.zbitskiy@gmail.com>
…rchitecture builds

Fix Dockerfile: Remove default value from BUILD_FROM to support multi-architecture builds
Fix config.yaml: Add complete file with build_from section for multi-architecture support
@hannesdelbeke
Copy link
Contributor Author

  1. pushed some updates to adres dave's comment

This base image argument looks like it would only work for amd64, even though the config.yaml has aarch64

  1. i should indeed update all links from hannesdelbeke to akappner, but as soon as i do it wont be installable in HA untill it's merged. So I'll wait for Dave or someone else to confirm latest changes work in HA and then accept all the suggested edits.

@akappner
Copy link
Owner

Hi,
this looks good, builds on my system as well. Merging this now. Testing reports appreciated. We should also include this in the CI testing.

@akappner akappner merged commit 2a66d87 into akappner:master Feb 20, 2026
1 check passed
@hannesdelbeke
Copy link
Contributor Author

I v not yet replaced the urls. Did you? If not it will build from my fork i stead of your repo

@akappner
Copy link
Owner

Thanks for the reminder, I updated it.

Has anybody tested this on ARM64? There's still some amd64 references in the HA-specific Dockerfile (in the BUILD_FROM variable) but it might just be a default that gets overwritten.

@pzbitskiy
Copy link
Contributor

pzbitskiy commented Feb 20, 2026

Were you able to test this PR -- does the auto-installation through Docker work on HA?

Yes, I was able to install it (Apps -> Install App -> ... -> Repositories) from https://github.com/hannesdelbeke/MieleRESTServer as repository, on x86 server.

Docker container started

eb19bc3ad639   8003cb44/amd64-addon-miele_rest_server:1.1.1               "/init /app/run.sh"   2 seconds ago   Up 1 second   0.0.0.0:5001->5001/tcp, [::]:5001->5001/tcp                                                                                        addon_8003cb44_miele_rest_server

but exited seconds after with the following in the log (I have not tried to configure the stuff yet so I guess it is OK):

No endpoints configured in add-on options; falling back to legacy file mode.
No valid configuration found.
Set add-on options.endpoints, or create /config/MieleRESTServer.config
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

Good stuff @hannesdelbeke !

@akappner
Copy link
Owner

Yeah, that behavior makes sense and isn't related to Docker/HACS. Without a config file, the server can't do anything useful so it exits. Give it a config file (or just copy the default) and it should work

@pzbitskiy pzbitskiy mentioned this pull request Feb 20, 2026
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.

4 participants