Icons and Colors based on States + Window Shades

We’re excited to announce the next SharpTools.io release!

This release includes a new ‘State Mapping’ feature which enables you to define which icon and which color you want for each ‘state’ a device is in. This release also includes a brand new Window Shade tile designed to work with motorized blinds, shades, etc.

Icon and Color State Mappings

The following tile types support icon/color state mappings in this release:

  • Contact Sensor
  • Motion Sensor
  • Presence Sensor
  • Switch and Switch Level
  • Lock
  • Valve
  • Water Sensor
  • Door Control and Garage Door Control
  • Window Shade

Here’s a preview of what the state mapping screen looks like for the Contact Sensor:

image

Temperature State Mappings

There’s also a special fully customizable state mapping available for Temperature Sensors which lets you add your own custom thresholds for displaying custom states.

image

:information_source: Keep in mind that the first matching state wins, so order your comparisons accordingly. Also note that you can toggle the ‘Advanced’ switch on to delete states.

The Temperature Measurement tile has also been updated with a few other neat features. You can configure the tile to display the temperature in a large font in the center of the tile (Hero Content) and optionally display an icon alongside the value. Almost like a mini Hero Attribute tile.

Window Shade Tile

This release also includes a brand new Window Shade tile designed to be used with motorized blinds and shades.

2020-03-27_16-41-34

This tile is very similar to the Switch tile in that the default action is to toggle between open/closed states and if the device supports setting the position (level), you can long-press on the tile to bring up the range/slider selection.

The tile also supports customizing the default click action as long as the Window Shades support level / range control.

:warning: If your Window Shade device doesn’t implement one of the core capabilities supported by SharpTools (like Switch), you may have to authorize the device manually. Please refer to the How To Authorize Unrecognized Things for details on how to authorize these devices.

We’ll work on getting an update out to our SmartThings and Hubitat apps to add Window Shades directly to the authorization list, but that has a longer lead-time so the manual authorization approach is the best alternative for now

Other Updates and Enhancements

  • New Blinds icons, new toggle icons, and new opposing arrows icon (for contact sensors)
  • Added open/closed icons for contact sensor by default (rather than a static inward arrows icon)
  • Added proxy option to special REST API syntax - helpful for IFTTT, WebCoRE and more!
    Note: Reference original post for details on the syntax.
  • Other minor enhancements and fixes
8 Likes

We’ve pushed a few minor updates to the state mapping feature to better support transitioning from the legacy icon and color configuration. If you already had an icon or active/default color configured, the system will automatically bring these in to the new state mapping interface!

Special thanks to @Stan_Silverman for the feedback and help testing these enhancements! :sunglasses:

1 Like

Josh - everything is working fine. any chance you will go back and add more icons to reflect the status states?

1 Like

I’m loving these icon and color state change enhancements too!

Specific request: open outdoor gate. Currently there are only closed gate icons…

Capture

1 Like

Do you have any specific icon requests?

image

How about these? Also any plans to add fans to the list of devices that can have the icon state modified?

1 Like

Hi,
Would it be possible to create a somekind of a template for color states that can be then used with hall temperature tiles? It would be then easier to do “bulk” edit for temperature colors and ranges, now I need to modify every temperature tile separately.

Can you help me better understand the use-case here? If the device has implemented a proper Fan Speed / Fan Control capability, then you’ll get the special Fan Tile in which the icon can spin based on the speed of the fan.

:link: Fan Tiles, Battery Tiles, Label Tiles, and More!

I believe this is similar to what @Assaf_Lev had requested via PM. I’m certainly open to the idea of improving the usability of the Color State mapping and I can see how having a template would be helpful.

I was thinking something more along the lines of a template that could be used to initialize the values in your tile configuration. Once the tile is configured though, it would have its own configuration and no longer linked back to the main template. You could always edit the template and then reinitialize each tile as needed though.

I’ll need to think through the concept of being able to keep the configuration linked back to the template. There’s certainly some pros to being able to edit a single template and it just applies to a variety of tiles, but I can also see some complexities with it as well.

I’m thinking it might make sense to get the Color State support for Hero Attribute tiles released first as I have a feeling there will be more requests for template like features at that point and we can better understand the needs. :smiley:

Initialization idea would also work well, I think. It is currently tough job to update all color states if you have multiple sensors.

1 Like

My bad on the fan. Was using the wrong virtual driver in Hubitat! Fixed that and it works fine!!

1 Like

Hi Josh, tried to use the Temperature Sensor tile to map a 3 states switch (CAR ALARM: OFF, ON, TRIGGED)…

  1. Is there any other option than the Temperature Sensor?
  2. If Temperatire Sensor Tile is used, the icon seems to be forced to the Thermometer.

Maybe I also found a kinda bug when you try to use the == statement (having 3 states I tried to set temperature at 1,2,3 and I didnt work)

Thanks

Hi @Daniele_Vigna, welcome to the community!

Can you please post the link to the 3-state switch’s DTH, so we can take a look? Thanks.

Sorry James, im a newbie, whats DTH stands for?

You can customize the icon in the Tile Settings. :smiley:

Thanks! I’ll take a look at what it would take to loosen the equality comparisons. They’re currently a strict comparison, so we may need to loosen this a bit.

DTH = Device Type Handler, a custom device definition in SmartThings. Equivalent to a ‘Driver’ in the Hubitat ecosystem.

Edit: I would also note that it’s on our hitlist to bring this type of State Mapping / Color Configuration functionality to the Hero Attribute tile layout as well.

ok, got it… as I see from Josh I tried using the Thermo Sensor (Simulated Temperature Sensor)

1 Like

I’m glad there is an icon for blinds. I recently installed the IKEA smart blinds and have them set up as a device in SmartThings. When I try and add it to Sharp Tools it doesn’t show up. I went to my account, and manage my connections, logged in to my account, and it isn’t there. Am I missing something. I would love to monitor the blind in Sharp Tools. The blinds are IKEA FYRTUR and are one of the smart blinds in ST.

I had to authorize mine manually as noted in the original post

Thank you, that worked great. I’m new to ST and I always forget about using the classic app to solve problems. I hope they never kill it. What is interesting about the blinds is, ST appears to treat it like a dimmer. In the history you can see how it reports the stages as the blind opens, measured in % dimmed. 100% being fully open. Thanks again.

2 Likes