#Adjust volume feature for tile card

1 messages · Page 1 of 1 (latest)

rotund thorn
#

The adjust volume feature for tile card has a problem: it only works with entities that support VOLUME_SET and not VOLUME_STEP. Even though, VOLUME_STEP is the one that implements volume_up and volume_down methods.

The reason for this is that the underlying frontend component used, <ha-control-number-buttons> expect an absolute value and will calculate the steps in the frontend.

I see 3 solutions:

  • we hack it into <ha-control-number-buttons> (a hack, ugly code)
  • we add a new <ha-step-number-buttons>
  • add it directly to <hui-media-player-volume-buttons-card-feature>

Thoughts?

plain star
#

a stepper component sounds reasonable tbh

#

feels like it'd have use cases for all kinds of stuff

rotund thorn
#

Well most actions are not increase and decrease like we have for volume but set exact only

#

And even regardless of backend , i would probably make it look the same as today. Plus and minus button ?

plain star
#

- 42 + feels reasonable, as does
◀️ 42 ▶️

#

displaying the value can be optional, too

rotund thorn
#

well it's a feature right, so those are usually buttons while thevalue is shown above in the tile card

plain star
#

oh yeah

#

I should sleep