A Shortcut to turn off a Home Automation

Is there a way to create a Shortcut (or Siri Shortcut) to enable or disable a Home Automation? Not to be indelicate, but there is a certain room in the house that occasionally I wish to know when the Hue light is turned off and is thus unoccupied. I don’t want my automation to activate every time the light turns off, just when I need it. Ideas?