Mapping Octoprint Print Progress to Homekit Automation

Hey everyone! I’m looking to integrate my Octoprint setup with Homekit in a fun way. I’ve got Octoprint connected to Home Assistant, and I want to create an entity that maps the print progress to a Homekit device. The goal is to use this device in a Homekit automation to control the printer lights, which are IKEA Tradfri. I’m planning to migrate these to a Dirigera hub, but it doesn’t support local control yet, so I need a workaround.

I was thinking of defining a template sensor based on the Octoprint progress sensor. But I’m not sure what type of Homekit accessory would work best for this. Maybe a “fake” Homekit light that turns on when the print starts and off when it finishes? This light could then be used in an automation to control the actual printer lights.

Has anyone tried something similar? Any advice on how to set this up or alternative ideas? I’d love to hear your thoughts! Thanks in advance for your help. :blush: