Circuit diagram for automation with openhab,raspberrypi and esp8266

Tags: #<Tag:0x00007faf7bd2c760> #<Tag:0x00007faf7bd2c5f8> #<Tag:0x00007faf7bd2c350>

I am new to openhab, I am planning for a project in my engineering. I need this circuit diagram for automation with raspberrypi,esp8266 and relays… I need code for programming esp8266. Thank you in advance. Please do help me out

I would check out http://www.letscontrolit.com/wiki/index.php/ESPEasy