Help with fan template for inovelli fan switch

Hello.

Working on a fan template and very likely making a silly mistake.

Use case: inovelli fan switch which I’m trying to expose to Homekit, but only want on/off and speed control.

What I have now can follow state changes and can turn the fan on/off, but cannot change the speed.

Thanks.

All you need for speed to work is percentage template and set percentage action, which you have.

1 Like

I think I see it now. I don’t have anything set for the percentage:

Maybe I’m misunderstanding the logic on this. If I put a number here, won’t it go to that percentage every time set fan percentage runs? The whole point is I want to be able to tell it what speed I want it at.

You have to supply a template for the percentage.

{{ percentage }}

Just that in place of:

{{ state_attr(“fan.back_porch_ceiling_fan” , “percentage”)
}}

in the percentage template box?

No, you literally just need to use the template I provided exactly as I wrote it.

the percentage variable has the slider percentage that you used. Your actions on the slider will populate that variable, so that’s what the template needs to output for the action.

I’m sorry, but where do I put that? Need to switch to yaml for the actions on set percentage section?

You can put a number in the slider for the action, then swap to yaml. Then in yaml put the template in quotes in place of the number.

e.g.

data:
  percentage: "{{ percentage }}"
1 Like

That’s what I was missing. Thank you!!

1 Like