Community
OpenEnergyMonitor

Community

node-RED to MQTT is disconnected

mqtt
Tags: #<Tag:0x00007f1be00bb708>

(Lycle Park) #1

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.
localhost:1883
emon/emonpi/power1

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

Any advise would be highly appreciated.


(Alandpearson) #2

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)


(Glyn Hudson) #3

See default emonPi MQTT credentials: https://guide.openenergymonitor.org/technical/credentials/#mqtt


(Lycle Park) #4

Thanks.
I found password authorization tab.