There are two scripts here which can aid in managing the physical power state of a CUPS printer in Home Assistant.
See here for usage: https://github.com/tigattack/docker-cups-canon-airprint
This script POST's the idle status of your printer(s) to the defined webhook URL. It is designed to be run by a scheduler (such as cron or a basic loop & sleep in a bash script).