question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I would LOVE to have the following:

image

and playing around in FF Dev Tools I found that if I added the following to the #progressContainer ID, I could produce the above hue slider:

background-image: linear-gradient(to right,red,yellow,green,aqua,blue,fuchsia,red);
--paper-progress-active-color: none;

The first line just creates the correct fill to match the hue values created in the light component color wheel (on a slider with min: 0 max: 255), and the second line turns off the blue ‘progress’ fill of the slider that covers up the gradient.

You don’t have templates in your slider card and don’t have sliders in your entity row card. Is this something that could be added pretty easily? Not sure how often this hui CSS would change and break.

Do you have any ideas on how we might do this otherwise in the UI, e.g., to define CSS for an element on the fly? It would be like the styles options in custom-button cards.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
GrizzlyAKcommented, Dec 22, 2021

Sure.

  - type: entities
    title: Living Room Accent Lighting
    entities:
      - entity: input_number.lr_accent_hue_in
        name: Hue
        card_mod:
          style:
            ha-slider$ paper-progress$: |
              div#progressContainer {
                background-image: linear-gradient(to right,red,yellow,green,cyan,blue,magenta,red);
                --paper-progress-active-color: none;
                
              }
      - entity: input_number.lr_accent_saturation_in
        name: Saturation
      - entity: input_number.lr_accent_brightness_in
        name: Brightness

image

You can read more about what I did here.

0reactions
thomaslovencommented, Mar 13, 2022

Yes. I love this, and it is on my list. I’ve actually kept this in an open browser tab for moths waiting for a chance to take it on: https://community.home-assistant.io/t/lovelace-custom-hue-slider/369839/3

Read more comments on GitHub >

github_iconTop Results From Across the Web

HSL Color Picker - by Brandon Mathis
HSL Color Picker adores modern browsers. © 2012 Brandon Mathis What's HSL? Source. What's so great about HSL. HSL (Hue, Saturation, Luminosity) allows...
Read more >
Adjust hue online - PineTools
Adjust the hue of an image.
Read more >
Adjust hue and saturation in Photoshop - Adobe Support
In Adobe Photoshop, learn how to adjust hue, saturation, ... Drag the Hue slider or enter a value until you are satisfied with...
Read more >
VRChat - (Hue) Sliders! (Avatars 3.0) - YouTube
In this video, I cover the basics for making a ( hue ) slider for 3.0 avatars in Unity using a float parameter...
Read more >
A Guide to the Hue Slider in Lightroom - YouTube
Here I explain the Hue Slider in Lightroom Radial Filter, Graduated Filter & Adjustment Brush. Hue is part of the Hue, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found