albaintor / homeassistant_electrolux_status

Get the status from your Electrolux Care devices
MIT License
81 stars 20 forks source link

The timetoend state is never 0 #31

Closed Palmdale95 closed 5 months ago

Palmdale95 commented 6 months ago

I use an AEG washing machine with the integration provided. This gives me the remaining time in minutes for each wash cycle via the corresponding sensor. However, this sensor is not set to 0 after the end of the wash cycle. The lowest status is 1, but the AEG correctly recognizes that the wash cycle has ended. This was also the case in the old integration. So is there an error in the transmission to the end of the wash or am I making a mistake? tmetoend-washer

albaintor commented 6 months ago

Strange.... I have -1 on my side but never stuck to 1. I checked and I apply ceiling during conversion so that 1,2 minutes become 1, and 0.8 should become 0

Palmdale95 commented 6 months ago

This is definitely strange. After HA restart it goes to 0. I’ll watch the behavior during the next laundry session next week ;)

albaintor commented 6 months ago

I made a minor change to round to 0 if this is less than 0.9 (including negative values)

Palmdale95 commented 6 months ago

I'll check it out these days and will come back with feedback. Thanks in advance.

kfjellerup commented 6 months ago

I'm also experiencing this. It seems like that when the cleaning/drying finishes the integration looses connection to the API. This connection isn't working again until a restart of HA.

I'm also just in general experiencing that the integration stops updating.

Note: Please note that I don't know if it actually loses connection. That is just what it looks like looking at the entities :)

Palmdale95 commented 6 months ago

mmh. now I tried another laundry session and I have no sensor information at all anymore. At least time to end is 0 now :-)

albaintor commented 6 months ago

Hi, do you see any log message when this happens ? I don't have this problem on my side (when laundry ends) Can you enable loglevel debug and report back ? In config/configuration.yaml Then restart HA

logger:
  default: warning
  logs:
    custom_components.electrolux_status: debug
Palmdale95 commented 6 months ago

I did not see any logs. It looks like the integration was offline. I made the upgrade to Core 2024.2.2 and then restarted the integration once more. After that my node red integration, which gives me a note when the washer is finished responded to Washer finished. So I guess for now that something was hung up. I'll will check this once more on the next session which supposingly will be on Monday (relying on my wife ;-)) and report back. It is really strange anyway.

micro521 commented 6 months ago

Hi, For me it looks like the integration is connected as the appliance status changes but the time to end sensor stays at 1 minute. Screenshot_20240218_123932_Home Assistant

Palmdale95 commented 6 months ago

I started the washing maschine oncemore, but the integration did not come up. After a manual refresh it is showing information and state changes. But I guess when it goes to "sleep" again, it will fail once more. For now time is countig. We will see if it hits at least the 0.

micro521 commented 6 months ago

Yesterday another test showed that the integration is working as the appliance state was changing according to the reality but the time to end stopped to decrease at 2 minutes and stayed there.

image

Palmdale95 commented 6 months ago

Screenshot 2024-02-19 143802 Finished another wahing and time toend stopped again at 1. It looks like there is no real end. After a HA restart or an integration refreh timetoend always changes to 0 if finished.

Palmdale95 commented 6 months ago

The integration is not working propperly. My wife started another session today and the integration did not do anything.

I extraxted the debug information home-assistant_electrolux_status.log

Palmdale95 commented 6 months ago

Still same issue: Screenshot 2024-02-29 135817

albaintor commented 6 months ago

I have released a new version which fixes the token renewal, maybe it will fix this problem but I am not sure. To be confirmed

micro521 commented 6 months ago

I have released a new version which fixes the token renewal, maybe it will fix this problem but I am not sure. To be confirmed

I tested it but unfortunately the time to end stops counting at 1 min.

Palmdale95 commented 5 months ago

In my case it is still stopping at 1 as well. The updates did not cover the issue :-(

albaintor commented 5 months ago

The end is not transmitted so will have to trigger manual update when this happens

albaintor commented 5 months ago

It is fixed (I think) in the last release. Please confirm

Palmdale95 commented 5 months ago

You were lucky. It was just a maschine running ;-) and it looks like it finally worked out. Perfect!

slingshot74 commented 5 months ago

Looks like indeed it's working. Great! Thanks!

albaintor commented 5 months ago

Great !