Input number shows both box and slider

In my current setup I try to add an input_number which is shown as a box. At first it worked correctly, but then I noticed 2 strange things:

  1. I set only one value and did not change anything and after a certain period of time, the value dropped back to zero.
  2. The configuration contains the mode set to box, but the frontend displays both the box as well as the slider.

The following configuration is what I have

electricty_night_meter_reading:
 name: Electricity Night Meter Reading
 mode: box
 unit_of_measurement: kwh
 min: 0
 max: 999999
 step: 1

A screenshot can be found below:

image

Iā€™m running 0.57.2. Does anyone know what can cause this?

1 Like

Same here. Have you had the chance to report it on github?

@pplucky not yet and Iā€™m unfamiliar with how to do so. Are you able to do so? If not, then Iā€™ll try to look into it the next few days.

Same issue here on release 0.58.1.
I want a box but a slider and box are shown in the front end

Also, the automation that sets the input_number is not working anymore. It reports: ā€˜Unable to find service input_number/select_valueā€™.

Iā€™ve changed the code to use ā€˜input_numberā€™, of courseā€¦

This is the input_number configuration:

#Input numbers
  bathroom_humidity:
    name: BK vochtigheid
    icon: mdi:water-percent
    unit_of_measurement: '%'
    initial: 50
    min: 25
    max: 100
    step: 0.1
    mode: box

This is my script:

- alias: Set bathroom humidity
  initial_state: 'on'
  hide_entity: false
  trigger:
    - platform: state
      entity_id: switch.BK_warm_water_douche2
      to: 'on'
  action:
    - service: input_number.select_value
      data_template:
        entity_id: input_number.bathroom_humidity
        value: '{{ states.sensor.badkamer_humidity.state | float }}'

2017-11-24 Slider_Box

yep, input_number has been ā€œbrokenā€ for me as well since 0.57. shows both box and slider even though mode: box is defined.

Yep, upto 0.59.2 and ā€˜mode: boxā€™ still includes a slider
Mutt

Submitted a bug hereā€¦
https://github.com/home-assistant/home-assistant/issues/11094

1 Like

Thank you @r41 for taking the time to do so!

Hi I received a notification that this had been fixed but it has not.
I am running - hassio Home Assistant 0.61.0.dev0
Please see r41ā€™s link above on github to see details of what I have observed

r41, my thanks also

Mutt

What this error means:

Unable to find service input_number/set_value