junkfix / numberbox-card

Replace input_number sliders with plus and minus buttons
109 stars 9 forks source link

Secondary Info and Change Event delay #16

Closed alexob closed 3 years ago

alexob commented 3 years ago

Hi. Could you please add secondary_info? Also, will be good if the module will be setting input_number after some delay. For example I want to change number from 10 to 15 and step = 1. I click to "+" 5 times and getting 5 events of change input_number. If I have some delay I will set it to one second (for example) and after my 5 click I will get only one event of change input_number.

htmltiger commented 3 years ago

Added change delay.

Any examples about secondary info?

alexob commented 3 years ago

Added change delay.

Thank you. Super! Can I set delay in millisecond ? For example: `

Any examples about secondary info?

like as in standart input_number and in other cards. For showing time of last change

`

htmltiger commented 3 years ago

Added

secondary_info: last-changed
delay: 500
alexob commented 3 years ago

Thank you. After these changes your card does not show icon

htmltiger commented 3 years ago

the icon and plus/minus shows fine here

alexob commented 3 years ago

Plus/minus icons are showing normal, but icon - does not (I just updated card)

htmltiger commented 3 years ago

I am using home assistant version 2021.2.1 and on default lovelace theme and it works fine, with or without custom icon and all 3 icons works fine. what is your config?

alexob commented 3 years ago

I had version 2021.1.5 with default lovelace theme. It was working until you did some changes. Yesterday, I updated HA to version 2021.2.2 and now icon in your card is working