node-RED to MQTT is disconnected

I tried node-RED to MQTT connection.
|Emoncms|Version|low-write 9.8.31 : 2018.06.21
emonHub log shows MQTT is publishing.
MQTT Publishing: emon/emonpi/power1 -15

however node-RED to MQTT is always disconnected state.

BTW, node-RED work fine with test raspberry mouse.

Any advise would be highly appreciated.

mqtt on the emonpi setup requires username / password authentication
Have you put these in node-red ?
edit the mqtt object (any of them, click on the edit pencil beside server, then the security tab)

See default emonPi MQTT credentials: Service Credentials - Guide | OpenEnergyMonitor

I found password authorization tab.

1 Like