MQTT Client reboot

Discussions about Z-Way software and Z-Wave technology in general
sintesteiner
Posts: 3
Joined: 20 Sep 2021 00:36

MQTT Client reboot

Post by sintesteiner »

Hi!

I use the new MQTT Client. But have a problem that I have to manually press pause and start on the app itself after reboot.
Should it be like this? is there any option and restate the app after reboot?
I have 4 different installations of zway on raspberry.
It's the same problem at all.
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: MQTT Client reboot

Post by PoltoS »

We will chekc it. Should not be like that
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: MQTT Client reboot

Post by PoltoS »

Do you see something related in the log?
sintesteiner
Posts: 3
Joined: 20 Sep 2021 00:36

Re: MQTT Client reboot

Post by sintesteiner »

So, check the log

Did find somthing wrong

[2021-09-27 10:32:03.291] [core] Loading module MQTTClient from modules/MQTTClient
[2021-09-27 10:32:03.294] [core] Executing script: /*** MQTT Client Z-Way HA module **************************************************** ...
[2021-09-27 10:32:03.298] [core] Instantiating module 5 from class MQTTClient
[2021-09-27 10:32:03.299] [core] --- Starting module MQTT Client
[2021-09-27 10:32:03.313] [core] --- MQTTClient connect error to 192.168.150.2 Error: Network is unreachable

Look like it's try to early to connect to server, and its not retrying.
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: MQTT Client reboot

Post by PoltoS »

Looks like it took long to get the IP. We check it and fix in next release.
sintesteiner
Posts: 3
Joined: 20 Sep 2021 00:36

Re: MQTT Client reboot

Post by sintesteiner »

Nice! There is static ip on that box, maybe not rasberry is done booting?
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: MQTT Client reboot

Post by PoltoS »

Z-Way might have started before network. Unlikely, but possible. We will improve it soon. You can follow this code to see the fix and port it to your box while waiting to the release.

https://github.com/Z-Wave-Me/home-autom ... t/index.js
ZW4L
Posts: 3
Joined: 07 Aug 2023 10:56

Re: MQTT Client reboot

Post by ZW4L »

Hi!

I use the new MQTT Client. But have a problem that I have to manually press pause and start on the app itself after reboot.

Is there a way to pause/start the mqtt app ( Robin Eggenkamp 1.4.1) automatically after reboot?

My current firmware version is: v4.1.1 on a Raspberry Pi (bullseye)
ZW4L
Posts: 3
Joined: 07 Aug 2023 10:56

Re: MQTT Client reboot

Post by ZW4L »

Hi!

I use the new MQTT Client. But have a problem that I have to manually press pause and start on the app itself after reboot.

Is there a way to Pause/Start the mqtt app automatically ( Robin Eggenkamp 1.4.1)?

My current firmware version is: v4.1.1 on a raspberry (bullseye).
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: MQTT Client reboot

Post by PoltoS »

Do you use the app by Eggenkamp or by Z-Wave.Me? It is better to check the log, find the issue and fix it rather that pausing.

And yes, you can use JavaScript to pause and resume via a JS script
Post Reply