Thank you. However the DT I’m using already does not have an icon defined. Here’s the code block:
tiles (scale: 2) {
multiAttributeTile(name:"main", type:"generic", width:6, height:4) {
tileAttribute("device.temperature", key: "PRIMARY_CONTROL") {
attributeState "temperature",label:'${currentValue}°',backgroundColors:[
[value: 32, color: "#153591"],
[value: 44, color: "#1e9cbb"],
[value: 59, color: "#90d2a7"],
[value: 74, color: "#44b621"],
[value: 84, color: "#f1d801"],
[value: 92, color: "#d04e00"],
[value: 98, color: "#bc2323"]
]
}
tileAttribute("device.humidity", key: "SECONDARY_CONTROL") {
attributeState "humidity",label:'RH ${currentValue}%',icon:" "
}
}
standardTile("motion","device.motion", width: 2, height: 2) {
state "active",label:'motion',icon:"st.motion.motion.active",backgroundColor:"#53a7c0"
state "inactive",label:'no motion',icon:"st.motion.motion.inactive",backgroundColor:"#ffffff"
}
valueTile("humidity","device.humidity", width: 2, height: 2) {
state "humidity",label:'RH ${currentValue}%',unit:"${unit}"
}
valueTile("illuminance","device.illuminance", width: 2, height: 2) {
state "luminosity",label:'${currentValue}', unit:"${unit}", backgroundColors:[
[value: 0, color: "#000000"],
[value: 1, color: "#060053"],
[value: 3, color: "#3E3900"],
[value: 12, color: "#8E8400"],
[value: 24, color: "#C5C08B"],
[value: 36, color: "#DAD7B6"],
[value: 128, color: "#F3F2E9"],
[value: 1000, color: "#FFFFFF"]
]
}
valueTile("ultravioletIndex","device.ultravioletIndex", width: 2, height: 2) {
state "ultravioletIndex",label:'${currentValue} UV INDEX',unit:""
}
standardTile("acceleration", "device.acceleration", width: 2, height: 2) {
state("active", label:'tamper', icon:"st.motion.acceleration.active", backgroundColor:"#ff0000")
state("inactive", label:'clear', icon:"st.motion.acceleration.inactive", backgroundColor:"#00ff00")
}
valueTile("battery", "device.battery", decoration: "flat", width: 2, height: 2) {
state "battery", label:'${currentValue}% battery', unit:""
}
standardTile("configure","device.configure", decoration: "flat", width: 2, height: 2) {
state "configure", label:'config', action:"configure", icon:"st.secondary.tools"
}
main(["main"])
details(["main","humidity","illuminance","ultravioletIndex","motion","acceleration","battery","configure"])
}
-
Is there any tweak you can suggest to make the font of the temperature larger? Please see attached screen pic - that’s how it looks. It looks larger here but on an iPhone it’s pretty small.
-
While we’re on the subject, is there any way to make the relative humidity text larger as well?
-
I am thinking of trying this advanced DT instead of the RV2.2 I’m using. However it’s important to me to have updates at least once every 5 minutes, possibly sooner. Will this advanced DT still enable that or is it less frequent updates to conserve battery? Assuming the update frequency is short enough, I suppose I can always just add this DT and change the device to use it, and then simply change the device back to the old one if it doesn’t work as I need? IOW I’m not risking being able to easily go backward?
Thank you!