Please review How to get started (there is no step-by-step tutorial).
To be successful with openHAB you have to be able to read, follow and understand documentation and tutorials. You have to be able to piece together separate tutorials for little parts that solve part of your problem, not end-to-end solutions.
Basic to intermediate computer skills are going to be outside the scope of openHAB. You will need to find these on your own for the most part.
Home automation is hard. It’s complex. And everyone’s home automation is unique.We can’t do it for you. We can help when you run into specific problems. But we will not build it for you. And frankly, asking questions that are clearly in the docs that we spent a lot of time writing is a bit annoying.
Rules | openHAB, the section in the Rules doc is even labeled “File Location”.
Rules are placed in the folder
$OPENHAB_CONF/rules
.