You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not using Home Assistant. Or: a developer has told me to come here.
I have checked the troubleshooting section and my problem is not described there.
I have read the changelog and my problem is not mentioned there.
Deploy method
Docker
Z-Wave JS UI version
9.3.1
ZwaveJS version
12.2.3
Describe the bug
Having previously disabled the MQTT Gateway, as I'm using the websocket with Home Assistant. I created scheduled jobs to get some Z-Wave specific tasks out of HA. Over the next few days I realized the scheduled jobs were not running, but the code would correctly perform its task when ran manually via Driver Function.
After watching the logs and reading the source, I realized the scheduled jobs were not being created at runtime due to me having disabled MQTT. Enabling the MQTT Gateway brought the scheduled jobs to life.
I did not see anything in the docs about this dependency, however I don't think this is intentional.
To Reproduce
Create a scheduled job, such as one that runs every minute and logs a message. Observe logs to see that scheduled job functions. Then toggle on the Disable MQTT Gateway switch. Observe logs to see that no scheduled jobs function.
Expected behavior
Scheduled jobs should function irrespective of the enabled/disabled state of MQTT.
Checklist
Deploy method
Docker
Z-Wave JS UI version
9.3.1
ZwaveJS version
12.2.3
Describe the bug
Having previously disabled the MQTT Gateway, as I'm using the websocket with Home Assistant. I created scheduled jobs to get some Z-Wave specific tasks out of HA. Over the next few days I realized the scheduled jobs were not running, but the code would correctly perform its task when ran manually via Driver Function.
After watching the logs and reading the source, I realized the scheduled jobs were not being created at runtime due to me having disabled MQTT. Enabling the MQTT Gateway brought the scheduled jobs to life.
I did not see anything in the docs about this dependency, however I don't think this is intentional.
To Reproduce
Create a scheduled job, such as one that runs every minute and logs a message. Observe logs to see that scheduled job functions. Then toggle on the
Disable MQTT Gateway
switch. Observe logs to see that no scheduled jobs function.Expected behavior
Scheduled jobs should function irrespective of the enabled/disabled state of MQTT.
Additional context
Relocating the event binding and having the event handler for _onDriverStatus check
this.mqttEnabled
like _onNodeInited does is one solution.Assuming I haven't missed some actual MQTT dependency somewhere.
The text was updated successfully, but these errors were encountered: