All Projects → htmltiger → numberbox-card

htmltiger / numberbox-card

Licence: other
Replace input_number sliders with plus and minus buttons

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to numberbox-card

slider-button-card
A button card with integrated slider
Stars: ✭ 319 (+422.95%)
Mutual labels:  slider, hacs, lovelace, lovelace-custom-card
lovelace-battery-entity-row
Show battery states or attributes with dynamic icon on entity rows in Home Assistant's Lovelace UI
Stars: ✭ 49 (-19.67%)
Mutual labels:  home-assistant, hacs, lovelace, lovelace-ui
bom-radar-card
A rain radar card using the new tiled images from the Australian BOM
Stars: ✭ 52 (-14.75%)
Mutual labels:  home-assistant, hacs, lovelace, lovelace-ui
MeteoalarmCard
Meteoalarm, Météo-France and DWD severe weather warnings card for Home Assistant Lovelace UI ⛈️
Stars: ✭ 48 (-21.31%)
Mutual labels:  hacs, lovelace, lovelace-ui, lovelace-card
google home timers card
Card for Home Assistant Google Home integration.
Stars: ✭ 29 (-52.46%)
Mutual labels:  lovelace, lovelace-ui, lovelace-custom-card, lovelace-cards
lovelace-collapsable-cards
A custom Lovelace card that hides other cards behind a dropdown toggle
Stars: ✭ 83 (+36.07%)
Mutual labels:  lovelace, lovelace-ui, lovelace-card, lovelace-custom-card
tv-card
📺 TV Remote Card
Stars: ✭ 139 (+127.87%)
Mutual labels:  lovelace, lovelace-ui, lovelace-card
uptime-card
Minimalistic uptime card for Home Assistant Lovelace UI
Stars: ✭ 152 (+149.18%)
Mutual labels:  home-assistant, hacs, lovelace
linak-desk-card
Home Assistant Lovelace Card for controlling desks based on linak bluetooth controller.
Stars: ✭ 26 (-57.38%)
Mutual labels:  home-assistant, hacs, lovelace
light-card
Lovelace light-card for home assistant
Stars: ✭ 18 (-70.49%)
Mutual labels:  home-assistant, lovelace, lovelace-ui
ioBroker.lovelace
Visualization with Lovelace-UI
Stars: ✭ 41 (-32.79%)
Mutual labels:  home-assistant, lovelace-ui, lovelace-card
lovelace-roomba-vacuum-card
HA Lovelace Card for iRobot Roomba Vacuum Cleaner leveraging the rest980 Docker Image
Stars: ✭ 34 (-44.26%)
Mutual labels:  lovelace, lovelace-ui, lovelace-custom-card
purifier-card
Air Purifier card for Home Assistant Lovelace UI
Stars: ✭ 155 (+154.1%)
Mutual labels:  home-assistant, hacs, lovelace
lovelace-valetudo-map-card
Draws the map available from a Xiaomi Vacuum cleaner flashed with Valetudo in a Home Assistant Lovelace card
Stars: ✭ 149 (+144.26%)
Mutual labels:  home-assistant, hacs, lovelace
hass-shutter-card
Shutter card for Home Assistant Lovelace UI
Stars: ✭ 151 (+147.54%)
Mutual labels:  home-assistant, hacs, lovelace
compass-card
A Lovelace card that shows a directional indicator on a compass for Home Assistant
Stars: ✭ 64 (+4.92%)
Mutual labels:  home-assistant, hacs, lovelace-card
entur-card
Home Assistant Lovelace card card for the Entur public transport component.
Stars: ✭ 38 (-37.7%)
Mutual labels:  home-assistant, hacs, lovelace
charger-card
A lovelace card for electrical vehicle (EV) home chargers and charging robots.
Stars: ✭ 57 (-6.56%)
Mutual labels:  hacs, lovelace
ha-iaquk
Indoor Air Quality Sensor Component for Home Assistant
Stars: ✭ 57 (-6.56%)
Mutual labels:  home-assistant, hacs
lovelace-rpi-monitor-card
A Raspberry Pi status display Card for Home Assistant Lovelace
Stars: ✭ 102 (+67.21%)
Mutual labels:  lovelace-card, lovelace-custom-card

numberbox-card

NumberBox for input sliders and number entities

Inspired from simple thermostat

Installation

Manually add numberbox-card.js to your <config>/www/ folder and add the following to the configuration.yaml file:

lovelace:
  resources:
    - url: /local/numberbox-card.js?v=1
      type: module

OR install using HACS and add this (if in YAML mode):

lovelace:
  resources:
    - url: /hacsfiles/numberbox-card/numberbox-card.js
      type: module

