ekutner / home-connect-hass

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

Missing Operation State from History #432

Closed michalk-k closed 1 week ago

michalk-k commented 2 weeks ago

hello I found that Operation State is missing from the history graphs.

I would like however to clarify some findings.

The value of Operation State found in Developer Tools has form of: BSH.Common.EnumType.OperationState.Inactive I understand it's raw value coming from Bosch API.

On various places in HA it's shown just as Inactive. Is it because of the provided translation or HA shorten those values?

Then I found, that those values are completely missing from history (see the last raw in history on screenshot below):

image

In fact, I saw one, the most recent value when was active at that time. But not previous ones.

The question is: is this something the integration component is responsible for? Or it might be a bug in the recorder/history?

ekutner commented 2 weeks ago

TBH I have no idea what HA decides to store and what not. The long term history (older than 10 days) is only for numeric values but I couldn't find any mention in the documentation for other values. In my own HA I do see previous values of this entity: image

michalk-k commented 2 weeks ago

What version of HA do you use? I have 2024.10.4 It seems like history shows the state only if it's currently active. Otherwise, it doesn't show it.

The interesting thing is, that the history-explorer-card doesn't show it at all

image

michalk-k commented 1 week ago

I've looked into sqlite tables... and seems this sensor is not registered at all. this could be the answer on why it shows only just active value

image

image

Do you have idea why this sensor isn't registered? I found no error in HA logs.

michalk-k commented 1 week ago

I have to apologize. I had recorder exclusion set in the way ignoring the status. I have it this way for many years. Today I don't even know why. This is the reason I completely forgot about it