Control of z-wave devices via mqtt

Hi all.

What am I missing and what am I doing wrong?

I switched z-wave network management from the Z-WaveMe add-on to the Z-Wave JS UI add-on.
I have external control connected via an external mqtt server.
All topics are visible, I can see device statuses, but I can’t control the devices.

For example:

Light_in_the_bathroom
37
   1
     currentValue = false
     targetValue = false
   2
     currentValue = false
     targetValue = false
lastActive = 1720599406480
status = true

If I switch the device to HA, the server will publish the information to the topic and I will see the changes.

Light_in_the_bathroom
37
   1
     currentValue = true
     targetValue = true
   2
     currentValue = false
     targetValue = false
lastActive = 1720599406480
status = true

But if I publish information to a topic from the mqtt server, then nothing happens, only a change in the topic on the mqttt-server is visible.

In the Z-WaveMe add-on, it was possible to publish the parameter in a publiср thread and everything worked.

What are you doing within HA that causes the changes in the screenshot? Are you using the HA MQTT integration and services to publish an MQTT message from within HA or are you simply clicking on the controls for the device in HA?

Hi,
Many people seem to get confused with integrations that use MQTT as a means of connecting into HASS like Z2M, and I’m guessing Z-WaveMe (my RaZberry was decommissioned a long time ago and have always used Z-JS).

Z-Wave JS does not use MQTT as the integration connects directly into HASS. It has no need to publish nor subscribe to MQTT topics.

If you are seeing Z-Wave related topics in MQTT, then my guess is they are retained from when you used Z-WaveMe and should be deleted via something like MQTT Explorer.

HASS integrations change the state of HASS objects. If you want MQTT access, there are ways to setup manual MQTT pub/ sub from HASS.

If this helps, :heart: this post!

Looking at the docs for Set Value via MQTT, your screenshot publish topic doesn’t seem right. Have you tried appending /set to the topic? You may also need to pass a json payload.

finity, FloatingBoater
of course I have the HA integration and it works great.
But I need to control in parallel using mqtt.

peterxian
wow, that’s exactly what I missed, I should have added /set. Everything works perfectly.