# Need some help configuring mqtt connection

**URL:** <https://discourse.nodered.org/t/need-some-help-configuring-mqtt-connection/56019>\
**Category:** General\
**Tags:** mqtt\
**Created:** [3 January 2022 00:13 UTC](https://discourse.nodered.org/t/need-some-help-configuring-mqtt-connection/56019 "2022-01-03T00:13:15Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bjornie](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bjornie/32/53461_2.png) [@Bjornie](https://discourse.nodered.org/u/Bjornie)\
**Post date:** [3 January 2022 00:13 UTC](https://discourse.nodered.org/t/need-some-help-configuring-mqtt-connection/56019/1 "2022-01-03T00:13:15Z")

</div>

Hi Everyone,

I am trying to configure a API connection to my home automation,  
The manufacturer provided me with a CA-chain.cert.perm file, allong with a username and password.

But no matter how i configure the mqtt nodes, i'm not having much luck.  
It shows connected... but a debug node gets a reply that "No certificate/key file provided" .

Pretty much at a loss here, and not getting anywhere. this mqtt stuff might be over my head, but i want to learn. it would simplify my procces greatly.

Anyone that want to guide me whiles setting it up?  
Greatfull for any helpfull tips

...

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [3 January 2022 03:55 UTC](https://discourse.nodered.org/t/need-some-help-configuring-mqtt-connection/56019/2 "2022-01-03T03:55:31Z")

</div>

Are you sure it's MQTT and not http?

---

<div class="post-metadata">

**Author:** ![Bjornie](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bjornie/32/53461_2.png) [@Bjornie](https://discourse.nodered.org/u/Bjornie)\
**Post date:** [3 January 2022 07:22 UTC](https://discourse.nodered.org/t/need-some-help-configuring-mqtt-connection/56019/3 "2022-01-03T07:22:48Z")

</div>

Yes, it used to be Http and relativly simple.  
Now its mqtt, i have a Manuel from the manufacturer but its like staring at hyroglifics. I understand some of it, but not enough to make it work aparrently.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [3 January 2022 07:33 UTC](https://discourse.nodered.org/t/need-some-help-configuring-mqtt-connection/56019/4 "2022-01-03T07:33:59Z")

</div>

Can you share a link to the manual?

---

<div class="post-metadata">

**Author:** ![Bjornie](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bjornie/32/53461_2.png) [@Bjornie](https://discourse.nodered.org/u/Bjornie)\
**Post date:** [3 January 2022 10:39 UTC](https://discourse.nodered.org/t/need-some-help-configuring-mqtt-connection/56019/5 "2022-01-03T10:39:09Z")

</div>

If the link works whitout login...

> **[documentation.pdf](https://mynikohomecontrol.niko.eu/Content/hobbyapi/documentation.pdf)**
>
> 2.18 MB

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [3 January 2022 10:53 UTC](https://discourse.nodered.org/t/need-some-help-configuring-mqtt-connection/56019/6 "2022-01-03T10:53:08Z")

</div>

Without reading the full manual...

Can you explain a little more your setup?

For example, where is the MQTT broker? Local install? On your Lan? In a dedicated piece of hardware on your Lan? On the cloud?

Where are you running node-red & can this node-red server ping the brokers server?

* * *

To get you familiar with MQTT (which I can tell you, if you think http APIs are simple, you will love MQTT) you might want to do some tests/playtime to get aquatinted. There are numerous online MQTT brokers you can connect to to get familiar. Also, if you don't already have it, download & install MQTT explorer. It will help you.

---

<div class="post-metadata">

**Author:** ![Bjornie](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bjornie/32/53461_2.png) [@Bjornie](https://discourse.nodered.org/u/Bjornie)\
**Post date:** [3 January 2022 10:58 UTC](https://discourse.nodered.org/t/need-some-help-configuring-mqtt-connection/56019/7 "2022-01-03T10:58:35Z")

</div>

Sure thing:

- MQTT Broker is the NHC controler on my network Via internal IP.
- Node-red is running on e Victron Cerbo from my home battery, i have SSH acces too.
- The MQTT node shows "connected" and green in the flow so i believe some of the configuration is correct... just not getting usefull data out of it, aside from the message that there is no certificat, witch there is...

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [3 January 2022 11:04 UTC](https://discourse.nodered.org/t/need-some-help-configuring-mqtt-connection/56019/8 "2022-01-03T11:04:22Z")

</div>

Do you have another computer or raspberry pi where you could run latest node-red - see if that can get MQTT working? Once you know the broker and hardware is responding you can start ruling things out.

From another angle, you could install a different broker on your Lan & check the node-red instance can connect and work.

---

<div class="post-metadata">

**Author:** ![Bjornie](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bjornie/32/53461_2.png) [@Bjornie](https://discourse.nodered.org/u/Bjornie)\
**Post date:** [3 January 2022 11:19 UTC](https://discourse.nodered.org/t/need-some-help-configuring-mqtt-connection/56019/9 "2022-01-03T11:19:35Z")

</div>

The nodered i´m running on the cerbo is v1.3.2, if that helps,  
is says it is a maintenance release.

Yes i could run it on my laptop for sh and gigles but dont see how that would be the source the problem,  
because it dous show "connected" and HTTP nodes seem to work fine.

Or am i missing something, as i mentioned, mqtt is new for me.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [3 January 2022 11:26 UTC](https://discourse.nodered.org/t/need-some-help-configuring-mqtt-connection/56019/10 "2022-01-03T11:26:52Z")

</div>

It rules things out like corrupted install, unknown bug in earlier version of node-red (or a dependency). Also, there are many other under the hood changes from 1.x to 2.x

Ruling things out is just one approach. If you have no other approach then you should start somewhere.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [3 January 2022 11:28 UTC](https://discourse.nodered.org/t/need-some-help-configuring-mqtt-connection/56019/11 "2022-01-03T11:28:05Z")

</div>

Ps, v1.3.2 is not latest 1.x release.

Also, you don't state what version of nodejs you run?

---

<div class="post-metadata">

**Author:** ![Bjornie](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bjornie/32/53461_2.png) [@Bjornie](https://discourse.nodered.org/u/Bjornie)\
**Post date:** [3 January 2022 11:29 UTC](https://discourse.nodered.org/t/need-some-help-configuring-mqtt-connection/56019/12 "2022-01-03T11:29:53Z")

</div>

It just dawned on me that my network is not set up as normal,

- ISP Modem/Router
- NHC controler connected to ISP Router
- DECO mesh master connected to ISP Router
- Cerbo in Deco network

So i could imagine an issue there, data can go from the Cerbo to the controler (outbound trafic on the Deco firewall) but not back... not sure though, the port to nodered is forwarded...

---

<div class="post-metadata">

**Author:** ![Bjornie](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bjornie/32/53461_2.png) [@Bjornie](https://discourse.nodered.org/u/Bjornie)\
**Post date:** [3 January 2022 11:31 UTC](https://discourse.nodered.org/t/need-some-help-configuring-mqtt-connection/56019/13 "2022-01-03T11:31:24Z")

</div>

i will have to check the versions at home, i dont have putty acces externaly

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [4 March 2022 11:31 UTC](https://discourse.nodered.org/t/need-some-help-configuring-mqtt-connection/56019/14 "2022-03-04T11:31:28Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