The above configuration can be managed directly in the Configuration -> Lovelace Dashboards -> Resources panel when not using YAML mode, or added by clicking the "Add to lovelace" button on the HACS dashboard after installing the plugin.

Configuration

Name Type Default Description
type string Required custom:numberbox-card
entity string Required input_number.my_slider or number.my_number
name string/bool friendly_name Override friendly name (set to false to hide)
picture string/bool entity_picture picture as icon eg. /local/picture.png local is www folder (picture has priority over icon so set to false to hide / display icon instead)
icon string/bool icon Override icon (set to false to hide)
border bool false set to true to show borders
icon_plus string mdi:plus custom icon
icon_minus string mdi:minus custom icon
initial string ? initial value when unknown or unavailable state
delay string 1000 delay after pressing in ms, 0 to disable
speed string 0 long press speed in ms, 0 to disable
secondary_info string last-changed last-updated or any text/html,
you can also display states or other attributes of any entity for eg.
Light is %light.office_1:state
Room temp is %climate.heating:attributes:current_temperature
unit string/bool unit_of_measurement Override unit string (set to false to hide)
time to display the number in hh:mm:ss
timehm to display the number in hh:mm

Advanced Config for climate/fan etc

Name Type Default Description
state string undefined set it for attribute display
min number attribute min
max number attribute max
step number attribute step
step_entity string eg sensor.my_step_size
param string value service parameter
service string input_number.set_value service name
moreinfo string entity More info click entity, false to disable
type: entities
entities:
  - type: custom:numberbox-card
    entity: climate.heating
    icon: mdi:fire
    state: temperature
    service: climate.set_temperature
    param: temperature
    min: 0
    max: 30
    step: 0.5
    speed: 500

type: entities
entities:
  - type: custom:numberbox-card
    entity: fan.smartfan_fan
    icon: mdi:fan
    state: percentage
    service: fan.set_percentage
    param: percentage
    min: 0
    max: 100
    step: 20

type: entities
entities:
  - type: custom:numberbox-card
    entity: input_datetime.timer_time
    service: input_datetime.set_datetime
    param: time
    unit: time
    step: 60


# Timer duration change
type: entities
entities:
  - type: custom:numberbox-card
    entity: timer.heating
    icon: mdi:fire
    service: timer.start
    param: duration
    state: duration
    min: 0
    max: 999999
    step: 60
    unit: time

numberbox-card

type: entities
entities:
  - type: custom:numberbox-card
    entity: climate.downstairs_heating
    icon: mdi:fire
    service: climate.set_temperature
    param: temperature
    state: temperature
    min: 0
    max: 30
    step: 0.5
    secondary_info: >
      Mode:<b style="color:red"> %climate.downstairs_heating:attributes:hvac_action </b><br />
      Current temp:<b style="color:green"> %climate.downstairs_heating:attributes:current_temperature </b>

Examples

numberbox-card

Configurations:

type: entities
title: Example
show_header_toggle: false
entities:
  - entity: input_number.my_slider
    secondary_info: last-changed
  
  - entity: input_number.my_slider
    type: 'custom:numberbox-card'
    icon: 'mdi:timelapse'
    secondary_info: last-changed
    unit: S

  - entity: input_number.my_slider
    type: 'custom:numberbox-card'
    unit: time

  - entity: input_number.my_slider
    type: 'custom:numberbox-card'
    icon_plus: 'mdi:chevron-up'
    icon_minus: 'mdi:chevron-down'
    style: |
      .cur-num{font-size:25px !important}
      .cur-num.upd{color:green}
      .cur-unit{color:orange; font-size:100% !important; opacity:1 !important}
      .grid-left{color:red}
      .grid-right{color:blue}

style: |
  #states{padding:8px 10px !important}

numberbox-card

- type: custom:numberbox-card
  entity: input_number.my_slider
  name: My Title
  icon: 'mdi:fire'
  border: true
  card_mod:
    style: |
      ha-card .cur-num {
         color: green;
       }  

numberbox-card

type: horizontal-stack
cards:
  - type: custom:numberbox-card
    border: true
    entity: number.office_temp
    name: false
    style: >
      .body{display:block!important}
      .body::after{text-align:center;font-size:10px;content:"Temperature";display:block!important}
  - type: custom:numberbox-card
    border: true
    entity: number.office_timer
    unit: time
    name: false
    style: >
      .body{display:block!important}
      .body::after{text-align:center;font-size:10px;content:"Minutes";display:block!important}

It is also possible to add this using + Add Card UI and choose Custom: Numberbox Card

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].