Remember yorkies are high energy dogs, and if he spends the day doing nothing and bored, when you get back from work and ready to go to bed he still have a full tank of gas ready to be burn, maybe he just want to keep playing a little bit more, thats why he barks at you. Im pretty sure that a walk around the block will make him tired and sleepy

.
good luck