HA remote commands don't work if they are case sensitive

bowlingbeeg's Avatar Topic Author
User User
  • Posts: 248
  • Thanks: 33

HA remote commands don't work if they are case sensitive

2 years 7 months ago
#600
I believe I've found an issue with the HA gateway driver.  I have a Zidoo Z9X media player and it seems that the remote.z9x driver in HA is case sensitive.  So it needs the command to be Key.Right but the HA gateway driver appears to lower case the command so it gets sent as key.right.  I've attached the details from the log below.

10/02/2024 23:57:12.57 · DEBUG · Server.doCommand - AV|25~Remote~Key.Right 
10/02/2024 23:57:12.57 · DEBUG · HAGateway.doCommand - Cmd=[25~Remote~Key.Right] Client=[dashboard-fx-l367] 
10/02/2024 23:57:12.57 · DEBUG · HAGateway.Event - call_service from LOCAL context is Context: 01HPBBVE06PWCP32HF7RV6EVEH 
10/02/2024 23:57:12.57 · DEBUG · HAGateway.RX Domain Event - {
  "domain": "remote",
  "service": "send_command",
  "service_data": {
    "entity_id": "remote.z9x",
    "command": "key.right"
  }

Please Log in or Create an account to join the conversation.

David Li's Avatar
Admin Admin
  • Posts: 1027
  • Thanks: 99

Re: HA remote commands don't work if they are case sensitive

2 years 7 months ago
#604
I believe I've found an issue with the HA gateway driver.  I have a Zidoo Z9X media player and it seems that the remote.z9x driver in HA is case sensitive.  So it needs the command to be Key.Right but the HA gateway driver appears to lower case the command so it gets sent as key.right.  I've attached the details from the log below.

10/02/2024 23:57:12.57 · DEBUG · Server.doCommand - AV|25~Remote~Key.Right 
10/02/2024 23:57:12.57 · DEBUG · HAGateway.doCommand - Cmd=[25~Remote~Key.Right] Client=[dashboard-fx-l367] 
10/02/2024 23:57:12.57 · DEBUG · HAGateway.Event - call_service from LOCAL context is Context: 01HPBBVE06PWCP32HF7RV6EVEH 
10/02/2024 23:57:12.57 · DEBUG · HAGateway.RX Domain Event - {
  "domain": "remote",
  "service": "send_command",
  "service_data": {
    "entity_id": "remote.z9x",
    "command": "key.right"
  }
good catch!  We'll take a look and advise.

Please Log in or Create an account to join the conversation.

davep's Avatar
Admin Admin
  • Posts: 371
  • Thanks: 98

Re: HA remote commands don't work if they are case sensitive

2 years 7 months ago
#615
I just updated the HAGateway driver to remove the forced lowercase issue. Give it a test and thanks for finding it,
The following user(s) said Thank You: bowlingbeeg

Please Log in or Create an account to join the conversation.

bowlingbeeg's Avatar Topic Author
User User
  • Posts: 248
  • Thanks: 33

Re: HA remote commands don't work if they are case sensitive

2 years 7 months ago
#617
Thanks, that fixed it!

Please Log in or Create an account to join the conversation.

stanger89's Avatar
User User
  • Posts: 74
  • Thanks: 5

Re: HA remote commands don't work if they are case sensitive

2 years 7 months ago
#674
I wonder if my trouble changing inputs on my Anthem through HA is related to this.  Do you know how to find out what the right command to HA is?

Please Log in or Create an account to join the conversation.

bowlingbeeg's Avatar Topic Author
User User
  • Posts: 248
  • Thanks: 33

Re: HA remote commands don't work if they are case sensitive

2 years 7 months ago
#677
You'll have to look into the HA component to see what the commands are. Based on my quick look it appears that the athem driver uses the media_player entity to set the source and I think it's a number you provide. At least that's they way the anthemav python module reads.

Please Log in or Create an account to join the conversation.

Time to create page: 0.297 seconds