Checking power state of Home Assistant device

Basic Information:

Printer Model: Ender 3v2
MCU / Printerboard: 4.2.2
klippy.log

Fill out above information and in all cases attach your klippy.log file. Pasting your printer.cfg is not needed

Describe your issue:

I was trying to figure out, if it’s possible to check the power state of a device connected through Home Assistant? Then, depending on that state, use it to prevent a print from starting?