Build/Run method
zwavejs2mqtt version: 1.1.1
zwavejs version: 6.4.0
Z-Wave JS 2 MQTT will start the Z-Wave JS Server before the Driver object has emitted the driver ready event. This is causing bad information to be sent by Z-Wave JS Server. This is not supported.
Related bugs:
https://github.com/home-assistant/core/issues/46180#issuecomment-775125292
https://github.com/home-assistant/core/issues/46279
https://github.com/home-assistant-libs/zwave-js-server-python/issues/102
Bugs are closed because we now handle it from a Python side correctly if we receive bad data. Better would be if we didn't had the error to begin with.
CC @MartinHjelmare
Steps to reproduce the behavior:
The WS server should not come up until the driver is ready to serve data.
An alternative could be that we update Server.start to not start the server until the driver is ready. However that seems weird because start then doesn't automatically start.
I have a draft PR to update Server.start() to raise if the driver is not ready. That would help make it clear we're not ready to serve yet. Won't merge that until this issue has been resolved.
Let me fix this :)
Thanks!
@zwavejs/server 1.0.0-beta.7 will now raise if the driver is not ready when the server starts.