If you are already familiar with openHAB1 you should read
Basically all your items, rules, sitemaps etc. work the same in openHAB2.