Setup routines on macOS to mimic Samsung routines

Is there a way, or a free tool available to create, routines on macOS just like Samsung allows to create routines? For example, my custom Samsung routines are: Switch off charging when battery reaches 95% Shoutout "Low battery" when battery=10 When I connect to office wifi: set speaker=30%, headphone=100%, system sound=20% When geo-location=home: set volume=100%, battery-optimization=false if video is playing, set notification sound to mute I am looking for similar feature/tool in macOS to perform tasks like: Shoutout “Fully charged” if mac battery=100 and ‘low battery’ when battery=15 Mute the laptop speaker if my wifi=adobe Turn off charging if battery=95%

Setup routines on macOS to mimic Samsung routines

Is there a way, or a free tool available to create, routines on macOS just like Samsung allows to create routines?

For example, my custom Samsung routines are:

  • Switch off charging when battery reaches 95%
  • Shoutout "Low battery" when battery=10
  • When I connect to office wifi: set speaker=30%, headphone=100%, system sound=20%
  • When geo-location=home: set volume=100%, battery-optimization=false
  • if video is playing, set notification sound to mute

I am looking for similar feature/tool in macOS to perform tasks like:

  • Shoutout “Fully charged” if mac battery=100 and ‘low battery’ when
  • battery=15 Mute the laptop speaker if my wifi=adobe
  • Turn off charging if battery=95%