Opening and Closing state to Cover Template

Hi,
I would like to have the possibility to specify opening and closing state in the value template for cover template.
As it is now it only supports:

Defines a template to get the state of the cover. Valid values are open / true or closed / false . [ value_template ]

So the case i would like to be able to use is:

        value_template: >-
          {% if is_state('cover.xxx', 'closing') %}
            closing
          {% elif is_state('cover.xxx', 'opening') %}
            opening
          {% elif is_state('binary_sensor.door_sensor', 'on') %}
            open
          {% else %}
            closed
          {% endif %}

This would be great. If this ever happens, please include opening and closing states in HomeKit implementation, the same way Homebridge does.