How to send a command to openhab (from Arduino doorbell)

WIfi or Ethernet does not really matter. Check out the OpenHAB REST API
https://docs.openhab.org/configuration/restdocs.html#rest-api-examples and
and Triggering Items Using openHAB 2's REST API from Tasker