- Posts: 248
- Thank you received: 33
HA remote commands don't work if they are case sensitive
- bowlingbeeg
- Topic Author
- Away
- User
-
Less
More
2 years 5 months ago #600
by bowlingbeeg
HA remote commands don't work if they are case sensitive was created 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"
}
}
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.
- David Li
- Offline
- Admin
-
Less
More
- Posts: 1019
- Thank you received: 99
2 years 5 months ago #604
by David Li
Replied by David Li on topic HA remote commands don't work if they are case sensitive
good catch! We'll take a look and advise.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.
- davep
- Offline
- Admin
-
Less
More
- Posts: 367
- Thank you received: 96
2 years 5 months ago #615
by davep
Replied by davep on topic HA remote commands don't work if they are case sensitive
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.
- bowlingbeeg
- Topic Author
- Away
- User
-
Less
More
- Posts: 248
- Thank you received: 33
2 years 5 months ago #617
by bowlingbeeg
Replied by bowlingbeeg on topic HA remote commands don't work if they are case sensitive
Thanks, that fixed it!
Please Log in to join the conversation.
- stanger89
- Offline
- User
-
Less
More
- Posts: 74
- Thank you received: 5
2 years 5 months ago #674
by stanger89
Replied by stanger89 on topic HA remote commands don't work if they are case sensitive
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.
- bowlingbeeg
- Topic Author
- Away
- User
-
Less
More
- Posts: 248
- Thank you received: 33
2 years 5 months ago #677
by bowlingbeeg
Replied by bowlingbeeg on topic HA remote commands don't work if they are case sensitive
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.218 seconds