Not sure if this is a dumb question but ... inline sprinkler / irrigation valves, the sort turned on and off by low voltage signals from a controller, are typically installed in boxes in the ground, in pipes running horizontally, with the valve top pointing up. Is that configuration essential? Or would they work equally well if installed in pipes running vertically, with the top of the valve pointing out from a wall? Or in pipes running horizontally against a wall, with the top of the valve pointing out from the wall? I read some product manuals online, and they don't mention this issue at all.
I have become pessimistic about battery-powered irrigation timers that you can attach directly to a hose bib because they seem to be generally junk. Either the valves fail, or the electronics fail, and they seldom last long. The $80 unit I bought last year is already leaking like crazy and headed for the trash can. Product reviews online tell the same stories over and over, so I am reluctant to throw away more money. My scheme was to make a DIY version out of quality parts, mounting a control unit inside the house, and setting up a box full of valves which can be plugged into the controller and attached to the hoses in spring, and detached and put away in the fall. The box would fit better in the available space if it could be oriented vertically against a wall, rather than placed flat on the ground.