I’m still having trouble with project 5.1 of the SmartHome book.
The sketch on ESP32 works (subject to setting the debugger to “default”).
I get the domme serial port indications on page 167 fine.
I did the Node-ED flow as shown.
The switch command on the ui page does send the ON or OFF instruction to the Node-RED page.
On this one, there is a “connecting” below test, counter and led.
Everything happens as if the pi does not communicate with the ESP32 or ESP8266.
I proofread the installation of Node-Red
The node-red-start command gives an error message
Nov 23 16:47:27 – [info] [mqtt-broker:18a0e84130afa671] Connection failed to broker: mqtt://localhost:1883
When configuring Node-RED (node-red admin init), I had the error message ;Error: EACCES: permission denied, open ‘/home/pi/.node-red/settings.js’
I guess that’s where the problem comes from.
I redid node-red admin init several times and I always get the same error message…
Can you help me ?
Hi.
That “connecting” message under the nodes means that Node-RED is trying to establish a connection with the broker, but is not successful.
Did you edit the MQTT nodes on Node-RED with your broker settings (username and password)?
Regards,
Sara
Regards,
Sara
Thank you for your effective follow-up,
I did it as indicated on page 104 of the book.
It is in /etc/mosquitto/passwd (in principle…)
Should it be done elsewhere?
Thanks in advance
Marc
Hi.
Yes.
I’m not sure if you’re following the eBook linearly.
It mentions on page 170: “should have already set up the MQTT broker in previous units.”.
See the pictures on page 111. Notice that you need to add your broker details.
You should edit your MQTT nodes with the broker details as it is mentioned in pages 110 and 111.
Let me know if this solves your issue.
Regards,
Sara
Shame on me :-((
I had not seen (or rather not understood..) this manipulation of page 110.
Happy that you are there.
A big thanks
Marc