Setup routines on mac like Samsung routines

Is there a way or a free tool available to create routines on mac 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-optmization=false if video is playing, set notification sound to mute I am looknig for similar feature/tool in mac to perform tasks like: Shoutout “Fully charged” if mac battery=100 and ‘low battery’ when battery=15 Mute my laptop speaker if my wifi=adobe Turn off charging if battery=95

Setup routines on mac like Samsung routines

Is there a way or a free tool available to create routines on mac 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-optmization=false
  • if video is playing, set notification sound to mute

I am looknig for similar feature/tool in mac to perform tasks like:

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