You can typically find the location ID of your keyboard with this command
hidutil list | grep -i keyboard | awk '{print $3}' | sort -u | grep -v 0x0
Replace this part of the bash command to your own keyboard location:
<string>{"LocationID": 0xa5}</string>