Hi all,
i am new at arduino and pimatic. first of all this is some great work that has been achieved already!!
Now my question: how can i set a rule in pimatic for the sensor?
i have connected the motion sensor to arduino nano and with RF i send the data towards my RaspberryPi.
In Pimatic i receive these two lines when motion is detected:
debug [pimatic-homeduino]: received: [ 756, 1944, 4232, 8560 ] 020102010201020101020102010201020102020101020102020101020201020102010102010202010201020102010201020102010201020102010201020102010201020102010201020102010201020102010201020102010201020102010201010203
16:08:30debug [pimatic-homeduino]: data: "RF receive 756 4232 1944 8560 0 0 0 0 0102010201020102020102010201020102010102020102010102020101020102010202010201010201020102010201020102010201020102010201020102010201020102010201020102010201020102010201020102010201
And these two lines when motion is not detected for some time (5 sec)
debug [pimatic-homeduino]: received: [ 748, 1948, 4240, 8564 ] 020102010201020101020102010201020102020101020102020101020201020102010201010202010201020102010201020102010201020102010201020102010201020102010201020102010201020102010201020102010201020102010201020103
16:08:44debug [pimatic-homeduino]: data: "RF receive 748 4240 1948 8564 0 0 0 0 0102010201020102020102010201020102010102020102010102020101020102010201020201010201020102010201020102010201020102010201020102010201020102010201020102010201020102010201020102010201
used several plugins to get this working but i do not have the knowledges to understand the data comming towards pimatic.
i also use for rf transmission PimaticProbe.h and added an extra rule
PimaticProbe probe = PimaticProbe(senderPin, codeKit);
row to transmit:
probe.transmit(false , zendwaarde, 1, 6); // ([postive/negative], CounterValue, [type], 6)
(zendwaarde is 0 or 1 : detected or non detected)
In pimatic (debug mode) i receive this line:
debug [pimatic-homeduino]: generic: { id: 1005, type: 0, positive: true, value: 0 }
anyone that can help me out and explain how to implement this in pimatic?
Thanks for helping!