From zigbee2mqtt to node-RED switch

I have a problem with the integration of the 4 switch. In zigbee2mqtt everything works and shows the status after pressing, but in node-RED it does nothing

Your mqtt node(zibee2mqtt) says connecting under it, it should say connected. This tells me there is either a problem with the mqtt app, like it’s not running or your credentials are wrong.

If mqtt is running, click on the mqtt node and look to see if you have the right server selected and that the user name and password are correct. To see the server settings click the pencil icon.

dont know why
my mosquito server was wrong setup

another problem with another switch that doesn’t respond

and this throws a message in debug

2. 9. 2026 19:10:12node: f25ad0403a56b603msg : string[27]
“Failed to parse JSON string”

Open that mqtt node. Do you have it set to auto detect json/string/buffer?

If no try that option, if yes set it to string.

jep

Try setting it to a String.

nothing changed

Download mqtt explorer if you haven’t already for your pc/mac. Log into the mqtt server and connect. Trigger the device, the topic will auto populate in the window. Copy the output and post it here.

this?

image

Yes, I wanted to see what was being sent. I don’t see an error in the JSON. Try deleting the node, deploy, then drag a new one to the work space and set it up again.

nothing. Tried to reconnect but still nothing

Złgbee2MQTT looks ok

when I rename from
zigbee2mqtt/Samuel_vypinac to
zigbee2mqtt/Samuel__vypinac it works :face_with_raised_eyebrow:

is it possible to somehow clean old names or something in system?

With the addon/app an easy way to clear everything is to delete it and turn on the switch to delete all data. Otherwise you can publish an empty string "" to the topic with retain set to true.