astrandb / miele

A modern integration for Miele devices in Home Assistant
MIT License
207 stars 31 forks source link

THE INTEGRATION DOES NOT APPEAR #508

Open picardi21 opened 4 months ago

picardi21 commented 4 months ago

The problem

Ciao io ho eseguito correttamente l'installazione registrandomi anche sul sito da te segnalatO, ma poi non mi esce l'integrazione in "dispositivi e servizi", ho provato anche a cancellare la cache. Suggerimenti per risolvere il problema?

Version of miele integration having the issue?

v2024.5.0

Version of Home Assistant Core having the issue?

2024.7.3

Anything in the logs that might be useful for us?

No response

Additional information

No response

mundschenk-at commented 3 months ago

Suggerimenti per risolvere il problema?

You might start by writing in English.

picardi21 commented 3 months ago

Hi, I carried out the installation correctly by registering on the site you mentioned, but then the integration in "devices and services" doesn't work, I also tried to clear the cache. Suggestions to fix the problem?

mundschenk-at commented 3 months ago

What exactly do you mean by "doesn't work"? Did you restart HA after the installation?

picardi21 commented 3 months ago

Once the entire installation procedure is done, I am redirected to the Miele website, I enter the username and password and then restart HA. The problem is that in the "devices and services" section no Miele integration appears.

mundschenk-at commented 3 months ago

Please describe step by step what you have been doing, starting from the beginning. Are you using HACS?

picardi21 commented 3 months ago

I install the integration from HACS, go to "devices and services" and search for Miele. After clicking on it I am redirected to the Miele Developer site, I enter username and password and again I am redirected to HA. I restart HA. I tried locally and remotely.

mundschenk-at commented 3 months ago

Why did you restart HA after logging in to the Miele website? I thought you were talking about the HACS installation when I suggested the restart (adding an integration is not "installation" as I use the term).

picardi21 commented 3 months ago

I attach the video of the procedure https://github.com/user-attachments/assets/9cea9832-3774-40fa-9c22-84a65880c22c

picardi21 commented 3 months ago

https://github.com/user-attachments/assets/eefcfbd7-6233-4300-988f-f301b49941f1

picardi21 commented 2 months ago
Screenshot 2024-09-16 alle 22 24 42

Hi, do you have a solution to suggest? I can't see your integration

Hubi-Swiss commented 1 month ago

Same here, it shows only the update entity

astrandb commented 1 month ago

The "Miele update" is generated by HACS - not by this integration.

If your device belongs to semi-professional or professional series there will probably be problems due to incomplete and unreliable support in the Miele API. Make sure that your device is consumer grade. Beta version 2024.9.0b1 of the integration will log a message if an affected model is discovered in your account.

There is probably something corrupt in the installation of the integration in your instance. It is not trivial to find the root cause so I suggest that you remove all traces of the integration and start over.

  1. Restart Home Assistant
  2. Goto HACS and remove the Miele integration. - Open the three-dot-menu at the Miele entry and select Remove.
  3. Remove application credentials. Goto Settings->Devices&services, open the three dot menu in upper right corner and goto Application credentials.
  4. Restart Home Assistant
  5. Goto HACS - Enter Miele in the search bar, select Miele integration and click download.
  6. Restart Home Assistant
  7. If there is a reasonably modern Miele device on your LAN it should be discovered by HA within a few minutes if your LAN allows broadcasts. If the device is not auto-discovered you can add the integration manually by following instructions below.
  8. Goto Settings->Devices&services, Click Add Integration and select Miele
  9. Follow the instructions to setup the integration.
  10. You can see the expected flow here https://github.com/astrandb/miele/discussions/366 . Please report which step that fails.
Hubi-Swiss commented 1 month ago

Dear Ake

Thank you for your quick response. I am a rookie on HA. I will be back at home next week and try it out. I do not know which Series my devices are, but they all appear in the Mile App.

KF 2981 VI H7840BPX DGC7845X G7595 CVA7845 ESW7010 D

Thank you for your support

Best regards

Hubertus Willeke

On 28 Sep 2024, at 12:12, Åke Strandberg @.***> wrote:

The "Miele update" is generated by HACS - not by this integration.

If your device belongs to semi-professional or professional series there will probably be problems due to incomplete and unreliable support in the Miele API. Make sure that your device is consumer grade. Beta version 2024.9.0b1 of the integration will log a message if an affected model is discovered in your account.

There is probably something corrupt in the installation of the integration in your instance. It is not trivial to find the root cause so I suggest that you remove all traces of the integration and start over.

