[RELEASE] Value Tiles - DTH for displaying webCoRE variables / Stats in a 'Thing'


#1

Here is a DTH I knocked up quickly to display custom strings / values in device tiles, within the ST app.

DTH no longer supported - removed link

You can update the displayed values using a webCoRE piston like this one:

image
.


Retrieve an attribute from a DTH
WeatherFlow Use Case
Made a custom Alarm
Show a state of a piston in a Tile in ST or AT
Trying to Pass an attribute from PurpleAir device barometer to a Virtual Temperature Sensor
Show a state of a piston in a Tile in ST or AT
Custom Alexa Alarm Piston ! Help needed
Piston to store position of and control blinds
#2

Robin
May I suggest that you add the ability to set the headings for the tiles (in the same way the Tile Text is set)?


#3

value tiles don’t have headings so nothing to set… only option would be to use alternate lines of values

heading
value
heading
value
heading
value

or reduce the width of each value tile to 3 and placing another value tile to the left, also width 3 :

heading (width 3) - value (width 3)
heading (width 3) - value (width 3)
heading (width 3) - value (width 3)

but then you wouldn’t have much space to add longer values.


#4

I understand. (The reason why I asked is that if one set all 5 values, one is faced with 5 values with no indication what the values relate to.)


#5

You can just put it in the value string :wink:


#6

Here’s a good use case:

image


#7

Robin. Your on a roll. I’ve been looking for something like this too. Can you put in an icon using a web address for it?


#8

Yes…

image

But it kinda messes with the first tile:

Could be overcome by using a blank tile I guess… but then you’d see less on the page as it would push everything down… you’d also loose value 1 being shown on the main things list.


#9

Cool. You know now I have to play with this. So much for starting my flooring this next weekend. You guys are killing me with all the possibilities. :sunglasses:. Is there a way to change font color? I really hate the grey. Hard to see with my old eyes


#10

you can change the backgroundColor, which changes the text colour in the things list, but within the device it just adds a coloured circle around the text and changes the text to white.

ST don’t give us much control over tile appearance :sob:

image


#11

@Robin you’re a genius

Except for something this good, you should have put it in the Instructions & Tutorials category. I have handled this oversight. :slight_smile:


#12

Here’s another use case… for those that remember it, this brings back some of the functionality of the old v1 dashboard!!

And, being English, I’ve used ternary operators to switch between ‘all off’ / ‘is on’ / ‘are on’ to ensure good grammar :smile:


#13

Now all I need is a hub and real devices so I can actually make use of this haha

Not very useful with my virtual location and simulated devices :sob:

Time to buy a new house me thinks!!!


#14

when’s your b-day? I’ll send you a US hub just to mess you up trying to install UK devices. :slight_smile:


#15

Better send him a UK power cord too or he might catch on too quick … :rofl:


#16

Robin, is there a way to force a carriage return with the text that you are inserting in the value tile?


#17

Hmmmmm


#18

Probably not knowing ST.

Maybe try \n or \r\n


#19

This is great Robin! I was looking to develop this and was playing around with various DTH’s as a starting point. Thanks for all you contribute to the ST/WC community. Cheers!


#21

Hi Robin
The \n or \r\n do not work.

Did you change the settings in the DTH to get the tile to look like this:
image
My tiles are all circles and don’t expand to show the full contents of the variable.