can you post the screenshot of your actual wemos controller
Correct user/password on mqtt in on node red?
pi@raspberrypi:~ $ node-red start
1 Aug 00:44:47 - [info]
Welcome to Node-RED
1 Aug 00:44:47 - [info] Node-RED version: v0.18.7
1 Aug 00:44:47 - [info] Node.js version: v8.11.3
1 Aug 00:44:47 - [info] Linux 4.14.52-v7+ arm LE
1 Aug 00:44:48 - [info] Loading palette nodes
1 Aug 00:44:51 - [info] Dashboard version 2.9.6 started at /ui
1 Aug 00:44:52 - [info] Settings file : /home/pi/.node-red/settings.js
1 Aug 00:44:52 - [info] User directory : /home/pi/.node-red
1 Aug 00:44:52 - [warn] Projects disabled : editorTheme.projects.enabled=false
1 Aug 00:44:52 - [info] Flows file : /home/pi/.node-red/start
1 Aug 00:44:53 - [info] Creating new flow file
1 Aug 00:44:53 - [warn]
Your flow credentials file is encrypted using a system-generated key.
If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.
You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
1 Aug 00:44:53 - [info] Starting flows
1 Aug 00:44:53 - [info] Started flows
1 Aug 00:44:53 - [error] Unable to listen on http://127.0.0.1:1880/
1 Aug 00:44:53 - [error] Error: port in use
Yes, It's working from-to node-red. My hello world message is published and received.
did you define a mosquitto user/password?
If it works with node-red, so how is the user/password in node-red (mqtt server)?
... you don't have to post your user/password here, it has to be the same in wemos as in node-red
go to the ESPeasy pages and open one tab to the TOOLS->LOG
open another tab to CONTROLERS and edit yout controller.
uncheck the 'Enabled' and press 'Submit', then recheck it and Submit it again and then look at the log should show something like this:
Here's what I get:
User and PW are the same in Node-red and wemos.
Could you go to TOOLS->Show JSON and attach the results?
How did you set the user/pw for Mqtt _ I don't have it set on mine
Your connection is unstable:
MQTT: Connection lost
My wifi connection strength is -40db!
Can you try reboot raspberry?
Jason:
|---|---|
|Build|20102|
|Git Build|"mega-20180723"|
|System libraries|"ESP82xx Core 2_4_1, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.0.3"|
|Plugins|48|
|Plugin description|" [Normal]"|
|Local time|"1970-00-00 00:00:00"|
|Unit|141|
|Name|"Irrigation_141"|
|Uptime|78|
|Last boot cause|"Cold boot"|
|Reset Reason|"External System"|
|Load|16.8|
|Load LC|16651|
|Free RAM|16304|
|WiFi||
|Hostname|"Irrigation-141-141"|
|IP config|"Static"|
|IP|"192.168.1.141"|
|Subnet Mask|"255.255.255.0"|
|Gateway IP|"192.168.1.1"|
|MAC address|"B4:E6:2D:17:E0:D9"|
|DNS 1|"192.168.1.1"|
|DNS 2|"0.0.0.0"|
|SSID|"basecamp3"|
|BSSID|"14:91:82:BA:C2:EE"|
|Channel|6|
|Connected msec|4666342|
|Last Disconnect Reason|1|
|Last Disconnect Reason str|"(1) Unspecified"|
|Number reconnects|0|
|RSSI|-37|
|Sensors||
|0||
|TaskValues||
|0||
|ValueNumber|1|
|Name|"TempDHT"|
|NrDecimals|2|
|Value|27.7|
|1||
|ValueNumber|2|
|Name|"HumDHT"|
|NrDecimals|2|
|Value|38.6|
|DataAcquisition||
|0||
|Controller|1|
|IDX|0|
|Enabled|"true"|
|1||
|Controller|2|
|IDX|0|
|Enabled|"false"|
|2||
|Controller|3|
|IDX|0|
|Enabled|"false"|
|TaskInterval|5|
|Type|"Environment - DHT11/12/22 SONOFF2301/7021"|
|TaskName|"DHT22"|
|TaskEnabled|"true"|
|TaskNumber|1|
|TTL|5000|```
I rebooted the Pi first thing this morning.
It looks like you never enabled the device. go to Devices and edit the device and make sure both 'Enabled' and 'Send to Controller' are checked and hit Submit
I created a pwfile but apparently I never got it properly attached. I just deleted the uid/pw from the node-red flow and it made no difference.
you are using version mega-20180723
.
On my devices I'm running v2.0-20180322
Both are checked for the device.
I am running |Git Build|"mega-20180723"|
I wonder if I should back up to your version?