Publish to MQTT with User inputed value

Hi all,

I am working on developing my own thermostat. I have an ESP32 Thing switching a Relay that closes the necessary signal to the control board of the furnace. I want the user to be able to set a value via the HA screen which gets posted to an MQTT Topic.

I see how to set a static value on push with MQTT button, but I don’t know how to go about changing that to a user inputted value. I am sure there are multiple answers. Any suggestions?

Thank you!

Might have answered my own question: Input Number - Home Assistant