I have a Hampton Bay 99432 Zigbee fan controller with 4 speeds (low, medium, high, on). However the preset modes are not being exposed properly from Z2M to HA. So I thought a template fan would do the trick to transform percentages into modes to put on a dashboard.
Can we not make a 4 speed template fan? I took the PRESETS MODE TEMPLATE from the template fan documentation and altered it to rename and add a 4th speed. But I get errors when I check my configuration.
However, I was hoping that it would create fan speed buttons instead of a slider with a select menu. I want it to be like the top Ceiling Fan example, not the bottom one.
Please consider marking my post above with the Solution tag. It will automatically place a check-mark next to the topic’s title which indicates to others that the topic has been solved. This helps other users find answers to similar questions.
The new tile card. I just figured out you can change the preset modes from a select dropdown to icons, but I’m not sure where to specify what icons to use for each mode. Right now they just show up as dots for every mode. Although they do work.
Another data point. If I use the example from the template fans page that has 3 speeds instead of 4, the icons appear. So something about deviating from 3 speeds in the template causes this issue.
I suggest you submit it as an Issue in Home Assistant’s Github Frontend repository for the Tile card. Post a simplified Template Fan configuration with four modes and a screenshot of a Tile card showing the resulting 4 buttons having no icons. You may also wish to include the link to the Fan Preset Modes documentation which clearly shows a Tile card displaying 4 modes and 4 icons.