Not sure where to report issues, I have added some previously on the github repo and haven't gotten any response.
https://github.com/Z-Wave-Me/zwave-smarthome/issues/286
Steps to reproduce:
1. Add MQTT so it shows up at
http://pi:8083/smarthome/#/apps/local
2. Configure app and save.
It shows now on active tab too
3. restart z-way server in terminal
sudo systemctl restart z-way-server.service
The active app is now gone and MQTT reporting have stopped and I need to readd it again
MQTT plugin gets its settings lost on restart
Re: MQTT plugin gets its settings lost on restart
We are making a native MQTT support. Will be ready soon. So may be not worth to bother the author of the old app
Re: MQTT plugin gets its settings lost on restart
That's great news! Is there any beta version I can try out?
Re: MQTT plugin gets its settings lost on restart
There is one, but with JS API only. Very soon (within two weeks) we will have the new easy configurable MQTT app made on top of this JS API.
https://storage.z-wave.me/z-way-server/ ... _armhf.deb
https://storage.z-wave.me/z-way-server/ ... _armhf.deb
Re: MQTT plugin gets its settings lost on restart
Thanks for quick response, What can I do with the API and how do I use it?
I'm still quite the noob with js-development, but I have been coding .net for almost 15 years, but this project is so big so it's hard for me to grasp.
Is there any commit for the MQTT-api so I easier trace how to use it?
I'm still quite the noob with js-development, but I have been coding .net for almost 15 years, but this project is so big so it's hard for me to grasp.
Is there any commit for the MQTT-api so I easier trace how to use it?
Re: MQTT plugin gets its settings lost on restart
This is as simple as:
// constructor
var m = new mqtt(server, port);
// handlers
m.onconnect = function() {};
m.onmessage = function(topic, msg) {};
m.onsubscribe = function(topic) {};
m.onclose = function() {};
// methods
m.tlsset(ca_file, ca_path, cert_file, key_file);
m.connect();
m.publish(topic, message);
m.subscribe(topic);
m.unsubscribe(topic);
m.disconnect();
inside handlers (onXXXX use `this` instead of m)
// constructor
var m = new mqtt(server, port);
// handlers
m.onconnect = function() {};
m.onmessage = function(topic, msg) {};
m.onsubscribe = function(topic) {};
m.onclose = function() {};
// methods
m.tlsset(ca_file, ca_path, cert_file, key_file);
m.connect();
m.publish(topic, message);
m.subscribe(topic);
m.unsubscribe(topic);
m.disconnect();
inside handlers (onXXXX use `this` instead of m)
Re: MQTT plugin gets its settings lost on restart
Thanks for the follow up, but I feel like before I even figure out how to put these pieces together you have already built the working MQTT solution
Thanks for the manual link, I'll try to get some time to get antiquated more with the system and try to write my own module
Thanks for the manual link, I'll try to get some time to get antiquated more with the system and try to write my own module
Re: MQTT plugin gets its settings lost on restart
I like the fact that you now provide a MQTT api.
Unfortunately it comes too late for me. I am almost finished with my own MQTT module.
Unfortunately it comes too late for me. I am almost finished with my own MQTT module.
Raspberry Pi 3 Model B Rev 1.2
Raspbian GNU/Linux 10 (buster, 32bit)
RaZberry by Z-Wave.Me ZW0700 7.20.00 07.38/1766938484 1025/257
Z-Way version v4.1.2 from 2023-10-18 03:34:26 +0300
Raspbian GNU/Linux 10 (buster, 32bit)
RaZberry by Z-Wave.Me ZW0700 7.20.00 07.38/1766938484 1025/257
Z-Way version v4.1.2 from 2023-10-18 03:34:26 +0300
Re: MQTT plugin gets its settings lost on restart
Share the code and hopefully some parts can be incorporated