I don't understand how Zwave-JS-UI and MQTT work in the real life !

For Z-Wave related questions in Domoticz

Moderator: leecollings

Post Reply
Michel13
Posts: 69
Joined: Thursday 07 January 2016 19:31
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: France
Contact:

I don't understand how Zwave-JS-UI and MQTT work in the real life !

Post by Michel13 »

Hello everybody,

For a few days now, I have successfully migrated my RPI 3B from OZW to MQTT and Zwave-JS-UI on Docker. I updated Domoticz to 2024.1.
Everything works well with the few elements of my installation. The Zwave devices that existed before are still there and working.

However, a long time ago, other Zwave devices were connected to Domoticz. These devices have not been removed from the stick, so their nodes are still present in the Zwave-JS-UI control panel list (but not in Domoticz).
They are door sensors of the following make and model: Vision Security ZD2102 and Aeotec ZW089-C.

These devices are still with me and I am trying to revive them.
The first ZD2102 is in the ZWave-JS autodiscovery list, not the ZW089-C.

Although I manage to wake up the first one (status with green face), I cannot get the information on the manufacturer, the product and its code in the control panel.
My first question is: how to import the json of this unit into ZWave-JS and how to get it in Domoticz?

The second (Aeotec) is a Gen5 and I was unable to wake it up. I saw that there were some tips regarding these series.
My second question is: what to do to revive them and if possible, how to include them in ZWave-JS and Domoticz?

Mostly, I don't understand how to remove or add devices to ZWave-JS. With OZW, it was easy to change the settings to do this. I don't know how to do the same thing with ZWave-JS. For example, I can select a node but there is nothing to remove it from the list. Also, I don't know how new devices can be added to it.
My third question is: is there some sort of wiki explaining how to simply use ZWave-JS?

Finally, I defined an MQTT Auto Discovery client gateway with LAN interface in Domoticz. This one comes with a "Setting" button and I expected to find the same list as in ZWave-JS, but no. The panel is desperately empty. An "Edit" button is there but it is of no use.
My fourth question is: what is this Setting for if there is nothing to configure?

Thank you for your patience in reading me.
marmachine
Posts: 133
Joined: Saturday 26 March 2016 10:19
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.4834
Location: Netherlands
Contact:

Re: I don't understand how Zwave-JS-UI and MQTT work in the real life !

Post by marmachine »

I'm around the same point... having my devices in MQTT, but not Domoticz.
Last weekend i have searched and found documentation in the wiki that said MQTT autodiscovery was not yet added in v 2023.1 which is my current version since i haven't updated (yet). Anyway... i think it was the same documentation that also explained how to configure MQTT autodiscovery...

Automatische ontdekking voorvoegsel: homeassistant ← (for example domoticz or homeassistant)

Link: https://www.domoticz.com/wiki/MQTT#Add_ ... Gateway.22

Maybe this could be your issue?

