MQTT auto discovery with a 'list' value

So the fan implementation supports a speeds config variable that can provide a ‘list’ of the supported speeds this fan is capable of running at

speeds
(string | list)(Optional)
Valid entries are off , low , medium and high .

What do I actually include there as the value for type (string | list) for it to be recognised as a list by HA ? Tried a few variations , here’s a simple try with comma separated values but it’s not recognised as a list.

'“speeds”: “low, high, off”
'“speeds”: “-low -high -on -off -auto” … tried hyphens too

The yaml example at the end shows

speeds:

  •  - "off"*
    
  •  - low*
    
  •  - medium*
    
  •  - high*

In yaml form I think it would just be any representation of an array of strings (or a single value string). In json form

“speeds”: [“low”,”medium”,”high”]

You may be running into an issue with “auto”. I think the only valid values for those elements of the array are off, low, medium, or high.

Many thanks Scott that works, including with ‘auto’ although I have no idea yet if ‘auto’ is useful - it does return that value to MQTT as a command though if you select it.
image

Kevin