Can we add valves_position to maxcube component

Hi Guys,
I have just moved from openhab to hass and loving it.
I have a full set of max thermostatic valves and my previous automation was using valves values to read their status. This is due to temperature is only updates when the valve is changing its position.
I have found that api for maxcube include valve_position but I’m not sure how to update the component to add valve_position into entities.

I have created custom component and added this line, just to test if valve position could be read as humidity but humidity is not coming up.

@property
def humidity(self):
    """Return the valve position."""
    device = self._cubehandle.cube.device_by_rf(self._rf_address)
    # Map and return current valve position
    return self.map_valve_position_hass(device.valve_position)

apology if this is very basic but im not a programmer…

1 Like

I have same situation.
I’ve also changer openhab to hass, :wink:

Parameter “valve_position” could us control boiler relay that he can turn on/off boiler when percent of sum of opened valves reached set limit.

1 Like

Hi have tried various changes but still unable to get the valve into the interface.
The api supports it but not the hass.

Hi. I found this existing discussion and would like to join the request to add a reading of the radiator valve opening percentage.
Or ask for advice on how to get these values, thank you in advance.