This repository has been archived by the owner on Dec 28, 2022. It is now read-only.
Submitting commands before startup completes will remove devices list #74
Labels
bug
Something isn't working
I experience a weird behaviour where my zigbee devices list is always empty after a restart and my device db simply gets all devices attached but never finds "old" devices.
I've debugged the session and I think the following is happening:
Device.loadFromDatabaseIfNecessary
is called beforeController.start()
and internallyEntity.injectDatabase(this.database);
is called which will initialize the Entity with an empty object.Unfortunately herdsmen does not throw an exception or something (I think it should either delay commands until the startup finishes - or reject them), but a "user friendly" (or at least understandable) measure would be to prevent commands (drop or fail them) until herdsman is started.
Environment:
The text was updated successfully, but these errors were encountered: