How to turn on light and set brightness

I have a Wiz SHRGBC spotlight that I’d like to set the brightness for when it is turned on. However, when I call light.turn_on and give brightness_pct: 50, the light does turn on, but comes on at the last brightness level that was set. I’ve tested a couple of times using the Developer>Services page. I set the light to 26%, turn it off, then use the developer page to call light.turn_on with brightness_pct: 1, and the light comes back on at 26%.

I just (yesterday) updated to 2024.2.1. The automation I have for this was working before the upgrade. But, right after the upgrade I started making some modifications to the automation to set different brightness levels at different times. That’s when I noticed the odd behaviour.

Thinking I screwed up the automation, I started testing with the developer page, and was when I noticed the brightness not matching what the service called for.

Any thoughts of what to try next?

Thanks

If it worked before the upgrade but not afterwards then it might be due to a bug in 2024.2.1.

I suggest you upgrade to 2024.2.2 and check if the problem still exists. If it does, you should report it as an Issue in Home Assistant’s GitHub Core repository. Here are the current open Issues for the Wiz integration. None seem to be related to the problem you described but double check before posting another Issue.

Wiz open issues

Here’s a list of PRs (Pull Requests) involving the Wiz integration. I see that some were implemented very recently so they may have been included in 2024.2.2 or will be included in the next patch release.

Wiz closed PRs