Okay, I tried my best to find the answer to a seemingly simple task but being so new to Home Assistant I’m getting nowhere! Trying to move from using a VeraEdge that’s running out of steam so I’ve been testing a few automations, etc with HA. I’ve been able to do a few things but can’t get the basics straightened out.
I use a Harmony Elite Remote so I added it with the Logitech Harmony Integration. That automatically created a device and entities which are all my activities. At this point I can’t even remember how but I added a “Harmony Card” to my dashboard that has a selector for those activities and on/off slider.
I’d actually like to add a volume slider to the bottom of that card that would control the volume of my preamp but after reading instructions, watching videos, etc. I’m just trying to add two buttons for now, one for volume up and one for volume down.
My biggest issue is I’m having problems understanding the whole process and what leads to what. I understand the whole concept of being able to do lots of stuff with the UI (which places code into yaml files) and/or just editing the files directly. I also know how to get the info I need from the harmony_xxxxxx.conf file.
I was trying to follow a youtube vid so I entered my info (sample script below) into the scripts.yaml file (which was empty) but had trouble getting it to pass the configuration check. Finally got it to pass config check but when I look in the scripts section of the UI it’s in red and when I click it gives this error:
Script is unavailable
Actions: template value is None for dictionary value @ data[0][‘data’]
whatever the heck that means! So then I somehow created a script just called “volume up” using the UI which placed similar but different data in the script file, that apparently/maybe works because it shows up fine, not in red. So I could probably work off that but how do I now actually use that script. I tried tying it to an input button but of course I can’t get that to work either! Any hints??
Sample script file
turn_preamp_volume_up:
alias: Turn PreAmp Volume Up
sequence:
- service: remote.send_command
data:
entity_id: remote.livingroomhub
command:
- VolumeUp
device: “Yamaha Preamp”
turn_preamp_volume_down:
alias: Turn PreAmp Volume Down
sequence:
- service: remote.send_command
data:
entity_id: remote.livingroomhub
command:
- VolumeDown
device: “Yamaha Preamp”