Here is the first plugin I have created, it is pretty basic and has room for improvements but it works.
This is for those who would like to make small adjustments using up/down buttons.
Here is the first plugin I have created, it is pretty basic and has room for improvements but it works.
This is for those who would like to make small adjustments using up/down buttons.
Your timing is impeccable, I posted this question earlier today!
I spent hours searching for the similar and could not find a single one so created and learned a lot.
Sharing it so others can use the same
It is great nice work! I just tested it out and it is very much what I was looking for. I will spend more time with it and see if I can contribute. One enhancement I would suggest would be to adjust how it displays when added as a row in an entities card. Currently, it shows up with its own border nested in the table. Not sure how complicated that is to handle?
Added option to remove borders
border: false
Awesome, looks good!
This is awesome!
This makes it much easier to change input_numbers on a wall-mounted tablet.
Only thing is I had to manually add the repository to HACS. Not a problem, but a lot of people could miss this because of that.
Sorry guys, I am lost trying to install this. noob
HACS > Frontend > click the + button (bottom)
search for ânumberbox-cardâ = nothing
search for ânumberâ two things that I would expect to come up do appear.
or can I please has a noob manual on how to add manually?
Thanks
It should be added in the next update of HACS
for now you can add it manualy from HACS > Frontend > ⊠(three dots on the top) and custom repo
add under Lovelace this url
https://github.com/htmltiger/numberbox-card
Perfect, Thanks
Great addon. Iâm trying to include it in my water boiler/heater âcardâ:
Would you happen to know how I can apply a style to the text (eg. small-caps) with card-mod?
ha-card and :host donât seem to work and thatâs about all the CSS I know
type: entities
entities:
- entity: input_number.living_ac_timer
type: 'custom:numberbox-card'
style: |
.grid-left{font-variant: small-caps}
this only seems to work when under type: entities
so the height will increase for a single entry
Edit:
type: entities
entities:
- entity: input_number.living_ac_timer
type: 'custom:numberbox-card'
style: |
.grid-left{font-variant: small-caps}
style: |
#states{padding:4px 10px !important}
this should fix the height
What card are you using for your scheduled time?
Thank you very much @htmltiger !
I need to play with the padding a little bit, but youâve really helped.
@gregorymartin itâs the Time Picker Card by @GeorgeSG:
GeorgeSG/lovelace-time-picker-card: Time Picker Card for Home Assistantâs Lovelace UI (github.com)
A bit off topic, perhaps, but Iâm not a themer or css guruâŠcould you tell me how youâre using the font-variant small-caps globally for your Lovelace font?
Thanks in advance!
I donât know if it can be done globally, I do it per card or sometimes (case in point), per entity. Most times this is enough:
style: |
ha-card {
font-variant: small-caps;
}
Thank you!
I canât seem to figure out why my numberbox-card suddenly wonât render correct on my phone. Itâs correct everywhere else, only icons on all numberbox-cards affected. Reset the HA app on my phone as well as reset cache in two browsers used in case a change had just not taken effect through the browsers. Still no change.
Example through Chrome:
Same numberbox-card through companion app on Android:
Icon is there if I open the entity through companion app:
Nothing fancy in the code:
- entity: input_number.temperatur_stue
name: Stue Mill nÄr hjemme
type: 'custom:numberbox-card'
- entity: input_number.temperatur_stue_borte
name: Stue Mill andre status
type: 'custom:numberbox-card'
- entity: input_number.temperatur_soverom
name: Soverom radiator nÄr hjemme
type: 'custom:numberbox-card'
- entity: input_number.temperatur_soverom_borte
name: Soverom radiator andre status
type: 'custom:numberbox-card'
I also attempted to force the original mdi icon adding it through âicon:â, but that didnât show anything either.
Anyone got ideas? Or similar issues?
I have just made some changes in state-badge so please update and see if that helps.
Also make sure you running home assistant version 2021.2.1 or newer as it may fix the issue
Sorry, I should have found the issue on Github. Impressive response time btw
Issue resolved through.