• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Home Automation server – Module 8 Part3

Q&A Forum › Category: Home Automation › Home Automation server – Module 8 Part3
0 Vote Up Vote Down
Jean-luc Berrier asked 9 years ago

After having detected a mouvement, the system stops running and gives “attempting MQTT connection failed…rc-2”
Once the motion has been detected, the sketch shows once more t° & humidy and disconnects
No solution found in the www.
Any idea?

9 Answers
0 Vote Up Vote Down
Jean-luc Berrier answered 9 years ago

When I reduce the temperature/humidity detection period to 10 sec. the systems continues to run and behaves as expected.
Thanks for any explanation or solution
jlb

0 Vote Up Vote Down
Jean-luc Berrier answered 9 years ago

Pitty, the issue is still present.
Mainly after a motion detection, the system disconects and neverr connect back.
any idea is welcome

0 Vote Up Vote Down
Rui Santos Staff answered 9 years ago

That happens with the ESP8266 or with the Arduino board?
Which pin are you using for the PIR motion sensor?

0 Vote Up Vote Down
Jean-luc Berrier answered 9 years ago

Hi Rui,
Thanks to answer.
It’s literally as in the course, Model8 Part3
With ESP and Pin4
I’ve tried everything, even exchange the ESP, isolate the “movement part” in the sketch, disconnect the “non motion” part in Node Red, …
I’ve put a “keep MQTT alive” of 1000
Nothing to do. it’s work as long as no motion is detected.
After detection and a few seconds, I receive an “attempting…rc-2” and I must reload the sketch.
I don’t have more idea.
Pitty because it’s a very interesting project.
 
Jean-Luc
 
 

0 Vote Up Vote Down
Jean-luc Berrier answered 9 years ago

Hi Rui,
Today, I’ve exchanged the RPI (3) and the ESP
 I’ve started by fixing (downsizing) the “motion only” sketch=> no prblm
Then I’ve added the “Switch” part =>works
Then I’ve added the “Temp & Humidity” part => works
But I’d also to exchange the PIR, it was constantly making detections, even after adjustments of “time” & “sensibility” (I’ve to test it with another sketch)
Seems no “attempting….” occurs anymore.
I’ll let it run the all night.
I’ve also tried to reuse the first ESP ==> “attempting…” occurs back
Do you have some thoughts about it?

0 Vote Up Vote Down
Rui Santos Staff answered 9 years ago

I’ve been recently having problems with the PIR motion sensor myself, but in another project.
Does your PIR sensor has the option to set to single trigger?

0 Vote Up Vote Down
Jean-luc Berrier answered 9 years ago

Yes, but without any other mentions as low/high.
The jumper is on low
Question, how to test the ESP? do you have any SW to use.
I want to know why the first ESP is not working in this project.
Merci
.

0 Vote Up Vote Down
Rui Santos Staff answered 9 years ago

Do you have multiple ESP8266 running in your network?

0 Vote Up Vote Down
Jean-luc Berrier answered 9 years ago

Hi,
no. It’s strickly the project you describe in this lesson.
no more, no less.
thanks, jl

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.