Did you disable the OpenZwave hardware? (i have been told you can't use this at the same time when Z-wave JS UI controller is also running!)
By the way, i also have some Aeotec stuff: Z‐Stick Gen5 USB Controller and MultiSensor 6...
These appear as "okay" in my ZUI controlpanel... at least no problem so far. If this isn't successfull, push their button again to wake-em-up.
Do you see them publishing on MQTT (using MQTT explorer)?
Obviously the Z-Stick doesn't publish, but the MultiSensors do in my case!
So first step is to make sure that they are "interviewed" by the controller and all publish to MQTT (mosquitto).
When found in MQTT then autodiscovery should be the next step...

This is as far i can help you at this moment.
akamming
Posts: 368
Joined: Friday 17 August 2018 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: I don't understand how Zwave-JS-UI and MQTT work in the real life !

Post by akamming »

Michel13 wrote: Tuesday 09 January 2024 13:39 My first question is: how to import the json of this unit into ZWave-JS and how to get it in Domoticz?
Did you try to re-interview (in control panel: Click on the node, then on advanced and then on re-interview. If it is a battery powered device you might need to wake it up...)?

In general if you have these kind questions: zwave-js-ui has it's own support forum https://github.com/zwave-js/zwave-js-ui/discussions. Best to check over there..
User avatar
gizmocuz
Posts: 2541
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: I don't understand how Zwave-JS-UI and MQTT work in the real life !

Post by gizmocuz »

If you are not getting the devices in domoticz:

At the moment we are at 2024.1 (or the beta)
When you go to hardware setup , can you add the 'MQTT Auto Discovery hardware'?

Did you follow this guide:

https://www.domoticz.com/wiki/Zwave-JS-UI
Quality outlives Quantity!
Michel13
Posts: 69
Joined: Thursday 07 January 2016 19:31
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: France
Contact:

Re: I don't understand how Zwave-JS-UI and MQTT work in the real life !

Post by Michel13 »

Thank you both of you for your repplies.
marmachine wrote: Tuesday 09 January 2024 14:23 Did you disable the OpenZwave hardware? (i have been told you can't use this at the same time when Z-wave JS UI controller is also running!)
By the way, i also have some Aeotec stuff: Z‐Stick Gen5 USB Controller and MultiSensor 6...
These appear as "okay" in my ZUI controlpanel... at least no problem so far. If this isn't successfull, push their button again to wake-em-up.
Do you see them publishing on MQTT (using MQTT explorer)?
Obviously the Z-Stick doesn't publish, but the MultiSensors do in my case!
So first step is to make sure that they are "interviewed" by the controller and all publish to MQTT (mosquitto).
When found in MQTT then autodiscovery should be the next step...

This is as far i can help you at this moment.
Of course, the old OZW have been disabled and removed.

I have tested with MQTT explorer and the ZD2102 is well detected when I activate the sensor. But the autodiscovery does not make his job as the relevant information from the json are not updated in the control panel. When I press the GET button of the Node configuration, I have a message saying that "Node does not support CC112 or it has not been implemented yet". I have the same message with the SET button. What is to be understood ?
Edit : For the other unit (AEOTEC ZW089), it is also detected in the MQTT explorer, but not in ZWave-JS-UI.
gizmocuz wrote: Tuesday 09 January 2024 14:41 At the moment we are at 2024.1 (or the beta)
When you go to hardware setup , can you add the 'MQTT Auto Discovery hardware'?

Did you follow this guide:

https://www.domoticz.com/wiki/Zwave-JS-UI
Yes for the wiki. I have even pointed out the need for the auto start of Mosquitto :)
In the hardware list, I have only "MQTT Auto discovery client gateway with LAN interface", "MQTT client gateway with LAN interface" and "MQTT mapper with LAN interface". No "MQTT Auto Discovery hardware". Is it the same than the one I have with the LAN interface ? If yes, then it is the one activated in the hardware section (and the one with an empty setting panel)
User avatar
gizmocuz
Posts: 2541
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: I don't understand how Zwave-JS-UI and MQTT work in the real life !

Post by gizmocuz »

Yes sure it is the 'MQTT Auto Discovery Client Gateway with LAN interface', it is the only one with MQTT Auto Discovery.
The settings is used for number types, you will not see nodes here. You will see them in zwavejs-ui
Anyway, can you connect with MQTT Explorer to your broker, do you see the auto discovery topic (default named homeassistant) with config objects underneath?
If you cannot connect, fix this first
if you do not see the auto discovery topic, you have to enable this, see the above wiki
And of cource in Domoticz under settings you have to enable 'Accept new hardware/devices'
Quality outlives Quantity!
Michel13
Posts: 69
Joined: Thursday 07 January 2016 19:31
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: France
Contact:

Re: I don't understand how Zwave-JS-UI and MQTT work in the real life !

Post by Michel13 »

@gizmocuz
I can see in MQTT Explorer under homeassistant all the devices working in Domoticz.
Under zwave, I find all the nodes I have in ZWave-JS.
The stange thing is for the device which is in the list of Z-Wave JS Config DB Browser but not in homeassistant. Auto Discovery is not working ?
Furthermore, for this device or for the other sensor not in the list, they are well detected in MQTT (lastActive information is updated at each change) which I suppose confirm they are active. So how to make them operationnal in ZWave-JS ? That is a big mistery.

I wonder if I find the way to delete the nodes, is MQTT will be able to detect them with new nodes ?
The problem is I don't know how to remove or add nodes in MQTT or ZWave-JS (my first message).

And of course, Accept new hardware/devices is enabled in Domoticz.
meal
Posts: 108
Joined: Monday 04 March 2019 14:59
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.1
Location: France
Contact:

Re: I don't understand how Zwave-JS-UI and MQTT work in the real life !

Post by meal »

Hello,

In order to accept new hardware/devices is enabled in Domoticz and more generally to manage nodes you will find at the bottom right corner of the ZwaveJSUI panel a blue button.
When clicking this blue button you will see 2 new buttons:
- A pink one : Advanced Actions
- A green one : Manage Nodes

To insert a new node you have to activate the "Manage Nodes" button and proceed with the subsequent steps.
Hope this will help
BR
meal
stevediaz
Posts: 3
Joined: Wednesday 10 January 2024 9:11
Target OS: -
Domoticz version:
Location: US
Contact:

Re: I don't understand how Zwave-JS-UI and MQTT work in the real life !

Post by stevediaz »

You can manage Z-Wave devices efficiently by leveraging the capabilities of ZWave-JS and Domoticz. When dealing with devices like the Vision Security ZD2102 and Aeotec ZW089-C, initiate a fresh inclusion process in ZWave-JS for seamless integration. In Domoticz, follow the inclusion steps under Setup -> Devices to add Z-Wave nodes. Remember to wake up your Aeotec ZW089-C (Gen5) as per the manufacturer's instructions before attempting inclusion.

To navigate ZWave-JS effectively, utilize the Node Management interface to remove or add devices. Look for options like "Remove Node" or "Exclude Node" for removal and "Add Node" for inclusion. For comprehensive guidance on ZWave-JS, consult the official documentation on GitHub, offering insights into installation, configuration, and device management.

Additionally, when setting up MQTT Auto Discovery in Domoticz, be aware that the "Setting" button might not require manual configuration. Ensure proper MQTT broker settings, and verify that devices are publishing the necessary information for seamless auto-discovery within Domoticz.
marmachine
Posts: 133
Joined: Saturday 26 March 2016 10:19
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.4834
Location: Netherlands
Contact:

Re: I don't understand how Zwave-JS-UI and MQTT work in the real life !

Post by marmachine »

marmachine wrote: Tuesday 09 January 2024 14:23 I'm around the same point... having my devices in MQTT, but not Domoticz.
Last weekend i have searched and found documentation in the wiki that said MQTT autodiscovery was not yet added in v 2023.1 which is my current version since i haven't updated (yet). Anyway... i think it was the same documentation that also explained how to configure MQTT autodiscovery...
Turned out that even in v2023.1 this thing works... i succeeded today in getting my devices discovered, actually a matter of consistancy which seems logic when looking back at it. There is lack of clear instructions though! Anyway... this is just to correct myself here.
Michel13
Posts: 69
Joined: Thursday 07 January 2016 19:31
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: France
Contact:

Re: I don't understand how Zwave-JS-UI and MQTT work in the real life !

Post by Michel13 »

Thank you all.
I didn't know the blue button at the bottom right. I can't imagine how much I missed it!
Now all devices are included in ZWave-JS.
I was able to reactivate the ZD2102 and it was added to Domoticz. It works well. I can also find it in the "home assistant" folder of MQTT Explorer, so all is well for that device I guess.
This is another thing for the Aeotec sensor. I don't know why I didn't notice it in the Auto discovery listing, but it's finally included, so that's a good thing.
The problem is that I couldn't include it in Domoticz.
So I tried to exclude it but the exclusion process only affects invalid nodes. This is strange because we should be able to delete valid nodes for the devices we cancel.
The only solution I found is to remove it in MQTT Explorer.
Finally, I included the same sensor in a new node and it works perfectly now.
In conclusion, ZWave-JS does its job correctly once you understand how it works, but is far from intuitive and user-friendly.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest