Flux_led turns switch state back off

ok hopefully someone can help me out i am new to the flux led intergration i have it seeing the light but whenever i turn on the light in HA the state goes right back to off but the light stays on. I am confused and not sure how to diagnose this any advise or ideas would be fgreat