Very comprehensive and prompt reply !!! I will follow your steps today and update you on the outcome.
Thank you so much for your help.
Best posts made by mehrdad.silatani
-
RE: Error compiling - ATSHA204.h not Found
-
RE: DHT sensor for Mysensors V2
@sundberg84 Fantastic ! It worked very well ! Thanks for quick response !
-
RE: Error compiling - ATSHA204.h not Found
Ok, I tired the steps as explained and everything seems to be working.
[Some Observations]:
-
Strangely, I had Arduino version 1.7 which did not have "Manage Libraries" button in the sketch tab at all. So I uninstalled it and installed the 1.6.11 version and then I found the "Manage Libraries" and successfully installed the "mysensors" library. I also compiled and uploaded some example sketches to my Arduino nano!
-
In the video of the demonstration of how to start with my sensors (made by petewill), it says to locate an example named "SerialGateway", but in my library it is named "GatewaySerial", are they the same thing ?
-
I would really appreciate if I can have some sort of tutorials on how to start using the wifi modules, or put simple, how to get the best out of mysensors.org ? At the moment, I have all the components but yet to find out how I can really utilise the "mysensors.org" capability.
Again, thank you so much for all your help !
Cheers,
Mehrdad -
-
RE: Error compiling - ATSHA204.h not Found
Thank you so much for your elaborate explanations ! It really cleared up some questions I had in mind, especially about the Arduino versions !
Also, I did not know that "Mysensors" is run entirely by volunteers! I will try to become one of those useful volunteers that helps others (like you ) rather than coming up with questions all the time
-
RE: DHT + Relay Sketch
@mfalkvidd Thank you so much for your comment. I already checked the link you send me and it is very insightful but I guess I am still too beginner to find my solution from those explanations.
Since you asked about missing functions, I couldn't find any description on " C_SET".
Also if you don't mind I would like to ask for your help to understand some of the functions used in my code. These are the functions I am not fully understanding;
-
"send(msgHum.set(humidity, 1))"
What is the action of that number "1" after the payload (i.e. humidity)? can it be any number ? -
"send(msgRlay.set(state?RELAY_ON:RELAY_OFF),2)"
I fully understand up to the part of "send(msgRlay.set" but what happens in "state?RELAY_ON:RELAY_OFF" and also again what is that number "2" at the end doing ?( I randomly typed 2) .... I suspect, in "state?RELAY_ON:RELAY_OFF" it asks the Arduino that which state is true and use that, is that correct? -
"send(msgRlay.set(state?RELAY_ON:RELAY_OFF), true)"
What is the "true" at the end of the line doing? -
"wait(2000, C_SET, V_STATUS)"
This is where I came across the "C_SET" -
"state = (bool)message.getInt()"
I can guess that this line is trying to extract the information of the relay state from the received msg, but I really don't know what is the breakdown of the logic in it (e.g. does adding (bool) at the front of the message.getInt() means only accept boolean type data ? .... ) -
"debouncer.update()"
I really dont quite get what happens in this line ...
Sorry for asking too many questions .. I am really loving to work with "mysensors" and I am trying to make sure I understand what happens in my codes
-
-
RE: DHT + Relay Sketch
@mfalkvidd WOW ! I am blown away by your detailed answers !!! Nothing is more satisfying than plain answers to puzzling questions Thank you so so much !!!
Meanwhile, by using my "MYSController". I figured out that the sketch is reporting right values as you pointed out before;
So what I did was to check my "mysensors.json" ... I noticed there are traces of my old sensor node still embedded in the "mysensors.json". So I deleted the file and let the HA to create a new one from scratch ! and then Volla ! HA started to recognise the sensors and switch separately !
I know everyone here are helping and volunteers, but I thought I will just share my suggestion with you wonderful people, I think it would be invaluable to mysensors users to be able to refer to a language reference page similar to the arduino's website; "https://www.arduino.cc/en/Reference/HomePage"
Again, THANK YOU so much for your elaborated answers !
Cheers,
Mehrdad -
RE: Should I modifymy IDE once I am changing from Arduino Nano to ProMini ?
@sundberg84 The whole system is currently working on 5V adapter which is fed to the RAW port of Promini and then I am powering the sensor from "Vcc" port.
Anyway, I checked the voltage across the DHT11 sensor and my voltmeter shows 4.98 V. So I dont think the power is the problem ...I think this has been flagged before by other people as well, See-> (https://forum.mysensors.org/topic/1894/pro-mini-is-giving-a-frequent-time-out-on-dth11-read-out/9)
I even tried two different Pro mini boards ! still no luck !