![]() BetterTouchTool is a straightforward software application that allows you to customize various input devices on your Mac. Set entity to "YOURENTITY_ID" - eg "switch. Download BetterTouchTool 4 macOS full version program free setup. Tell application "JSON Helper" to set EntityState to State of (read JSON from (do shell script "curl -X GET -H \"Authorization: Bearer " & authcode & "\" -H \"Content-Type: application/json\" " & hasite & "/api/states/" & entity)) Tell application "BetterTouchTool" to set authcode to get_string_variable "authcode" This is 8 and does what you need but BTT is probably a better deal. Its current pricing is 8.50 for a standard license, 20.50 for a lifetime license. Tell application "BetterTouchTool" to set hasite to get_string_variable "hasite" BTT is pretty reasonably priced for what it does and youd likely find many other things to use it for. This app is really getting nice and I need to start working on some more advanced configurations. ![]() Note: if you’re never tried BetterTouchTool, you can download a trail version here (affiliate link. 333 of BetterTouchTool, but this version has been stable and working well. Once they’re set you just need to retrieve the variables, and set your entity_id & which service you want to use. As a matter of fact, if you don’t like the redesign, you can navigate to the BTT icon in your Mac’s menu bar and open the Old Configuration which even contains newer actions that you create version 3.0. ![]() I’ve actually created a button prompts for me to enter a new domain name and authcode incase I want to change either. Tell application "BetterTouchTool" to set_persistent_string_variable authcode to "LONGLIVETOKEN" Just create a Long-Lived Access Token in your home assistant.ĮDIT: In case anyone else decides to use this and wants to set up a lot of buttons/widgets, it’s actually alot easier to use persistent string variables and copy/paste everything, especially if you ever end up changing your HA domain or the auth codesįirst run the following to set your variables: tell application "BetterTouchTool" to set_persistent_string_variable hasite to "YOURDOMAIN" BetterTouchTool is a great, feature packed app that allows you to configure many gestures for your Magic Mouse (1 & 2), Macbook Trackpad and Magic Trackpad (1 & 2) and also Mouse Gestures for normal mice.- BetterTouchTool is the most popular Mac alternative to Trackpad++.- BetterTouchTool is the most popular commercial alternative to Trackpad++. I’ve now got them to show/toggle my alarm system, lights, tv, speaker, aircon, house temp. If you’re using BTT, it really is pretty easy as long as you have JSON Helper installed on your macbook.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |