SmartThings Community

Device Handler, Calculated values, Webcore and Actiontiles

Hi everybody!

I hope someone can help me.
I want to show a calculated value in ActionTiles (e.g. Percentage of something). This value will be calculated with Webcore.

It´s easy to calculate percentages in Webcore, but I need to assign it to a “device” to show it in Actiontiles.
Usually, you can’t assing values to a Device (exept when you set the temperature in a Thermostat device).

Does it exist a way to assing a value to a device, like with a real number or percentaje? Which DH?

Thanks in advance.

Pablo

I would suggest a Simulated Temperature Sensor. It will show up as a number on a tile in ActionTiles. You can set the temperature of the simulated device in WebCoRE.
If you can find a simulated Humidity Sensor that would be even better as it displays with a %.

4 Likes

Yes, currently you cannot display a “value” tile in ActionTiles. And ST has hard-coded descriptors, such as the “%” , for different devices that cannot be changed. I have been searching for a way to put a number countdown on my ActionTiles for the number of days until a vacation. If I use a “battery” device then the"%" is included and I cannot remove it.

Look here : https://community.webcore.co/t/daily-countdown-of-days-to-event-that-will-display-on-actiontiles/11734/26

2 Likes

A good virtual device capability for Percentage is
Battery :slight_smile:

3 Likes

The idea of putting dynamic numbers on a panel using a virtual thermostat or temperature device is very clever. I think you could do the same with a virtual dimmer switch. Doing that would require styling of the dimmer to print the level as an integer. I used to do this in HousePanel but switched to a slider. The code is still in there to reveal it though.

On my HousePanel dashboard app one can use the css :after style to add or remove % or anything else. I thought I saw that AT now has CSS support so in theory that could be done with AT too, but I’m not the AT guru here.

So many possibilities.

3 Likes

I misunderstood and though you wanted a %. Clearly, if it’s a countdown, then you don’t. days till vacation: 23% is confusing. Temperature isn’t any better because of the embedded degree sign.
I know CSS support was in SmartTiles, but they haven’t decided to implement it in ActionTiles yet.

1 Like

Bummer - it is such a great product even without CSS. Maybe one day it will get that too. If you don’t mind a more DIY approach my HousePanel does have CSS. It also supports tiles that can call an ad hoc web service that one could use to return a counter or any other user provided content. Or you can use webcore ties to a Device and style the number returned however you want. Heck you can even write a Python script or JavaScript fueled webpage that prints a number that displays in a frame and shines through on a tile. The price you pay for this type of flexibility is a non turnkey setup and a support staff of one… LOL.

We don’t want to sound misleading or make drawn out promises, but there really have been a lot more “under the covers” work in ActionTiles than is visible in our Releases.

As with any rapid-development “MVP” product, the initial code can be pretty messy in places and evolves incrementally.

@625alex has organized and stabilized the core CSS substantially - which is the precedent required to offer Custom CSS to our customers.

But as @kewashi points out - Our target market is the mass average consumer. They are less likely to desire Custom CSS for their purchase decision. If they had to choose they would be happier with just a few added options to the Theme Builder (even if not as powerful overall).

And, yes - This goes for “Custom Value Tiles” too, of course. We’re much more likely to have customers desiring control of a new standard Capability like “Window Shade” than one who uses WebCoRE and custom non-standard values / attributes.

We’ll keep juggling though.

2 Likes

I pretty much suspected this was the case. I suspect that most users don’t even play changing the icons for “intentions” as I’ve done. I know I (and probably all of us who are working with WebCoRE) would love to have “Custom Value Tiles”, but I can understand that actual physical devices take priority over User Interface extensions.
That said, I suspect that at least some non-technical users have a professional installer who might very well want to tweak some things if given the option.
That said, I wouldn’t put the option way up front, but behind an Advanced Options button or the like in the Tile Settings dialog. No sense in confusing the folks who won’t use it anyway.

2 Likes