Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase precision for input_number and climate-controller #76

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jclsn
Copy link

@jclsn jclsn commented May 31, 2024

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.

@rohankapoorcom
Copy link
Member

rohankapoorcom commented May 31, 2024

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?

@jclsn
Copy link
Author

jclsn commented May 31, 2024

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

@rohankapoorcom
Copy link
Member

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

@jclsn
Copy link
Author

jclsn commented Jul 13, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants