Harmony Volume Adjustment

Just thought folks would want to know In Home Assitant v0.45 dev as of a few days ago baloob has added parameters to the remote.send-command to allow repeated commands to be sent as well as a delay between sends. Just successfully turned up and down the volume on my receiver with Amazon Echo using the following simple srcipts:

volume_up:
  alias: Volume Up
  sequence:
    - service: remote.send_command
      data:
        entity_id: remote.harmony_hub
        command: VolumeUp
        device: 41849703
        num_repeats: 5
        delay_secs: 0.25
volume_down:
  alias: Volume Down
  sequence:
    - service: remote.send_command
      data:
        entity_id: remote.harmony_hub
        command: VolumeDown
        device: 41849703
        num_repeats: 5
        delay_secs: 0.25

I’m guessing one could also stick a template in there to support parameterized volume adjustment amount but 5 seems like a useful amount for my system.

2 Likes

This looks really useful, I’m going to try this in the next few days.

What voice commands are you using with Alexa to turn the volume up and down? In the past when I’ve tried it I remember having problems trying to say things like ‘Alexa turn on TV volume up/down’.

I wrote a little script that detects the current activity for Harmony and then sends the appropriate IR code for the device. Since I have a receiver that’s mostly a single device code, repeated 5 or so times.