\(\Leftrightarrow\frac{\sqrt{3}}{2}sinx+\frac{1}{2}cosx=\frac{2m+1}{2}\)
\(\Leftrightarrow sin\left(x+\frac{\pi}{6}\right)=\frac{2m+1}{2}\)
Do \(x\in\left(-\frac{\pi}{6};\frac{5\pi}{6}\right)\Rightarrow x+\frac{\pi}{6}\in\left(0;\pi\right)\)
\(\Rightarrow0< sin\left(x+\frac{\pi}{6}\right)\le1\)
\(\Rightarrow0< \frac{2m+1}{2}\le1\)
\(\Rightarrow-\frac{1}{2}< m\le\frac{1}{2}\)