'Convert' scripts to device/entity

Hi All!

I have an interesting question, for which I did not find an answer yet, while I think it is not so special. If anybody can help me, please just go ahead :smile:

I have a standard room fan, with IR remote. I have a Logitech - Harmony Hub with which basically I can remote control the fan. As I have a configured Emulated Hue integration, I can control the fan with Home Assistant scripts, in fact I can expose those scripts to Google Assistant integration to voice control the fan. Until it almost everything fine.

I would like to make it a little bit sophisticated. As currently I have 5 standalone scripts for the functions of the fan (power/speed/oscillation/'natural breeze'/timer), I have to expose those scripts as standalone functions to Google Assistant. And here is the question:

Are there any possibilities to ‘convert’ my scripts/service commands into one compex/integrated device/entity, to expose it to Google Assistant instead of the 5 standalone functiuons? I mean, Google Assistant integration can handle fans by on/off/speed percentage/preset mode functions. If I could ‘convert’/emulate my corresponding 5 scripts to a virtual ‘fan’ device, I could expose that to Google Assistant instead of the 5 standalone script, and if Google Home could ‘see’ it as a ‘real’ fan, I could voice control it by it’s possibilities, what I mentioned above.

Are there any possibilities for it, or I just had too big dream? I know that the situation not so simple ans with the original IR remote solution I can not get back any state reports from the fan, so the control is just a simply one way solution, but maybe with some creative automations in my scripts I could handle this with acceptable compromises, but honestly I have not yet deep thinking into it before I really know that in theory is it possible or not at all.

Thanks for your efforts in advance!

1 Like

Template fan.

1 Like

More than perfect! Thanks for the fast response!