Matus Ivanecky 0e8175b38d Update input-number-controller.js
Hello Thomas, 

I would like to use unit_of_measurements also for input_number.

I would do it this way, if you confortable with this. Later we could refactor also other controllers which are taking it from config, not from entity attributes and combine both approaches.

What is your opinion for it ?
2019-08-04 20:22:56 +02:00
2019-08-04 20:22:56 +02:00
2019-06-13 23:35:37 +02:00
2019-06-13 23:35:37 +02:00
2019-06-13 23:35:37 +02:00
2019-06-13 23:35:37 +02:00

slider-entity-row

Add a slider to rows in lovelace entities cards.

For installation instructions see this guide.

Install slider-entity-row.js as a module.

Usage

Add this to an entities card:

type: entities
entities:
  - light.bed_light
  - type: custom:slider-entity-row
    entity: light.kitchen_lights

slider-entity-row

Currenly supported entity domains:

  • light - set brightness
  • media_player - set volume
  • climate - set temperature
  • cover - set position
  • fan - set speed (assumes first setting is off)
  • input_number - set value (only if mode: slider)
  • input_select - select option

domains

Options

  • toggle: true - Show a toggle instead of current state
  • hide_state: true - Do not display current state
  • hide_when_off: true - Hide the slider when state is off
  • full_row: true - Hide icon and name and stretch slider to full width
  • min: <value> - Set minimum value of slider
  • max: <value> - Set maximum value of slider
  • step: <value> - Set step size of slider
type: entities
title: Options
entities:
  - type: custom:slider-entity-row
    entity: light.bed_light
    name: Default
  - type: custom:slider-entity-row
    entity: light.bed_light
    name: toggle
    toggle: true
  - type: custom:slider-entity-row
    entity: light.bed_light
    name: hide_state
    hide_state: true
  - type: custom:slider-entity-row
    entity: light.ceiling_lights
    name: hide_when_off
    hide_when_off: true
  - type: custom:slider-entity-row
    entity: light.ceiling_lights
    name: hide_when_off + toggle
    hide_when_off: true
    toggle: true
  - type: section
    label: full_row
  - type: custom:slider-entity-row
    entity: light.bed_light
    name: hide_state
    full_row: true

options


Buy Me A Coffee

Description
No description provided
Readme 97 KiB
Languages
JavaScript 100%