zpieslak / mobilus-client-home-assistant

Home Assistant integration for Mobilus Cosmo GTW
Apache License 2.0
2 stars 0 forks source link

Differentiate supported_features in cover by device_id #12

Open zpieslak opened 12 hours ago

zpieslak commented 12 hours ago

Reference comment

Some devices does not support set_position and it shuold be disabled for them

zpieslak commented 12 hours ago

@Jasbi90 Do I understand correclty that for some devices percentage is not allowed (COSMO and CMR) and supprted_features should only show the below?

CoverEntityFeature.OPEN
 | CoverEntityFeature.CLOSE
 | CoverEntityFeature.STOP
Jasbi90 commented 12 hours ago

Yes, Cosmo and CMR do not support setting a percentage. Only up, down, and stop are possible.