slashback100 / presence_simulation

Home Assistant Presence Simulation
654 stars 26 forks source link

Ignore lights with "unavailable" state #107

Closed hgregorian closed 8 months ago

hgregorian commented 8 months ago

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

slashback100 commented 8 months ago

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

slashback100 commented 8 months ago

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

hgregorian commented 8 months ago

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

slashback100 commented 8 months ago

Yep sorry... error on my part. There you go https://github.com/slashback100/presence_simulation/releases/tag/v3.4