Why Invalid Step Error?

Error: volume_set InvalidStepError: 0.3 is not divisible by step 0.1 (invalid_step)

Some Homey users got this problem while device updates data and tries to set volume. After some testing, I realized that it does not work at 0.2, 0.4, 0.6, 0.8.

"capabilitiesOptions": {
        "volume_set": {
            "step": 0.1
        }
    },

state.volume is always from 0 to 1 with step 0.1

if ("volume" in state) await this.setCapabilityValue("volume_set", state.volume);

I do have a question back, as the default step size is already 0.01 (percentage based, or rather 2 decimals), so making it 0.1 is kinda weird (only increase/decrease by 10% steps?).

But in theorie 0.1 should work indeed, have no real answer there.

Yes only increase/decrease on 10% to make some “visual steps” in UI, since App I making only support volume levels from 0 to 10.

I found a way to make it work for all users, just changed float values volume on 0 10 with step 1 and it works.

Personally for me even 0 1 with step 0.1 works fine, but some users got error, idk why