WTH - Actual desk height instead of percentage

Kind of mentioned already as a feature request by another HA user but I stumbled upon this one too recently.

I have an IKEA Idasen desk where the height is adjustable. In HA this height is based on a percentage instead of the actual height. I would love to see this changed into real height!

I don’t know if this also falls under low hanging fruit too, but I’ll throw it on the table: pre-defined heights. Variables you can set on which you can press a button so the desk aligns with the pre-defined height. This makes it soo much easier to set the height of a desk by just pressing a button.

Previous topic: IKEA Idasen Desk Plugin - use cm rather than percentage for more granular control - #2 by hcassus

you can use a template to change it. I know its a work around but it will work with all desks and not just specific ones.

template:
  - sensor:
      - name: "Desk Height"
        unit_of_measurement: "cm" # Or inches, depending on your unit
        state: >
          {% set min_height = 70 %} # Minimum desk height in cm
          {% set max_height = 120 %} # Maximum desk height in cm
          {% set percentage = states('sensor.desk_percentage') | float(0) %} # Assuming you have a sensor for the percentage
          {{ (min_height + (max_height - min_height) * (percentage / 100)) | round(2) }}