slider-button-card icon indicating copy to clipboard operation
slider-button-card copied to clipboard

Increase precision for input_number and climate-controller

Open jclsn opened this issue 1 year ago • 4 comments

So I tried to cleanly apply the changes I made back then to the main branch. Haven't tested this. For some reason I can't add it as custom repo in HACS anymore, because it complains about a non-compliant structure.

I also was not sure back then if this only worked for Celsius. Maybe someone using Imperial units should test it as well.

Let me know if this works and/or needs proper formatting. Would see if I can install a formatter for Typescript. I am really not web guy and just poorly hacked something together back then that worked for me.

jclsn avatar May 31 '24 15:05 jclsn

Can you give a couple of examples of how you are using the card with this change so I can test with the same/similar config?

rohankapoorcom avatar May 31 '24 15:05 rohankapoorcom

Sure, I use to for input_number entities that I use as a heating setpoint for my thermostats. That is pretty much the only use I had for it.

grafik

jclsn avatar May 31 '24 16:05 jclsn

Thanks - can you share the card config (yaml) so I can do my own testing as well?

rohankapoorcom avatar Jul 09 '24 20:07 rohankapoorcom

Sorry for the late reply. Sure

type: custom:slider-button-card
entity: input_number.badezimmertemperatur_slider
slider:
  direction: left-right
  background: gradient
  use_state_color: false
  use_percentage_bg_opacity: false
  show_track: false
  disable_sliding: false
  force_square: false
  show_attribute: false
  tap_action:
    action: more-info
show_name: true
show_state: true
compact: false
icon:
  show: true
  use_state_color: true
  tap_action:
    action: more-info
  icon: ''
action_button:
  mode: toggle
  icon: mdi:power
  show: false
  show_spinner: true
  tap_action:
    action: toggle

jclsn avatar Jul 13 '24 08:07 jclsn