Hi,
I just published a small library that I use with Raspberry PI (but works also in Windows) for building devices that interact with Home Assistant using MQTT protocol.
One of the interesting thing is the support for auto configuration: no need to "play" with YAML!
For now it supports binary sensor, button, cover, device trigger, fan, light, lock, sensor, switch, text, update and valve.
https://github.com/NicolaP8/mqtt-devices-for-home-assistantBest regards
Nicola
Credits to the very good MQTT Client Component
https://github.com/prof7bit/fpc-mqtt-client