![]() Within G Hub, navigate to Assignments > System > Launch Application > Add Application. The last step is to map our batch file to a macro key. ![]() Other manufacturers will have equivalent applications. This will enable us to program the Macro keys. Installing Logitech (or other manufacturer) control softwareįor Logitech keyboards we need to install the G Hub software. Save the file somewhere appropriate on your system with a. To get the entity_id of a device within HA, navigate to the device properties and look at the Entities section. This produces a lot of unformatted JSON output so we’re going to send it to a file.Ĭurl.exe -X POST -H "Authorization: Bearer " -H "Content-Type: application/json" -d "" The best way I found to query all the available domains and services was via the the /api/services endpoint. To trigger an action we need to to query the /api/services// endpoint. The HomeAssistant REST API documentation covers what is possible via the API. In the commands below, replace instances of with your HA token. With the access token we can now use simple curl.exe commands to make requests to to the API. Once enabled head over to your profile within the UI and create a Long Lived Access Token. Installing Logitech (or other manufacturer) control softwareĮnabling the API as is quick as adding api: to the configuration.yaml file.We will need to set up a few of things to make this work: While this is specific to Logitech keyboards I’m confident the same can done for other brands by substituting the correct software to program the keys, the rest of the steps will be identical. This proved to be rather painless but there are a few steps necessary so I wanted to throw up a short guide. I recently purchased a Logitech keyboard and while I didn’t particularly care for the macro keys I decided to look into whether I could program them to control HomeAssistant. Using Keyboard Macro Keys To Control HomeAssistant
0 Comments
Leave a Reply. |