In the USA we have a few common idioms for indicating to someone they are being hypocritical, with the sub-context being that they are contradicting their own teachings or personal code for living.
For example: An author of self-help book on using logic instead of emotion is getting very angry over a trivial matter. Someone might reply to them:
"You should read your own book"
Note: The specific verb "read" and the specific verb "book" is not important here. It's the phrase "You should [verb] your own [noun]" that is the overall or meta-pattern for the sentiment. ("Eat your own dog food", etc.)
It's a way of expressing the English idiom "practice what you preach" but with the very clear intent of throwing someone's own dogma in their face to indicate their extreme hypocrisy. Is there a German equivalent?