HomeKit sending power off signal even if TV is already off
If I have a TV (in TV Platform Mode) and I put that accessory in a scene that turns it off, it will send the power off signal even if the accessory itself is turned off prior to activating the scene.

It may have nothing to do with your plugin but I’ve been struggling with this for a while and I don’t know if this behavior is intended or not.