Restart Home Assistant Goto HACS and remove the Miele integration. - Open the three-dot-menu at the Miele entry and select Remove. Restart Home Assistant Goto HACS - Enter Miele in the search bar, select Miele integration and click download. Restart Home Assistant If there is a reasonably modern Miele device on your LAN it should be discovered by HA within a few minutes if your LAN allows broadcasts. If the device is not auto-discovered you can add the integration manually by following instructions below. Goto Settings->Devices&services, Click Add Integration and select Miele Follow the instructions to setup the integration. You can see the expected flow here #366 https://github.com/astrandb/miele/discussions/366 . Please report which step that fails. — Reply to this email directly, view it on GitHub https://github.com/astrandb/miele/issues/508#issuecomment-2380591580, or unsubscribe https://github.com/notifications/unsubscribe-auth/BF3ZZHRX5TJN5DOHZ562SY3ZYZ6IPAVCNFSM6AAAAABLQIGG7GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBQGU4TCNJYGA. You are receiving this because you commented.

Hubi-Swiss commented 1 month ago

The "Miele update" is generated by HACS - not by this integration.

If your device belongs to semi-professional or professional series there will probably be problems due to incomplete and unreliable support in the Miele API. Make sure that your device is consumer grade. Beta version 2024.9.0b1 of the integration will log a message if an affected model is discovered in your account.

There is probably something corrupt in the installation of the integration in your instance. It is not trivial to find the root cause so I suggest that you remove all traces of the integration and start over.

  1. Restart Home Assistant
  2. Goto HACS and remove the Miele integration. - Open the three-dot-menu at the Miele entry and select Remove.
  3. Remove application credentials. Goto Settings->Devices&services, open the three dot menu in upper right corner and goto Application credentials.
  4. Restart Home Assistant
  5. Goto HACS - Enter Miele in the search bar, select Miele integration and click download.
  6. Restart Home Assistant
  7. If there is a reasonably modern Miele device on your LAN it should be discovered by HA within a few minutes if your LAN allows broadcasts. If the device is not auto-discovered you can add the integration manually by following instructions below.
  8. Goto Settings->Devices&services, Click Add Integration and select Miele
  9. Follow the instructions to setup the integration.
  10. You can see the expected flow here How to set up the Miele integration #366 . Please report which step that fails.

Hi Ake failing in step 3. I am not able to delete the credentials. Bildschirmfoto 2024-10-01 um 15 24 24

astrandb commented 1 month ago

The integration has gone into a dead-lock state for a couple of users. I dont understand why/how this happened and is a pretty advanced process to recover. There are more than 8000 users not having this problem, though.

Please browse to [your_HA]/config/integrations/integration/miele and make a screen dump.

Would it be possible to let me access your HA remotely? Please contact me on ake@strandberg.eu and I can explain more.

Hubi-Swiss commented 1 month ago

Hi Ake thanks for you quick response. Attached the requested screenshot. I will in addition contact you via mail to give you remote access to my HA.

Best

Hubertus Bildschirmfoto 2024-10-01 um 16 30 38

ciato commented 1 month ago

I have the exact same issue as @picardi21. Integration does not show up but I cannot delete the credentials. I also get the notification that credentials in use may not be deleted.
It is different than @Hubi-Swiss though. I do not have a Miele integration visible in the configured integrations list. However, the update entity and pre-release entity are available.

Hubi-Swiss commented 1 month ago

Hi Ake

thank you so much you made my day. It works. Again thank you for your effort.

Screenshot 2024-10-03 at 07 39 09
ciato commented 1 month ago

@Hubi-Swiss Could you please describe the steps you took to solve your issue?

astrandb commented 1 month ago

There is probably a stale config entry in HA. It needs manual intervention to remove. If the integration was properly installed the delete procedure would clean out the config entry but for unclear reasons it is left behind.

Use a terminal to access the linux prompt (install Terminal&SSH add-on).

ciato commented 1 month ago

Thank you for your assistance. I tried the steps you described but the entry is recreated in the core.config_entries file after restarting HA. Also tried to remove the integration from HACS and then remove the entries in the core.config_entries file but it is still recreated after restart of HA. The credentials can not be deleted as well. Any idea where or why it is recreated?

astrandb commented 1 month ago

Try to remove all traces of the integration. rm -r /config/custom_components/miele Restart HA and download the Miele integration with HACS and restart HA again.

ciato commented 1 month ago

Thank you for your quick response. I get the following response: No such file or directory. Seems like the directory is already completely removed after uninstalling the integration from HACS.

astrandb commented 1 month ago

If the directory is empty/non-existing everything should be good. I dont really understand why/how the config entry is recreated if there is no miele code left in the system. You could try to rename miele to miele2 in the config entry - note that there are a couple of occurrances. When HA finds a miele entry in the config entry the setup code will enter wrong path. I cannot really find out why this entry is left behind since I cannot reproduce the situation in my systems.

ciato commented 1 month ago

I tried editing the file in a different way and it worked. The file did not save in my first attempts. Now it did and I was able to reconfigure the integration. Sorry for the inconvenience. Thank you for your support and the effort you put in making this integration!