Is it possible to "construct" a single fan device from multiple entities/commands?

I have a number of z-wave fan controllers that work great, but I went to install an additional one for my patio fan and found that I couldn’t because of physical space limitations in the canopy of the fan. (I use the Inovelli Fan+Light switch, it comes with a canopy module.)

So for the moment, I installed a simple on/off z-wave wall switch for the fan, and that works fine. But I’m wondering if I can make this better, by “constructing” a fan device from a combination of commands in Home Assistant (similar to how you can assemble a media player using Universal Media Player - Home Assistant ).

The fan has a built-in RF module with a remote. I have a Broadlink RM4 that can learn and send RF signals, which I can command from Home Assistant. So if I have the Broadlink learn all the necessary speed commands from the original fan remote, is it possible to assemble a fan device that (when exposed via Lovelace or Homekit) looks like any other fan control?

I would need to track state on it as well, which I think could be done by somehow setting a state value when each RF command is triggered by Home Assistant (obviously this only works as long as the original remote is not used).

It feels like this should be possible, but I’m not sure how to go about it. Any advice would be appreciated.

Check out the Template Fan integration. It allows you to create fan entities that combine integrations and provides the ability to run scripts or invoke services to activate common fan commands.

1 Like

That seems to be what I was looking for! Thanks, I’m going to dive in.