Broadlink continuous IR blast / ‘long press’

Hi all,

Does anyone know of a way to to effectively do a long press for x seconds with a broadlink IR blaster? Continuously sending IR packets.

The intent is to ‘hold down’ the volume key on my TV.

I have a script I’ve set to blast 5 times for a similar effect and that’s fine, but I’m just wanting to go bigger and there doesn’t appear to be an easy way to ‘repeat script x times’

If anyone knows any secrets let me know :slight_smile:

Cheers,

Linton

I have had a problem with my Philips tv to turn on, (all other commands like turn off, change channel were fine), what solved the problem was that i have insterted the code twice into HA config file.

I solved the same problem creating a python script, and I exposed it via IFTTT so I can say to Google Assistant to lower or increase volume for X:

volume = int(data.get('volume'))
while (volume > 0) :
hass.services.call('script', 'bravia_vol_up', {"entity_id":"script.bravia_vol_up"})
    time.sleep(1)
    volume = volume - 1