Sending commands to HomeKit from the backround of a custom application

I have a custom device that connects to my swift app over BLE. The device can send commands, which need to be forwarded to HomeKit. This works when the app is open, but when it is in the background, I get: "Error turning off light: Missing entitlement for API." Is there a way to forward these controls from my app to HomeKit from the appplications background?

Sending commands to HomeKit from the backround of a custom application
 
 
Q