Hah, I did the same thing in much the same way, though IIRC I didn't use a relay, I used the existing circuit board and found the place where their MCU output the signal to move the motor. Pretty nice hack, at least until I realized I didn't want a thing spraying perfume in my house.