koenhendriks/ha-eplucon

Unavailibility of values which shows in history graphs (unwanted)

Closed this issue · 3 comments

De API is each night not available for a minute or 15 which results in he history and graphs a moment where the value is 0. Is it possible to keep the value as i was last known. Or that the service can have a time out for a configured periode.

Picture from entity provided by the integration
image
image

Picture from my multiscrape which pauses for a minute during service window of API provider to keep last value. In this picture the last value is used instead of having a gap to 0. This way the range of the y as is more accurate as it does not need to show from 0 to 60.
image
image

If you received a value of 0that means that Eplucon has send a 0 from the API.

If there is an API error (invalid response or any HTTP status errors) the coordinator doesn't send an update (see the coordinator.py)

I'm having some trouble with the API myself, I have not received a valid response since the 2nd of September

image

It's not that the integration is working incorrectly, but that the API has been sending the same unchanged data for the last month.

I've send an email to Eplucon about this last monday (23th of September) but have yet to receive an answer.

If you received a value of 0that means that Eplucon has send a 0 from the API.

If there is an API error (invalid response or any HTTP status errors) the coordinator doesn't send an update (see the coordinator.py)

I'm having some trouble with the API myself, I have not received a valid response since the 2nd of September

image

It's not that the integration is working incorrectly, but that the API has been sending the same unchanged data for the last month.

I've send an email to Eplucon about this last monday (23th of September) but have yet to receive an answer.

I had some issues as well using the integration. But i have no issues with the API using the multiscrape integration except for a short momen to the 22nd.
image

Based on your information you think it will jus provide a value of 0 at around 03:45. I have seen this for all attributes as part of my muliscrape config as well. To prevent the 0 as an outlier and keep the good last known value i disable scraping it for 15 to 30 minutes.

I'm not really up for rewriting the sensor update method to ignore certain differences between a current and new value.

I'm open for a PR.