Fan_speed capability min/max values

Hi everyone,

I have an app which uses the fan_speed capability. The capability options are below:

"capabilitiesOptions": {
  "fan_speed": {
    "min": 1,
    "max": 30,
    "step": 1,
    "units": "",
    "decimals": 0
  }
}

The slider in the device panel shows up correctly, however, the auto-generated Flow cards show 3000% instead of 30. It doesn’t seem to follow the units correctly, and the values are also incorrect (3000 instead of 30). Does anyone have a fix for this? Is it possible to disable auto-generation for Flow cards (while still using system capabilites)?

Athom believes that percentages range from 0 to 1, so try setting min to 0.01 and max to 0.3.

That said, it wouldn’t surprise me if they don’t check unit properly and think that it isn’t set when it’s an empty string (and default to %), so perhaps also try playing with that.