slashback100 / presence_simulation

Home Assistant Presence Simulation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ignore lights with "unavailable" state

hgregorian opened this issue · comments

Hi! I'm enjoying this integration and would like to suggest a minor tweak. It seems that the integration considers all historical state changes, including unavailable. Would it be possible to simply ignore/skip over entities which have an unavailable state?

image

Hello.
The unavailable are indeed gather in the historic, but they won't be processed. They will be ignored and you may see something like this State in unavailable, do nothing or this State in neither on nor off (is unavailable), do nothing in your log.
I may though improve the process to avoid displaying them in the next event metadata

Sorry to be a bother, but 3.3 was already released. The commit related to this change indicates 3.4 in manifest.json, but this has not been tagged/released. I'm sure it was an oversight!

Done : https://github.com/slashback100/presence_simulation/releases/tag/v3.3