"num_repeats" service data attribute for Broadlink RM Switch

Hello Developers,

Kindly request you to add a “num_repeats” service data attribute on the “BROADLINK_SEND_PACKET” service for the Broadlink RM Switch component.

I saw that the Harmony Hub Remote already has one.

My necessity came from the fact that I have created an input_number component with slider to control the volume of my HiFi Receiver but haven’t figured out a way to loop the execution of the action based on the slider value using templates.

Probably a delay attribute will be needed also.

Thx!
Andrei

Yes! I would like this as well.

I would like to use it for setting my amp to an acceptable volume at boot time. So I would blast VolumeDown for 8 seconds (all the way down) then 3 seconds for an acceptable default volume. The num_repeats part would be very helpful.

It looks like the web-api already has this functionality, according to https://github.com/mjg59/python-broadlink/blob/1cea255dce6b966c1c7745a7a3327569735ed18e/protocol.md#sending-data

It would be a nice way to be able to change larger steps in volume and as requested above, a way to set a fixed volume by first reducing it to zero.

At the moment my workaround was to record long presses by the remote and create multiple switches.