Vertical Range Input (Slider/Dimmer)

Did anybody has such issue (mentioned above) to help me where to look for a solution?

The locations you mentioned are correct, but the results are unexpected.

Regarding the Home Assistant log snippet you shared, it appears to be related to the default HASS “Lovelace” dashboard and a custom “Mushroom” extension. It’s not clear to me where you grabbed that from though? Either way, that’s not relevant for our particular analysis – we can circle back to it, but if things are failing before the command is ever sent, we might need to focus elsewhere

When you send a command with the Custom Tile, I would expect that a relevant network request entry would show up in the Network tab of your browser Developer Tools. Here’s a brief example showing where I see the setLevel command successfully sent for a normal dimmable light:

If you don’t see anything in the network tab, then I would at least expect to see some sort of warning or error in the console tab. Note that you may want to enable all the logging levels:

It would be more helpful to know exact details of what capabilities and commands your device supports and one (or more) of the specific configurations you tried in the tile.

You can find the details about the device in SharpTools too:

  1. Open your SharpTools User Page
  2. Tap the ... next to the location in question
  3. Scroll down and tap the device in question
  4. Share screenshots or highlight and copy-paste the relevant details about the device.
    Note: I would also switch the ‘Show Advanced’ toggle in the top-right corner and share the Doc ID as I can take a closer look at the details reported for the device.

The Effective Ways to Seek Help and Troubleshoot post is also a good read. :slight_smile:

This is a great tile Josh but its really missin the ability to see if a thing is turned off or not and perhaps adjust reflect same with a different colour or ad a text/button that reflects the state of the thing (if wall dimmer is turned off the custom tile still shows dim level). The other tiles you have reflects on / off state with colour but this custom tile for some reason does not. So its not an issue of the thing itself but seems related to the script of the code? Thanks your input and help on this as its quite important for the dashboard to function properly. Cheers.

1 Like

Thankyou for all your work on developing this. I have been trying the Custom type and it works well for my use case of a window opener/closer utilizing a roller chain blind motor.
I updated the script (I am only a novice so was trial and error) to show open and closed instead of + and - but as a further step to suit the orientation of the window I was wondering if its possible to have a Horizontal slider option?

Thanks for sharing your use case!

It’s currently only designed for Vertical Range Inputs. In theory, the code could be modified to support a horizontal arrangement if someone from the community has the requisite skills and wants to submit a patch / update.

I like the Vertical Range Input code. It is working great and the notes to make some changes have been very helpful. I have a question about use of themes on this coded button. I would like to have the tile change on any value greater than ‘1’ to be an Active Tile like when you turn on of off a switch. How can I do that?
Thanks for your time.
Tim

1 Like

Hi Josh,
sry for such a long delay - I just got frustrated and gave up on this because the lack of time. Now I decided to try again and I started with this very good post from you.
Regarding the Network tab of my browser Dev tools, I can see the command “serCurrentPosition” was sent, with the argument changed to the new value, which is ok.

Some more hints:

  • I can normally control the blinds using the classic Window shade tile.
  • I can normally control for example the LED strip level using this custom vertical slider when I select “Switch Level” type
  • to control the blinds I have to select “Custom” thing type and after that I can’t control the blinds no matter which “Custom atribute” I select

Here is also the snapshot of the details about the device you requested.

Ah, I see the issue. For custom attributes, the custom tile infers the command associated with an attribute as the format setAttributeName() as that’s the standard that’s used in officially defined capabilities.

So normally we might expect mappings like:

But looks like this device implements it as:

Attribute Command
currentPosition setPosition() :warning:

So the custom tile is expecting the normal convention of setCurrentPosition() and trying to use that, but since the device doesn’t implement that method it’s of course failing.

I have an idea of how we could accommodate this but I’m away from my computer for the next few days, so I won’t be able to test the idea right away.

It’s very nice to hear that you have an idea! :grinning_face:

After all, there is no problem at all in waiting for a few more days, thanks for your willing to help!

I pushed an update to the Vertical Range Input custom tile that adds a new Use Custom Command setting that when enabled lets you specify the command you want to use.

:stop_sign: You can use the steps from Update Imported Custom Tile to pull in the latest updates.

Once you’ve updated to the newest version, you’ll be able to check the Use Custom Command box in the tile settings on your dashboard.

Then you should be able to enter setPosition for the Custom Command Name field based on the screenshots you shared previously.

Side Note about HASS Device Mapping (tap to expand)

I also added a note to our internal issue tracker to take a closer look at this particular Home Assistant device mapping. I would have expected it to map over to an attribute of shadeLevel and a command of setShadeLevel() rather than your currentPosition and setPosition().

You mentioned that you can control things with the Window Shade Tile, but I presume that was with the standard open() and close() type of commands. The quirky device mapping is also probably preventing you from seeing the position percentage on the Window Shade Tile and thus preventing you from using the dimmer style range control in the Window Shade Tile to adjust the position between 0-100%.

Perfect, now it works, thanks a lot!

Thanks for the update! I moved your status update question to it’s own thread so we don’t clutter up this thread. :slight_smile:

:link: HASS Shades Custom Tile Updates

The only thing I can’t get is top down handle. Slider is now fully functional, so it’s not really important, but I don’t know how some guys did it. :smiley:

It’s automatically inferred based on the attribute used. I pushed an update that lets you override this for Custom Things.

After you Update the Imported Custom Tile to pull in the latest updates, you should see a new Slider Mode option which you can explicitly set to Pull Down

Thanks a lot, it’s done!

1 Like

Hey all – just started building my first few dashboards with my Hubitat C8 and SharpTools, but am having trouble importing this custom tile. The import button on the first post in this thread doesn’t seem to pull in the right code. Is there somewhere else I can find the original file?

I just fixed the URL in the first post. Can you try it again?

That worked – thank you, Josh!

1 Like

I finally got the dimmer to change colors when the switch was on or off. . i used Claude to modify the existing custom tile based on that. Is there any interest in this? How would i go about sharing if so.

1 Like

Hi @josh

I really liked this tile, but I would like some help:

  • Is it possible for the tile to recognize that I added a label, thus reducing the height of the adjustment bar?

  • If using style, is it possible to specify colors for the switch to be on or off, or even the level?

I even tried to do something like Claude.AI, as you recommended, but it can’t understand where to get the information about whether the label is checked or not. It’s the same situation in the second case because the style is directly from SharpTool.

Thank you.