ekutner / home-connect-hass

Alternative (and improved) Home Connect integration for Home Assistant
MIT License
511 stars 53 forks source link

Remaining program time always shows "not available" #249

Closed RetroButton closed 8 months ago

RetroButton commented 10 months ago

I´m using Home Connect Alt for quiet a time now. But it was never able to display the value "remaining program time". This value always shows "not available". Every other entity works fine.

Version of the custom_component

Newest / 0.6.5

Bosch

ekutner commented 10 months ago

Entities are created dynamically when their values are provided by the API. However, I've seen multiple cases in which values were provided for a while and then stopped. To verify, press the "Home Connect Debug Info" button while a program is running and upload the full log file.

knuser666 commented 10 months ago

Hi Got The same error

knuser666 commented 10 months ago

Siemens Opvaskemaskine - Remaining Program Time changed to September 22, 2023 at 20:11 16:14:45 - Now

Siemens Opvaskemaskine - Remaining Program Time changed to September 22, 2023 at 20:11 16:13:46 - 1 minute ago

Siemens Opvaskemaskine - Remaining Program Time changed to September 22, 2023 at 20:11 16:12:47 - 2 minutes ago

RetroButton commented 10 months ago

Installed the latest release these days, still not working. Debug log attached. Should contain the start and some minutes running the dishwasher.

(wrong Debug log deleteted)

ekutner commented 10 months ago

@RetroButton your log doesn't have most of the data it should. Please verify you configured debug logging as described in the README and if you did the please attach your config.

mario-pranjic commented 10 months ago

Hi, I noticed the same thing: very often I get "Program Progress" for washing machine unavailable, along with some other parameters. Can't conclude any pattern when that happens. home_conn_err

RetroButton commented 10 months ago

Same thing here. Will get back with a hopefully correct logifle when running the dishwasher next time.

mario-pranjic commented 10 months ago

Example of bright moments when things just work. Have no idea what triggers it (nor what brakes it) image

RetroButton commented 10 months ago

Crazy. Yesterday it displayed all data for my installation too. Waiting for the next dishwashing....

RetroButton commented 10 months ago

Back again, with the newest logfile. Has happend again, no remaining time. home-assistant_home_connect_alt_2023-09-27T17-51-51.630Z.log

ekutner commented 10 months ago

@RetroButton The program started at 19:21:45 and the log shows there were progress reports and updated to the remaining program time every minute until the end of the log at 10% progress and 17640 seconds remaining program time.

RetroButton commented 10 months ago

And here is what is displayed inside HA...

2023-09-27 21_43_38-Übersicht – Home Assistant und 2 weitere Seiten - Persönlich – Microsoft​ Edge
ekutner commented 10 months ago

are you saying that these are the only entities you see? what do you see if you go to the states page under developer tools and filter by your appliance HAID (search the README if you don;t know how to find it).

RetroButton commented 10 months ago

Actually i have a programm running. These are the entities i see in the dev options. (screenshot attached)

2023-10-02 12_59_58-Entwicklerwerkzeuge – Home Assistant und 2 weitere Seiten - Persönlich – Microso
ekutner commented 10 months ago

Please install version 0.6.8 Then add log_mode: 7 to the home_connect_alt section of your configuration.yaml file. Then restart, run a program again and upload the full log file.

jensrossbach commented 9 months ago

I have the same problem for my Bosch dishwasher since a couple of days. Before it worked fine, but now, remaining program time as well as the selected program are shown as unavailable.

RetroButton commented 9 months ago

I´m not 100% sure, but it seems to work for one time after restarting Home Assistant. Started our dishwasher today, and it magically works (after updating HA to the current release).

2023-10-04 22_35_23-Übersicht – Home Assistant und 1 weitere Seite - Persönlich – Microsoft​ Edge
ekutner commented 9 months ago

Configure the logging as instructed and upload the log when it happens again.

RetroButton commented 9 months ago

Today it has happend again. Strange enough, the last 2 runs were working, and the remaining time was displayed. Auswahl_004 home-assistant_home_connect_alt_2023-10-15T14-04-46.396Z.log

ekutner commented 9 months ago

@RetroButton This doesn't seem to use the latest version as I don't see some debug messages I expected to see. From the log I can't say why this issue is happening. The log shows the "RemainingProgramTime" event being received until the log ends with 7620 seconds remaining. So at least according to the log it should have worked...

RetroButton commented 9 months ago

I absolutely have the latest version. HACS does not show me a newer version than 0.6.8. This is the version i run actually.

ekutner commented 9 months ago

I absolutely have the latest version. HACS does not show me a newer version than 0.6.8. This is the version i run actually.

You're right, I missed it with all the clutter in the log. Please add log_mode: 7 to the home_connect_alt section in configuration.yaml then restart and wait for the issue to happen again. When it does happen press the "Home Connect Debug" button (created by the integration in the HA UI). And upload the log again.

reentier commented 9 months ago

Hello, i do have the same problem with the dishwasher and the oven. I figured out that the entitys are available when the devices are running during the start of the add-on. If i start the devices after starting the add-on/HA a simple reload of the add-on helps to get the entitys back.

Now i only have to figure out how to automaticly restart the add on after the start of one of the devices.

ekutner commented 9 months ago

This is very helpful and helps me confirm and issue I suspected already and wanted to confirm with the logs. I'll have a fix soon.

ashwin2101 commented 9 months ago

Hello, i do have the same problem with the dishwasher and the oven. I figured out that the entitys are available when the devices are running during the start of the add-on. If i start the devices after starting the add-on/HA a simple reload of the add-on helps to get the entitys back.

Now i only have to figure out how to automaticly restart the add on after the start of one of the devices.

Thank you that solved also my problem :)

ekutner commented 9 months ago

Please try version 0.7.0-b1 and let me know if it fixes the issue. Note that it is a beta release with some other changes and may have issues.

reentier commented 9 months ago

What is expected behaviour in this version? After installation all the requested entities are unavailable. But at the moment all the devices are in standby. Should the entities become available if one of the devices are started?

regards

ekutner commented 9 months ago

What is expected behaviour in this version? After installation all the requested entities are unavailable. But at the moment all the devices are in standby. Should the entities become available if one of the devices are started?

It's expected that the entities become available when they are provided by the API. For the remaining time entity that should be while a program is active.

reentier commented 9 months ago

Hi,

i can confirm that the entities are getting available when the dishwasher is started. There was no time to test the behaviour of the oven, but the dishwasher is fine now.

Thanks for the adjustment.

reentier commented 9 months ago

Hi again,

The issue is still existing for the remaining time of the oven.

image

I can see the progress, but not the remaining time.

reentier commented 9 months ago

Hi again,

The issue is still existing for the remaining time of the oven.

image

I can see the progress, but not the remaining time.

The Problem is that the Program Timer appears later then the rest of the entities. This entity is not available during pre-heating. If i reload the add-on after starting the timer on the device the entity becomes visible. I think it will be helpful if the add-on reloads the api after the progress jumps from 100% to 1 %.

regards

ekutner commented 9 months ago

@reentier Please try the latest build (b4).

reentier commented 8 months ago

I can confirm that it is working with this version.

ekutner commented 8 months ago

Great, thanks for the update.