Slider Control on Vpin 2way communication

Hi Community
I am currently building a central heating control using an ESP32. Most of the project is functioning, however I have a slider widget on a virtual channel which sends a value (Required Temperature) successful to the ESP32. The problem is I have 2 physical buttons connected on to the ESP32, Temperature Required UP & Temperature Required DWM. I wish to send this data back to the dashboard so updating the Slider Widget. Is this possible or do I need to change direction? Any help would be much appreciated.