ESPEASY to OPENHAB 3 Setup

The tutorials are the examples you’re looking for. Here are two for ESPEASY, and one for Tasmota. They may not match exactly to what you’re doing, but they should get you pretty far along.