He told police he said he had done repairs on the victim's ute for which he was not paid, so he took the tablets as payment.
Defence lawyer Ian Hard said Gernhoefer was not so much motivated by greed, but rather stupidity.
Judge Tom Broadmore said both of Gernhoefer's offences involved breaches of trust and dishonesty.
In relation to the tablets he said: "you rewarded them for their hospitality by stealing tablets".
He said it was not long ago that Gernhoefer served a term of imprisonment for offences of that kind.
He said Gernhoefer had shown remorse and motivation to avoid further offending and that it was possible Mr Gernhoefer's relationship and child would encourage him to lead a life which kept him out of jail, the judge said.
Gernhoefer was sentenced to three months' community detention and ordered to pay reparations of $800 and $250.