Miele@home, miele@mobile component

So, I installed the old integration. Then I saw there was a new integration (this one), uninstalled the old, installed the new (trough HACS). But now I do not get the popup there is a new integration found. When I dive into the settings there click on add integrations, there is no Miele integration in the search.

Any way to force HA to detect the integration? (Detection worked with the old integration)

Try to clear the browser cache.

1 Like

Well, that worked :slightly_smiling_face:

Thank you!

Thanks. Do you see the correct program name in HA when the dishwasher is running, or just a number? (Because while our two devices use almost the same programs, the IDs are completely different - e.g. for my machine, ECO has the ID 28, not 3. I’ll have to prepare a PR to add the new IDs.)

Regarding the service, this time @astrandb might be able to help.

The service Miele: Execute generic action does not work. You can try Miele: Execute raw action instead with parameters as below:

serialno: <dishwasher_serial_no>
extra:
  programId: 6

I will dive into the generic version and try to make it work as soon as I get the time.

Hello, removed the previous Miele integration and installed yours today. Followed the directions with all the reboots. configuration xml looked the same format as the old integration so left it the same. Went through to signin process with Miele site and the new integration shows 2 devices and 30 entities. Issue is that all the entities are either disabled or unavailable. Not sure where to look for clues as to why it is not populating the entities. Any help appreciated.

Nevermind, turned out to be a unifi issue.

1 Like

Yes, the names showing ok so no issues there.

@astrandb I tried running the raw service, but that gives a 404 error?

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/connection.py:141
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 07:36:51 (1 occurrences)
Last logged: 07:36:51

[547395447968] Error handling message: Service raw: 404 Not Found

If you are now running 0.0.16 or 0.0.17, yeah, we added the new program IDs :sweat_smile:

1 Like

“404 Not found” usually indicates that the serial number is wrong.
There are two API endpoints dealing with programId and the documentation is somewhat sparse which of them that should be used.
Try the service set_program, that is available since v0.0.17, it picks up the serial number from the device so you don’t have to bother yourself.

@astrandb Wouldn’t it be better to add entities based on the capabilities of a specific device, instead of using the hopelessly outdated API description?

For instance, my washing machine has a lot more capabilities than those listed on the API (eg currentEnergyConsumption, currentWaterConsumption). These are available using the older kloknibor integration.

Well, there is no single truth of which capabilities that are available. Sensors of energy and water consumption are not implementet yet because I have not had access to devices with those capabilities.
I am happy to add missing entities if I can get some documentation. Can you please create an issue on github and upload a diagnostic download from your devices so I can have a look.

I am a bit confused about the situation of the Miele custom.

People talk about old and new integration. I use the old and it works fine. And looking at the repo the developer is still active responding to bug reports etc.

Why is there a new? And what good does it do that the old does not do?

The differences are summarized here Miele@home, miele@mobile component - Development - Home Assistant Community (home-assistant.io)
If you are happy with the old one there is no reason to change. If you want support for the latest features in Homa Assistant Core you can test the new integration.
The reason I started from scratch was that I found it easiser than modifying and migrating the old one.

I’ve created a new enhancement request based on the auto-generated OpenAPI Specification from the Swagger UI.

@gigatexel: If you’ve got an actually supported device, could you please post the ecoFeedback key from the Swagger API (or HA diagnostic information) to the GitHub issue so that @astrandb has something to work against? (Possibly although with data from the official Miele app to verify some assumptions regarding forecasts.)

A bit of a late response, but we were having a flu pandemic in the family… But I get an error when I use the set program service:

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/connection.py:141
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 20:45:05 (2 occurrences)
Last logged: 20:45:12

[547503625840] Error handling message: Service set_program: 400 Bad Request
[547503625840] Error handling message: template value does not contain a dynamic template @ data['sequence'][0]['target']['device_id'][0]. Got None

I use this the Set program service, select Dishwasher and use the following parameters (I am using version 0.19)

service: miele.set_program
data:
  programId: 6
target:
  device_id: 6488f286878bf7a43284991ad57369ff

There is obviously something wrong here.
Please create an issue in the repo on Github.
Please also add a diagnostic download from the device page for your dishwasher

2022-05-08 12:17:18 ERROR (MainThread) [custom_components.miele.miele_at_home] Failed to retrieve Miele devices: (‘Connection aborted.’, ConnectionResetError(104, ‘Connection reset by peer’))
2022-05-08 12:17:18 ERROR (MainThread) [custom_components.miele] Did not receive Miele devices

I get a lot of these errors on startup, any tips on this? The integration seem to work fine i guess, i use it to control the lights and fans of my cooking hood, and that works. But still i get these errors.

the same here.

Logger: custom_components.miele.miele_at_home
Source: custom_components/miele/miele_at_home.py:44
Integration: Miele@home (documentation, issues)
First occurred: 9. Mai 2022, 23:19:29 (611 occurrences)
Last logged: 08:58:09

  • Failed to retrieve Miele devices: HTTPSConnectionPool(host=‘api.mcs3.miele.com’, port=443): Max retries exceeded with url: /v1/devices?language=de (Caused by NewConnectionError(’<urllib3.connection.HTTPSConnection object at 0x7fbf84d3d0a0>: Failed to establish a new connection: [Errno 111] Connection refused’))
  • Failed to retrieve Miele devices: HTTPSConnectionPool(host=‘api.mcs3.miele.com’, port=443): Max retries exceeded with url: /v1/devices?language=de (Caused by NewConnectionError(’<urllib3.connection.HTTPSConnection object at 0x7fbf84b895e0>: Failed to establish a new connection: [Errno 111] Connection refused’))
  • Failed to retrieve Miele devices: (‘Connection aborted.’, RemoteDisconnected(‘Remote end closed connection without response’))
  • Failed to retrieve Miele devices: (‘Connection aborted.’, ConnectionResetError(104, ‘Connection reset by peer’))
  • Failed to retrieve Miele devices: HTTPSConnectionPool(host=‘api.mcs3.miele.com’, port=443): Max retries exceeded with url: /v1/devices?language=de (Caused by NewConnectionError(’<urllib3.connection.HTTPSConnection object at 0x7fbf8b4027c0>: Failed to establish a new connection: [Errno 111] Connection refused’))

Hej Åke.

I finally tried your integration and it seem to work well, the setup works better, and all my light and fan automations for the ventilation hood worked out of the box (after changing som entity_ids), thanks a lot for your work.

But sometimes i cannot turn on the light, the logs show the following

“2022-05-11 21:33:37 ERROR (MainThread) [custom_components.miele.light] Turn_on: 400 - Bad Request”

I got a lot of error lately with the “old” integration as well, do you know if there has been some instability, connection trotteling or similar from miele lately?