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

More
2 years 5 months ago #600 by bowlingbeeg
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 to join the conversation.

More
2 years 5 months ago #604 by David Li

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 to join the conversation.

More
2 years 5 months ago #615 by davep
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 to join the conversation.

More
2 years 5 months ago #617 by bowlingbeeg
Thanks, that fixed it!

Please Log in to join the conversation.

More
2 years 5 months ago #674 by stanger89
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 to join the conversation.

More
2 years 5 months ago #677 by bowlingbeeg
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 to join the conversation.

Time to create page: 0.297 seconds