Problems running a triac dimmer off a UPS
Your UPS likely has a square (non-sinewave) output. The square output likely exceeds the dv/dt rating of the triac, causing it to turn on. You might want to consider a snubbing network to reduce the dv/dt transients.