If the remote works only when held within a few feet of the motor unit rf interference is probably the problem.
Garage door opens intermittently loss of power.
2 the glass fuse on the circuit board has blown or popped.
How can i fix a garage door opener that loses power on the motor unit led is not my on door control when this occurs when motor unit loses power it will come back on when tapped sometime lights on safety sensors stay on.
See all the details in this video.
3 the circuit board itself is faulty.
Use these amazon affiliate links.
The solution is either to adjust the tracks on either side of the door grease the rollers adjust the spring or fix the track that the opener caddy runs along.
Lights on safety sensors do not always cause unit to work properly turn on unit light or stop unit when something is blocking crosses them even though lights on safety sensors remain on.
If there is too much resistance the garage door opener stops and usually blinks it s light once or twice as a warning.
4 a wire or wire harness is loose or burnt.
Locate and eliminate the source of the rf interference.
If the safety sensors and operator button are working correctly and no bad wiring or connections are found your issue may be with the control board in the garage door opener itself.
When the garage door opener works intermittently the logic board may be experiencing radio frequency rf interference from nearby sources such as security lights ham radios and some electronics.
Here is what may cause your garage door opener to not power on.