How to get the min/MAX state for COVERs entities?

Hi, i would like to have an entity representing the MAX (or min) opening state of a list of covers. I know about the min/max integration, but that does’t allow me to select covers.state in the list of entities it can monitor…

just to be clear, i have 3 cover A,B,C with (opening) state 10, 80, 30, i want the entity return 80.

also, i know cover have a strange state management like 0 does not exists and instead when a cover is 0% opened, the state is set to “closed” instead of “0”;
this mean i need a way to translate “opened” and “closed” states to respectively “100” and “0” states.

thanks for the help

The position in a cover is an attribute (provided it supports positioning). If you want a min/max sensor on it, you should first create a template entity to turn the attribute in a normal entity. You can use something like this as the template:

{{ state_attr('cover.my_cover', 'current_position') | int(0) }}
1 Like