Here’s a Smart Home Thermostat project based on a wifi enabled Arduino device called Particle Photon. The Photon is a great IoT device; a powerful Wifi enabled MCU that can be programmed in the Wiring language, as used by Arduino, combined with a Cloud Service to manage the programming and cloud connectivity.
What’s really interesting about this project is how it exposes the REST protocol which is central to a huge amount of IoT and Web infrastructure. Basically REST treats all resources as a URL e.g. https://myServer/mydevice/dev1/LEDs/TurnOn
I’ve recently added Alexa based Voice Control to this project (more on that soon).