TL;DR: Update Setup Instructions for “Miele Cloud account linking” to use “External URL” for linking to Miele. For Nabu Case enabled HA instances the Link Account should look like: https://$RANDOMID$.ui.nabu.casa/.
Some background: By default the website "Link to OAuth2 Authorize Callback – My Home Assistant… uses an URL that has an INTERNAL IP address (RFC 1918)). When using the RFC1918 address on my integration attempts, this causes 100% of the time a “website is unavailable… and the integration fails”. When using the external NABU case URL - it works just fine. First attempt
Conclusion:
I finally managed to get the Miele custom integration to work - but I think the documentation should be updated a bit more - it has caused me some frustration. While that is said, re-creating the good work done in this add-in would cause me more grey hair.
Hope this makes sense …
Have a great day and thank you for the great work!
it seems to be that I am too stupid to get this integration implemented. Firt of all there are two different Miele Integrations on the HACS. I tried Miele and it works. But all devices are only in english and not in german. So I tried the “Miele Integration” and configured the configuration.yaml. But nothing happens. No Web UI starts.
Was anyone able to either run an automation in HA to run Miele machines (supporting smartstart) or run the GitHub - IngmarStein/mielesolar: Trigger Miele SmartStart with SolarEdge inverters project on a pi? I am only getting errors trying to install it, no matter if I use go (go get doesnt work) or docker (says sth like “wrong platform”)…Would really appreciate it!
Trying to register on the Miele API site. I fill out “Home Assistant” as app and my email. When I press register nothing happens. I am not sure if the request is sent or if it’s something wrong with the site. I see here that it takes a day or two to get email sent out. But it would have been nice to have seen a comfirmation of the registration. Tried different browsers and devices but regardless same result.
Do you guys remember if this was the case for you as well or is something wrong?
I think they changed something in the past. I registered there for another project a while ago and I think it was an automated process then, but not sure.
Anyway. the API works. But I still cant get mielesolar to run - the program has been compiled now but I seem to have the syntax wrong, its not giving me any output or only errors…
I had the same issue as you, however I sent an email to [email protected]
with the same email that I’d registered with, and they sent me the required authentication information.
I got this working with my washing machine, however I’ve just added a drier which appears fine in the Miele app, however I can’t see how to get that imported into home assistant.
Heads up for those thinking to update GitHub - astrandb/miele: A modern integration for Miele devices in Home Assistant to version 0.1.5. It is currently not working for me at least. In notifications it says “cannot create/setup miele.sensors platform” (or close to this - cleared it already and logs are empty) and all existing miele sensors and switches are in unreachable status. Downgrading to 0.1.4. restored normal operation.
Reply to self - Changed the name of the file where it stores the token, and I can now reconfigure.
Now, next issue, I can’t logon to the API / OAuth site - bad username password. It is correct. I even tried deleting the miele app on my phone (with data) to force re-logon to verify password entered there.
Oke, It’s working. I reactivate the code and copied it again. Now it’s working strange… There is no difference in what I copied. Maby you need to copy it to a notepad first to remove some hidden characters.