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


#63

I installed the device handler
how do i create a simulated device using that handler.?


#64

In the IDE, go to ‘my devices’ and then click ‘+ new device’.

The rest is fairly straightforward, give it a random device ID and choose the new custom handler as the ‘type’

fyi… custom handlers always group together at the very bottom of the ‘type’ drop-down list.


#65

I may have taken my personal versions of this DTH a little bit too far lol… this one is for overall climate control:

Fan switches, modes and temperature settings all work… it’s like my own mini version of actiontiles, but inside the ST app.

This one controls individual fans, allowing me to set the humidity required to trigger the fan and how long it should run for after the humidity drops. Also if I want Fan triggered by the light turning on instead:

This one gives an overview of various statuses in the home, text changes as applicable:



#66

how can i get the data out of here on tile i trying to remove email part and display it on a tile

image


#67


#68

is there a way to bold text in a st tile


#69

no… not possible.

You can form new lines witin a tile though, but has to be hard coded in the device handler, not sent from webCoRE.

add \n between line 1 and line 2

state "default", label:'Some Title: \n${currentValue}'


#70

Animated examples of what can be done with variations of value tiles:


#71

Hi I have been looking at this
I Have a question about the DTH
on the fist screen before you tap you see device name
what would i need to change for that to be what every value1 is


#72

You need to choose the name of the device you have the valuetiles DTH assigned to…

In the example gif i shared a few posts up, my device was called ‘A Summary’


#73

I All I have an idea i need help with I known i will have to change the dth
i went the first two panels to be a normal on off switch
how can i do that?
thanks


#75

thanks i only need one switch i fixed that but spacing looks odd
metadata {
definition (name: “webCoRE Value Ties - With Two Switches”, namespace: “Robin”, author: “Robin”) {
capability “Actuator”
capability “Switch”

    attribute "switch2","string"
    attribute "Value1","string"
    attribute "Value2","string"
    attribute "Value3","string"
    attribute "Value4","string"
    attribute "Value5","string"

    command "on2"
    command "off2"
    command "changeValue1"
    command "changeValue2"
    command "changeValue3"
    command "changeValue4"
    command "changeValue5"
}
tiles (scale: 2){
    standardTile("switch", "device.switch", width: 3, height: 3, decoration: "flat", inactiveLabel: false, canChangeIcon: false, canChangeBackground: true) {
        state "on", label: "On", action: "switch.off", icon: "st.Home.home30", backgroundColor: "#66ccff"
        state "off", label: "Off", action: "switch.on", icon: "st.Home.home30", backgroundColor: "#FFFFFF"
    }

    
    valueTile("Value1", "device.Value1", width: 6, height: 2) {
        state "default", label:'${currentValue}'
    }
    valueTile("Value2", "device.Value2", width: 6, height: 2) {
        state "default", label:'${currentValue}'
    }
    valueTile("Value3", "device.Value3", width: 6, height: 2) {
        state "default", label:'${currentValue}'
    }
    valueTile("Value4", "device.Value4", width: 6, height: 2) {
        state "default", label:'${currentValue}'
    }
    valueTile("Value5", "device.Value5", width: 6, height: 2) {
        state "default", label:'${currentValue}'
    }
    main(["switch"])
    details(["switch","Value1","Value2","Value3","Value4","Value5"])
}

}

def on() {
sendEvent(name: “switch”, value: “on”)
}
def off() {
sendEvent(name: “switch”, value: “off”)
}
def changeValue1 (param1) {
sendEvent(“name”:“Value1”, “value”:param1)
}
def changeValue2 (param2) {
sendEvent(“name”:“Value2”, “value”:param2)
}
def changeValue3 (param3) {
sendEvent(“name”:“Value3”, “value”:param3)
}
def changeValue4 (param4) {
sendEvent(“name”:“Value4”, “value”:param4)
}
def changeValue5 (param5) {
sendEvent(“name”:“Value5”, “value”:param5)
}


#76

Just change height and width of each tile till it looks right.

The page is a grid, 6 sections wide:

https://docs.smartthings.com/en/latest/_images/grid-layout.png


#77

This is awesome! Can you please share the DTH for D - Guest Fan as well as A Summary T&H? That would be a nice template to use to start building :slight_smile:


#78

removed



#79

could this be done with a water sensor


#80

It can be done with any device handler… just add the desired value tiles and command lines.

I suggest you study the basic version at the top of this thread to see what parts you need to copy.


#81

i have it all working i do have one question
the first tile you have on main sreen that white withe device name can you give that a color if device is on


#82

Not sure which example you are referring to… but a value tile can only have one colour (except for a range of colours based on a numerical value, i.e temperature.

If you wan’t a tile that dynamically changes colour based on different textual states, use a standard tile, as per the ‘mode’ tile I used in my ‘fan controller’ example.


#83

i have marked in re were i am trying to color