Use the following link to learn how to build your own sensors for less than $10.
http://www.mysensors.org-----------------------------------
I'm working on a new plugin for home built Arduino sensors that transmits data to Vera using the nRF24L01 radio chip. Initially I will only send data one-way (to Vera) but there is really nothing stopping two-way communication (or even building mesh networks of sensors like z-wave).
I would like to design it to keep the changes to a minimum in the ReceiverSketch (running on the Arduino attached to Vera) and Vera plugin if possible.
For this to work it would be nice if the sensors could present them self to the ArduinoSensorPlugin with all information needed to create them automatically in Vera (like Device/implementation descriptor files etc).
The sensors could the only has two types of messages:
Presentation Data: Always sent when they are powered up. Contains all info needed to create the device in Vera including a unique Id to identify and transmit data to sensor (pipe-id).
Sensor Data: Sent when sensor data is changed.
The VeraReceiver sketch will only relay messages coming on the radio bus to the usb-serial interface which is read by the ArduinoSensorPlugin in Vera.
So.. the question is.. Is it best to keep the different sensor in child devices of the ArduinoSensorPlugin... or is it better to real devices? As stated above.. I would lite to keep changes to a minimum in the VeraReceiverPlugin and move all logic (specific implementation details) to the "child" plugins. This way someone can create a new Arduino sketch for a new sensor and upload the corresponding device files for it in vera.
Please help me brainstorm here.
