There are many, MANY posts on here about integrating fireplaces but nobody says it better than @JDRoberts:
And I will add my stock response…IT’S FIRE!!! WTF ARE YOU THINKING???
In short, don’t do it…you’ll most likely void your home owner’s insurance and could be held responsible if it causes damage to anyone else’s home. Take a quick read through the forum about lights turning on unexpectedly. Would you want that to happen with your fireplace? I think not. The only thing worse is the idea of automating a garbage disposal. That still wins the cake.