We propose a unified framework to describe the interactions of the observed ${T}_{cc}$, ${P}_{c}$, and ${P}_{cs}$ within a quark level interaction in our previous work. In this work, we generalize our framework to the loosely bound hadronic molecules composed of heavy flavor dihadrons with strangeness. We predict the possible ${D}^{(*)}{D}_{s}^{(*)}$ molecular states in the SU(3) limit with the masses of the ${P}_{c}$ states as the inputs. We also investigate the baryon-meson and baryon-baryon systems and consider the SU(3) breaking effect in their flavor wave functions. We generalize our isospin criterion of the formation of heavy flavor dihadron molecules to the $U/V$ spin case. For a specific heavy flavor meson-meson, baryon-meson, or baryon-baryon system, the interactions for the states with the same flavor and spin matrix elements can be related by a generalized flavor-spin symmetry.