rianadon / opensprinkler-card

Home Assistant card for collecting OpenSprinkler status
Other
66 stars 8 forks source link

input_number not working #2

Closed thisisbenwoo closed 3 years ago

thisisbenwoo commented 3 years ago

I'm not sure if this is a opensprinkler-card issue or a numberbox-card issue. I have the following opensprinkler-card config:

type: custom:opensprinkler-card
device: abcdefghijklmnopqrstuvwxyz
name: Sprinklers
hide_disabled: true
bars:
  bar_foreground: green
  icon: hass:sprinkler
  active_icon: hass:sprinkler-variant
input_number:
  entity: input_number.slider
  type: custom:numberbox-card
  unit: m
  icon: mdi:timelapse
card_stations:
  - sensor.curb_station_status
  - sensor.front_yard_station_status
  - sensor.side_yard_station_status
  - sensor.s_flower_bed_station_status

For input_number, I have the following in configuration.yaml input_number: !include input_numbers.yaml In input_numbers.yaml I have the following:

slider:
  name: Watering Duration
  initial: 15 # in minutes
  min: 0
  max: 30
  step: 5
  # You can also use mode: box

But when I click the run button (right arrow), I see only 1m on the runtime: image

My apologies if this is not an opensprinkler-card issue.

rianadon commented 3 years ago

Thanks for bringing this to my attention and the well-written report!

It is totally a me issue. The last update broke this. A good programmer would have tests or do a minimum of QA, but you're lucky I'm not a good programmer 😈

Will be fixed in the next version.

thisisbenwoo commented 3 years ago

No worries.. glad to help. Finally I made a contribution, rather than just asking for help!!! HAHA