Dynamically control REST sensors scan_interval or enable/disable sensor?

I have 3D printer which doesn’t have a nice plugin, but there is a REST api available which I’m consuming data from. But as it only runs occasionally I don’t want HA to constantly try to update the sensor so I’m looking for alternative to solve that.

I can think of three solutions that all would work around the problem, but in slightly different way – all of them checks if the printer is powered on or not (Fibaro Wall Plug) and taks action accordingly. Would any of these solution actually be implementable and which would give the best result?

  1. Automation that enables/disables the REST sensor.
  2. Automation that changes scan_interval from very long to short when switched on.
  3. Looping Automation that triggers the REST sensor to manually update only when switched on.

You can possibly use the API url and add this into a curl command line? Then you can activate the command line along your automation (with/out a schedule)