FYI, jonasled created an ESPHome configuration for Sonoff ZBBridge-P bridge here on GitLab:
It is in turn based on the ESPHome configuration from thegroove: