mattieha / slider-button-card

A button card with integrated slider
MIT License
435 stars 68 forks source link

Add Support for input_number domain #188

Open lizsugar opened 2 years ago

lizsugar commented 2 years ago

This was requested in issues #161 and #7 This adds support for the input_number domain and makes the entities far far easier to manage on a mobile touch display vs. the builtin entities card.

image

One note: There is a current oustanding bug where if the input_number.entity.min value is not cleanly divisible by the input_number.entity.step value, then the slider card is off by an amount. If your input_number has min = 5, max = 25, step = 5 then it will work just fine. But if the step is 2, then it will be off. This also has the side effect of changing the input_number to an "illegal" value when modified via slider-button-card. Step = 1 always works.

If anyone has any insight I would appreciate the help. Otherwise, I am submitting as is, because it is largely functional right now.

goldenpipes commented 2 years ago

was just about to suggest this!

Helios-light commented 2 years ago

I wish this will be available soon. I'm real waiting for this. This add-on is wonderfull.

Helios-light commented 2 years ago

If I understand well, the fonction is ready with a minor bug. Can you merge it in a beta we can try it ?

ivancristina commented 2 years ago

May this pull be merged? Looks like a very nice feature. Thank you very much Liz!

lizsugar commented 2 years ago

PR submitted to maintained version of slider-button-card https://github.com/custom-cards/slider-button-card/pull/7

pickonedev commented 2 years ago

How should be used? I am trying to add an input_number but I get error, like does not exists...