I want to get a new stove and when I pulled out the old stove I found the gas line within a hole in the wall and the gas line had a metal bar on its side. I am thinking this bar is a gas valve but I am not sure I haven't seen a pic of a gas valve that looks like this on the internet. Also when I tried to move it it seems to jiggle a little but I couldn't get it to move. Has anyone seen this before and can let me know if it is the gas valve and how I can get it unstuck to move it to turn off the gas?
Yes it's a gas valve. Sometimes they become very stiff when they aren't operated for a long time. In the photo you posted, notice the little tab sticking down from the silver lever. That's a stopper; it limits the rotation of the lever. Make sure you're attempting to rotate the lever in the correct direction, ie not pushing against that limiter (or another less visible one).
The shutoff valve at an appliance should work reliably so that gas can be shut off in case of emergency (or convenience, as in the case of replacing an appliance). I suggest the following:
- Learn where your gas meter and main shutoff are located and how to operate that shutoff.
- Be prepared to replace this appliance shutoff valve - have parts and tools on hand, or a plumber identified, and work at a time when you can deal with having a gas outage for a few hours at least.
- Attempt to turn the lever on the valve with a wrench. If it turns easy, operates properly, and doesn't start leaking out the valve stem then you're all done. If it breaks, leaks, or things otherwise go badly then at least you went into it prepared with a recovery plan!
I am very much in favor of DIY. But gas, not so much. "Little" mistakes/can't-quite-finish-the-job situations with water very often mean "a drip in a bucket until the plumber gets there". Similar issues with electrical mean "turn off or disconnect one circuit until the electrician gets there". But with gas there is (a) often no easy way to shut off the entire supply (which might mean no heat/hot water too, but at least be safe) and (b) you can't catch a gas leak in a bucket like a water leak.
While I can't say if it is to code or not, my gut feeling is that there should never be any operable valves, and almost never any joints of any type inside the wall. Which is what you have here.
In addition, there may be firestop issues - drywall is relatively fire resistant and is relied upon to delay a fire from making it from one room to another, particularly from garages to habitable spaces. I don't if that is the case here, but if it is then this big hole is a big problem.
Based on this, I suspect that the original installation was for the hot water heater and the gas line to the stove was added later (which is not that unusual), and that the line to the stove was not installed properly.
My recommendation is to get a qualified plumber/gas-fitter (not all plumbers do gas, and the licensing varies by jurisdiction) in, to do the following:
- Disconnect the flexible line.
- Replace the rigid line from the hot water heater with a longer line that goes all the way through the wall. This might be "replace all the way to the end" or it might be "cut off a few inches on the other side of the wall and couple a new line to the end of the old line.
- Install a new cutoff valve and an appropriately sized flexible line.
- Install the new stove.
- Leak check everything.
The last part - installation of the new stove - anyone can do when you have good flexible line and a functioning valve. The advantage of (this time) letting the plumber do it is that he can check everything for leaks all at one time.
After that, you can do the drywall repairs yourself. If the room on the other side is another regular room in the house then I would just patch up to 1" or so around the new line. If the other side is a garage (or other room that requires a proper firestop) then you should find out the rules and the recommended procedure to seal around the gas line.