FutureTense / keymaster

Home Assistant integration for managing Z-Wave enabled locks
MIT License
231 stars 43 forks source link

ISSUE: After adding a lock to keymaster, I can no longer see data in the Home Assistant history page #245

Closed BenBergman closed 2 years ago

BenBergman commented 2 years ago

Describe the bug After configuring a lock with keymaster, clicking the history page in Firefox on my desktop shows the date range at the top with a spinning loading icon where the data visualizations should be. It does not load. The mobile app behaves similarly.

Environment (please complete the following information):

Logs No errors in the Supervisor -> System tab after a fresh HA restart and reloading the history page

Screenshots image

Additional context I have deleted the keymaster integration for my lock and the issue persists (I still have the integration installed through HACS). I'm guessing the huge amount of entities for the lock is somehow overwhelming something, and they are persisting even though the entities have been removed.

firstof9 commented 2 years ago

History loads fine here image

This isn't going to be an integration issue, how many code slots did you configure?

BenBergman commented 2 years ago

I figure it is probably an issue with setup and not an integration bug, but it started when I added this integration so thought I'd check here for help.

I left it at the default 10 slots at first, then dropped it down to 5. If setting it too high can cause these issues, a lower default might be good?

firstof9 commented 2 years ago

Code slots don't cause issues, they just add additional entities. I could see this being an issue if you had added say 50+ code slots, but not 5-10.

BenBergman commented 2 years ago

Closing this issue. I reinstalled HA on an external hard drive instead of an SD card and I'm not having the history page issues any more (at least no lock ups - it still loads very slowly due to all the entities in keymaster).

raman325 commented 2 years ago

The reason that this comes up is become of the number of entities we add which is pretty huge - logbook can't keep up on underpowered systems. Good motivation to reduce it if/where possible

BenBergman commented 2 years ago

Yeah, the number of entities is pretty nuts. It would be nice if there was a way in HA to flag entities and automations from add-ons so they can be hidden from normal view. It seems like I have 100x more entities and automations from keymaster than I do from everything else. Maybe the entity categorization introduced in 2021.11 could be useful here: https://www.home-assistant.io/blog/2021/11/03/release-202111/#entity-categorization

I'll open a new ticket for this.