I am looking to replace an existing manual flush valve which sits above an AS Washbrook urinal with a set of parts which include a sensor and a solenoid valve to control the water to flush the urinal - a kind of do it yourself automatic flush valve. Has anyone tried this before and if so what are the likely issues with codes? Basically I am looking to source parts from a home improvement store so I can swap out the manual valve.

Thanks in advance for your thoughts!