I will start with some quotes…
also
We need more Information!
- Which Firmware do you use for your Sonoff?
- Which openHAB Version?
Better read the “How to ask good questions” it really helps us helping you!
If you could provide a path what you did, which tutorial or topic you followed we could help even better