I have, for several firmware versions now, had issues with light state tracking. This used to work correctly at some point in the past. Using the local API, I could issue an API command to turn off the light, and if it was already off there would be no action (expected behavior). But now, whenever I make an API call to turn on or off the light, it just toggles it, regardless of the state. This is really annoying when I run my “go to sleep” automation routine and it turns all the other lights in the house off, then turns on my fan light (right above my head) at full brightness.
I have enabled the “Trust Tracked State” option for both of my fans, and I can see that it’s enabled when I query the API to get device properties. It just plain doesn’t work though.
Is anybody else running into this same issue? Are there any workarounds, or is a fix coming soon? I was making good progress on developing my integration for Home Assistant, but my hub is pretty useless to me if it just randomly toggles lights and I can’t actually tell if they’re on or off.
I’m running v2.10.8-beta on my hub currently.
Thanks in advance!