Possibility to use 2 button switch as dimmer/to increase or decrease a parameter

so i have those ikea dimmers and i was wondering if there is a way (or a virtual device) to configure them to increase or decrease a reading (like increase temp on a virtual thermostat by 1 if i press one button and decrease by 1 if i press the other)
all i found until now are ways to press and set a specific reading (like press button 1 set temp to 20°)
i am not at all fixed on a thermostat, i was just wondering if it is possible to increase or decrease something with multiple presses so i can then trigger things in google home with this reading.
i hope i made clear what i am trying to do :slight_smile: