i do it the other way around. Systemd.timer reads temp from pi /proc, and sends it via mqtt channel to HA. There is dht22 driver in kernel that gives room temp also via proc.
do you have a link to some documentation on how to do this?
I can send you my script a bit later. Travelling now.