##Overview
This is the Arduino source code to communicate with the pimatic-athome plugin.
As hardware two JeeNodes from JEELABS are used (available here). A JeeNode is a Arduino compatible micro-controller board (ATMega328P), which has a RFM12B wireless RF module already on board.
The first JeeNode(receiver) is connected with a FTDI USB/serial adapter to an USB port of the Raspberry Pi or a MacBook. It can control 868MHz based protocols like FS20 with the RFM12B module. A 433MHz transmitter and receiver module is connected to control Elro switches or receive signals from an Elro remote control.
The second JeeNode(transmitter) has an ultrasonic sensor attached to measure the amount of water in a well. Temperature is measured with Dallas DS18B20 sensors, which are connected over OneWire. The JeeNode measures the values and sends them wireless to the first JeeNode.
##Setup
Copy the AtHomeLib folder to the Arduino IDEs library folder. It is no real library but it is used to share the header with the definitions of the wireless network between the sender and the receiver source code.
Other required Arduino libraries:
JeeLib : support for the JeeNodes and the wireless radio modules
SerialCommand: tokenize and parse commands received over the serial port
RCSwitch: operate remote radio controlled devices 315/433MHz
OneWire: support for the 1-wire bus
DallasTemperature: support for Dallas 1-Wire temperature devices
Modify the source code for your needs, e.g. use only one microcontroller to periodically send test values.