Letting your pup outside every hour or two gets old, but it’s the simplest way to prevent accidents from happening. If you’ve ever wondered why some people choose to get new puppies during the summer or when they’re on vacation it probably has to do with potty training. If you’ve house training a dog before you know how much time & commitment it takes.
It's not so much the dog doesn't listen, more that he doesn't understand what you want him to do. Go back to basics and don't punish him when he toilets indoors. Double your vigilance and take every opportunity to put him outside to toilet. The crucial thing is to be present when he does toilet in the correct place, so that you can reward him. This makes him keener to repeat the performance to get another treat. Conversely, if you have been telling him off for indoor accidents he may already feel inhibited about going to the toilet in your presence, including when he goes outdoors. This is one reason why it's important not to punish for inappropriate toileting.
Step 1: Using either a laser pointer or touch stick, get your dog in the habit of jumping up to touch the light switch. It is best to have him jump up with his pads on the wall (instead of his claws) touching the switch with his nose. I used a laser pointer here, because I would play with it as a game, knowing that he would really go after it—even if it's on a wall.
Don’t punish your dog if they pee inside. Regardless of all those old training ideas punishment isn’t a good deterrent for house training. Yelling at your dog after the fact just confuses them and makes them nervous around you. If you catch your did in the act you can try to get their attention & move them outdoors. If you’re successful & they continue going once you get outside praise them like crazy. Are dog head halters cruel?