Christian-Me / node-red-contrib-homie-convention

Node-RED node for MQTT communication according the Homie Convention
Apache License 2.0
13 stars 2 forks source link

Username/Password don´t save on broker config form #3

Closed filipemateus closed 4 years ago

filipemateus commented 4 years ago

Hey,

Username/Password data on broker config form don´t apply. I Fulfil it and saved but when I close the form and do deploy these data are lost.

Christian-Me commented 4 years ago

Hello, That has something to do that username and password are stored encrypted in the credentials file. The front end does not get the username easily, The password will not be sent back to the front end at all. But the node should have received username / password and connect correctly:

image

image

I have to find the right way to react on the front end: I use a password manager so the data is filled in every time I open the broker config dialog. Can you establish a username/password connection after typing in the values and deploy/restart flow partial deploy sometimes not trigger a re-connection of the mqtt client.

Christian-Me commented 4 years ago

Ok, found the problem. can you install the node from github for a test before I push it to npm? image

filipemateus commented 4 years ago

Hello Christian,

I did install from Github and the problem remains.

I´m using Docker to setup this env. I´m using RabbitMQ too linked to NodeRED container. I´m not using TLS, only user/pass

Screen Shot 2019-12-07 at 10 43 09

Christian-Me commented 4 years ago

Can you take a look inside the log / console? you should read something like this

7 Dec 15:18:39 - [info] Flows starten
7 Dec 15:18:39 - [info] [homie.device.config:mosquitto@home] MQTT connect to mqtt://192.168.2.14:1883 as user undefined
7 Dec 15:18:39 - [info] [homie.device.config:localhost@hp-spectre-360] MQTT connect to mqtts://AH-BERLIN-0148:8883 as user mqttUser

Search for someting starting with homie.device.config Currently i have two brokers. one on my server (without tsl and without user/pass and secont with tsl&user. I don`t think it has something to do with docker or your broker,

filipemateus commented 4 years ago

Sure

Screen Shot 2019-12-07 at 21 16 39

Apparently, for some unknown reason NodeRED don´t store the data :(

filipemateus commented 4 years ago

Hi Christian,

I´d wrong my setup of homie via GitHub on Node-red. Now is connecting \o/

Screen Shot 2019-12-07 at 22 39 11

Thanks so much for the aid. Best regards

Christian-Me commented 4 years ago

Just wanted to write that it seems that you still have the old version.... Great that it is working now. Come back if you encounter any further problems / bugs The is a lonely post over @ forum too for non bug related discussion. The note is quite complex and I real need help with beta testing. I'll push 0.5 to npm ASAP (on Monday because if have guests today)

image

Greetings from Berlin