Thank you for these info. I will have a look on tutorials on scripts and lua in Domoticz. Not so obvious at first glance ! I will need time....
Thanks again.
Posts made by GLAB
-
RE: Compatibility between mysensors and RF24 library on same node.
-
RE: Compatibility between mysensors and RF24 library on same node.
Hello
Thank you for this description of your installations. There are many similarities with mine. Except -as I understand- that your risk might be an empty tank, while I fear an overflow of mine in case of strong rain and pump failure, resulting in flooding my cellar.... But basically I could find a solution similar to yours to show in a Domoticz graph (date and time on horizontal axis), when a pump is turned on, by drawing vertical segments every 5 min of domoticz, with a height showing the duration - cumulated by the node- of pump working since the moment it has been turned on. And this duration would be reset when the pump is turned off.
I think I can do that without using interrupts on Arduino and dummy variables in Domoticz that I do not really master (I have never experienced them).
One of the difficulties I expect when doing that is to manage the risk that Domoticz records a 5 min sample a few minutes (i.e. 2 min) before the pump is turned off : in that case, the duration working time displayed would be underestimated. I am confident that I can find a turnaround to cope with this difficulty, maybe by a delay (5min ?) of the reset by the node of the cumulated time after pump turn off.
Anyway, it will be a funny challenge... -
RE: Compatibility between mysensors and RF24 library on same node.
@BearWithBeard Thanks for your answer. My feeling is that you describe a perfect solution (with database + Grafana etc...). The possibility of linking influxdb and domoticz looks very promising.
The issue is that I have presently no competence in these tools, and my knowledge of Domoticz is limited to the basis. I am therefore reluctant in jumping directly in such an adventure
However I will go on thinking to this option, at least maybe in a first step for brain training.....
Thanks again. -
RE: Compatibility between mysensors and RF24 library on same node.
@mfalkvidd Thanks for your answer.
I understand the possible advantages of a controller change.
But I am 75 years old, and I tend to be prudent in front of drastic changes in my installation. I would not like to migrate from a system unperfect but basically working to a system theoretically better but that I could not master.
I like your idea of calculating at node level cumulated times of pump working, , and transferring them to Domoticz, instead of the amperage drawn by my pumps that I transfer today (at the beginning I expected to forecast early some pumps malfunctions by checking evolution with time of the absorbed power, but I do no more think today that it is realistic). I will modify the sketches in this way during the next days (or maybe weeks). I will keep you informed when it is working.
Could you kindly developp a little further your idea of skipping the controller and logging data to a file, so that I can evaluate if this is in my range of competence ?
Many thanks again. -
RE: Compatibility between mysensors and RF24 library on same node.
@mfalkvidd Thanks for your time and your warning....
My problem with mysensors is that the only way I know to collect the data received by the GW through mysensors is domoticz, and domoticz reports data to me every 5 minutes. I like to monitor the data through internet, together with meteo, home temperatures and so on.
But a 5 min period is not frequent enough to show me the progressive change in the water level when the pump is working (the average duration of a period of powered on pump is most often a handle of minutes) : to achieve this, my node samples and sends data to GW approx every 5 seconds and it is frustrating to find data in domoticz only every five minutes.
To cope with this issue, I have presently a second -independant- pair of arduino linked by nr24 protocole : one of them collect the data and send them every 5 secondes to the 2nd arduino which starts electromechanical timers cumulating the working time of the pumps with sufficient reliability and accuracy. This cumulated time, cross checked with meteo data and water level, is useful to me to verify that the pumps are working normally. The problem is that I do not know a way to access these info via internet.
So my today situation is that I have, working in parallel, the mysensors system, opened on internet but poorly reactive, and the nr24 system, accurate enough, but that I can only read when I am at home.... Fortunately, presently, these two systems work in parallel apparently without interfering negatively....
My dream would be to unify the two systems.... -
Compatibility between mysensors and RF24 library on same node.
Hello everybody
I am a newby on the forum and in RF communication, so please excuse me if my question is stupid....
I use presently an Arduino node linked to a gateway on RPI and Domoticz controller to monitor the water level in a well and recording the behavior of 2 pumps controlling this level. It works quite correctly. Domoticz shows me data every 5 minutes.
On the same Arduino node, same sketch and loop(), is it possible to implement, in addition to the mysensors instructions, some instructions of the NR24 library, so that this Arduino can also exchange data directly with another Arduino equipped with RF24 library but without mysensors one (of course independantly of the GW and Domoticz) ? Is there a risk of mess between frequencies, channels, node ID, data ID etc... used by both communication structures ?
Thanks in advance.