I first thought maybe it was a problem with my script, so I tested it just sending directly to the service, and it still fails.
ChannelUp, ChannelDown, are fine, but random other things fail.
any of the “Number” commands (Number0, Number1, etc) fail, PrevChannel, etc, all fail.
Is there some other place I should be getting these command names? What am I doing wrong?
There are no errors in the logs, it shows them sending all commands.
Here’s the service data i’m sending. When I do “ChannelUp” or “ChannelDown” it’s fine, but most other commands fail.
{"entity_id" : "remote.livingroom", "device" : "44212737", "command" : "ChannelUp"}
Here’s my harmony_livingroom.conf:
44212737 - Direct TV DVR
PowerOff
PowerOn
PowerToggle
NumberEnter
Hyphen
Number0
Number1
Number2
Number3
Number4
Number5
Number6
Number7
Number8
Number9
PrevChannel
ChannelDown
ChannelUp
DirectionDown
DirectionLeft
DirectionRight
DirectionUp
Select
Stop
Play
Rewind
Pause
FastForward
Record
SkipBackward
SkipForward
Return
Menu
List
Green
Red
Blue
Yellow
Guide
Info
PageDown
PageUp
Exit
Active
Format
RedCircle
Well there we go, figured out the names were just different that what was in the config file. I went into my Harmony configuration, went to the button mapping, and it listed a different name (in this case, just the number 0, 2, 5, etc) and used those, and they work.
I’ll leave this here in case others find this with the search.
Now I’m just working on getting them to send quick enough to be registered. If anyone has any tips on that, let me know.
2 Likes
In case anyone comes across this trying to figure out how to change channels with the Harmony component, I wasn’t able to find a way to speed up the component, but using a CLI argument and harmonyhub-cli I was able to send multiple commands in one session and everything was easy peasy.
It seems like the Component takes the following pattern:
Connect to hub
Send Number
Disconnect from hub
Connect to hub
Send number
Disconnect from hub
Connect to hub
send number
Disconnect from hub
…
You see the pattern. Using CLI it lets you send more than one command per session, (ie channel numbers, 2-0-6-enter). Seems like a good alternative, and should do what you need. If I ever get more free time I may look into the code of the harmony component, but with a new kid at home (and this new cool toy called Homeassistant) i’m not sure I"ll have that time in the near future.