home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.56k stars 30.74k forks source link

litterrobot integration fails to correctly report entity state #98617

Closed julian-poidevin closed 1 year ago

julian-poidevin commented 1 year ago

The problem

Using the litterrobot integration I setup some automation triggered by the entity state :

platform: state
entity_id:
  - vacuum.crew_dragon_4_litter_box
from: cleaning
to: docked

I realized in some cases the litter is cleaning but the state is not changing in home-assistant. Other entities of the litter are correctly updated (status_code, waste_drawer, litter_level ...).

On the following capture, you can see around 11:04 that the Status code changes from "Cat Sensor Timing" to "Ready", the waste drawer value changed. The litter indeed cycled because I heard it and the logs appear in my whisker app :

image image
HA History (click to see) Whisker App log

How come the integration does not detect the cycle ? Is this related to the integration code or is it an API problem on Whisker side (I doubt that since the smartphone application is reporting correctly ?).

What version of Home Assistant Core has the issue?

core-2023.8.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container (unofficial : lscr.io/linuxserver/homeassistant:latest)

Integration causing the issue

Litter-Robot

Link to integration documentation on our website

https://www.home-assistant.io/integrations/litterrobot

Diagnostics information

home-assistant_litterrobot_2023-08-18T09-27-17.173Z.log

Regarding the diagnostics information, the log were started and I manually triggered a cycle from the litterrobot iPhone application around 11:24, it got interrupted shortly after and finished at 11:26.

image WhiskerLog
HA History (click to see) Whisker App log

Example YAML snippet

platform: state
entity_id:
  - vacuum.crew_dragon_4_litter_box
from: cleaning
to: docked

Anything in the logs that might be useful for us?

No response

Additional information

Usually, restarting the litterrobot fixes the issue. LR Version iPhone App Version ESP Fw PIC Fw TOF Fw
LR4 EU Version 1.6.0 1.1.66 10500.3072.2.85 5.0.11
home-assistant[bot] commented 1 year ago

Hey there @natekspencer, @tkdrob, mind taking a look at this issue as it has been labeled with an integration (litterrobot) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `litterrobot` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign litterrobot` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


litterrobot documentation litterrobot source (message by IssueLinks)

natekspencer commented 1 year ago

This should be resolved once https://github.com/home-assistant/core/pull/98414 is pushed out.

julian-poidevin commented 1 year ago

All right, thanks @natekspencer ! Should I close the issue ?

natekspencer commented 1 year ago

Yes, thanks!