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?
- Automation that enables/disables the REST sensor.
- Automation that changes scan_interval from very long to short when switched on.
- Looping Automation that triggers the REST sensor to manually update only when switched on.