Just thought I’d share the results of my recent playing around with Node-RED. Hopefully someone will find this approach useful for sending sensor data from Node-RED to HASS:
https://webworxshop.com/2018/05/08/home-assistant-mqtt-discovery-sensors-in-node-red