Want to fix the issue in light emit value change

Hi everybody.
How are you these days?
I am trying on my project https://fan-showing.herokuapp.com/.
and I faced a complicated problem.
when I press the light toggle(top right button) button at first after loading the model, It doesn’t work well.
But after a pressing more than once it works well.
I want to know about why it does and how can I fix it.
Thanks.

Hi @ProminenceHome - I am not an API expert but it appears that the model loads with the light ON and the initial button state for the light is OFF, so when you press it the first time it asks the light to turn ON but it is already ON.

Maybe setting the light state to OFF on model load would help?