MQTT plugin gets its settings lost on restart

Discussions about Z-Way software and Z-Wave technology in general
piet66
Posts: 266
Joined: 04 Feb 2017 17:00

Re: MQTT plugin gets its settings lost on restart

Post by piet66 »

Uploaded now to store. I hope it's useful.

Name: MxMQTT Subscriber
It's a beta. That means, it's working for me, but I have not the time to test everything.

Note: It's necessary to download and run the latest version of MxBaseModule first.
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 v3.2.3 from 2022-04-06 04:56:23 +0300
User avatar
PoltoS
Posts: 7562
Joined: 26 Jan 2011 19:36

Re: MQTT plugin gets its settings lost on restart

Post by PoltoS »

We are working on our pretty generic module that will fit most of customers. May be we take some ideas from you :)

You are always welcome to contribute!

Sorry for being so late with the native implementation, but better now than never ;)

We did so much in improving Z-Way and adding new features this spring that we are even stuck without new releases as we have so many things to tests first...
piet66
Posts: 266
Joined: 04 Feb 2017 17:00

Re: MQTT plugin gets its settings lost on restart

Post by piet66 »

@PoltoS
When we receive and send data via MQTT there might be also non-numerical values like booleans, strings and dates/times.
For these we should have appropriate device widgets for handling. Can you please think about providing such widgets?
We would need:
- a select box widget for strings
- a date and/or time picker
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 v3.2.3 from 2022-04-06 04:56:23 +0300
User avatar
PoltoS
Posts: 7562
Joined: 26 Jan 2011 19:36

Re: MQTT plugin gets its settings lost on restart

Post by PoltoS »

There is device type *text* for strings (can be also used for date), *sensorBinary* for boolean. Those are read-only. To make them selectable one need to add new device types and UI for them.

This part is open-source, you can contrinute ;) Not sure if we can fit it in our tought schedule.... Our TODO consists of more than 200 feature requests or bug reports
piet66
Posts: 266
Joined: 04 Feb 2017 17:00

Re: MQTT plugin gets its settings lost on restart

Post by piet66 »

There is device type *text* for strings (can be also used for date), *sensorBinary* for boolean. Those are read-only.
For only read-only output you don't need a special widget. sensorMultilevel can display any data format.
To make them selectable, one need to add new device types and UI for them. This part is open-source, you can contribute
Can you provide an understandable recipe?
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 v3.2.3 from 2022-04-06 04:56:23 +0300
User avatar
PoltoS
Posts: 7562
Joined: 26 Jan 2011 19:36

Re: MQTT plugin gets its settings lost on restart

Post by PoltoS »

You need to look in:
https://github.com/Z-Wave-Me/zwave-smar ... -widget.js
https://github.com/Z-Wave-Me/zwave-smar ... ts/widgets

But please keep in mind that we are reworking the UI and hence this work will have to be done again by you. So may be wait for august when we deploy the new one for public
sofakng
Posts: 37
Joined: 09 Jun 2020 06:09

Re: MQTT plugin gets its settings lost on restart

Post by sofakng »

I'm also looking forward to built-in MQTT support!
Post Reply