

To understand more about ist, you can read this documentation. Next, we would need a launchd or a cron (in Linux terms) to execute the AppleScript we've just created in intervals. It checks if the battery percentage is greater/less than the target values, then it will send a webhook to IFTTT maker url to trigger the command for your smart plug/smart power strip.It gets the battery percentage using shell script.it would like something like this: " end if.to get this, go to your account > services > WebHooks > Documentation.Get your maker webhook url via maker documentation.Select your smart plug integration for Then That condition.your machine to the Power Automate cloud and harness the full power of robotic process automation (RPA). Select WebHook service for If This condition Avalonia XPF Run WPF Apps on macOS and Linux.Smart Plug or Smart Power Strip with individual control that has IFTTT support.You can also do this with a smart plug that has IFTTT support if you just want one specifically for your MacBook. To achieve what I want, I decided to buy a cheap Smart Power Strip that has individual control and supports IFTTT. So if your in the same boat as me, feel free to follow the guide. Lastly, I'm lazy to turn on/off my charger every time my battery is full or low. This is just solely my preference, I don't like leaving my MacBook plugged in all the time, also I want to cycle my battery properly to prolong battery life(?).

I know MacOS already has a smart battery management.
