I used the thermoduino pro sketch code from here: Testers wanted! - Home Automation - Arduino Forum
wich is about 2100 lines of codes, and removed everything from it that I didn't need, like setting timers to activate the heating, wich i can also do from my android phone with Tasker, and then I cleaned up the code to reduce it to about 850 lines of code, and changed everything, to store data on emoncms, instead of saving it in EEPROM, because the code was doing like writes to EEPROM every 5 minutes, and I read in the documentation on this site that the EEPROM memory of an arduino only allows for 100.000 write cycles, so then basicly after a year of usage the arduino's EEPROM memmory would be destroyed, so then changed code to store stuff in emoncms instead of EEPROM and added about 750-800 lines of own code (and used code from other sketches), to basicly controll everything in my home, powerswitches, lightswicthes, send RF and Infrared signals to control stuff like amplifier, tv, lights, beamerscreen, send wake on lan to start htpc, intercept RF signal from doorbell to send message to my phone/tablet, etc...
I marked the code I added with comments: // Mijn code, and // Einde mijn code, wich translates to // My Code, and // End of my code
too long to post here about 1600 lines of code, so put it here: