Nice hack :-), but I have two questions:
you used built-in airwick time-based (time selectable by a switch) mechanism. This devices have internal squirts counter for "detecting" empty spray, when counter reach programmed limit (is notified by fast led flashing) device stops "pushing" until you press manual release button (it just reset the counter). Did you had any problem with that?
I have never encountered such behaviour and have emptied few cans of spray on it in the past. This device is old few years, maybe new versions of devices have such thing but not old ones?
2. Did you test it only when dispenser is at the same water level in the tank (or a bit above)? I wonder if that will work when device is located below the tank with long "out" hose (about 1.5 meters) to the tank. I guess when fluid will flow slowly backwards (becouse of pump's leak) to the pump between squirts it will be unable get strict doses...
I have tested only with a pump on same level as water, ill do the test with long hose tommorow