Is it possible to connect grid connect smart switch to OpenHab2

Did you try the LightwaveRF binding?

The ideal scenario (IMO), is to flash them with Tasmota or some other firmware (I read someone here uses ESPurna). Then you can simply control them using MQTT via openhab. You can still link OpenHAB to Google Home/Alexa if desired.

If you don’t want to go this route for some reason, I wonder if it’s compatible with the Tuya app, which some people here have found a way to integrate with openhab, although not via a binding. Examples:

Search the community for “Tuya”.

Good luck and let us know how you go. I am considering getting the Deta smart switches myself.