updated tiles

This commit is contained in:
Nowak
2016-02-29 15:10:26 +01:00
parent 23a76fa72b
commit 1af43681a5
2 changed files with 8 additions and 10 deletions

View File

@@ -32,7 +32,7 @@ metadata {
tiles(scale: 2) { tiles(scale: 2) {
multiAttributeTile(name:"FGK", type:"lighting", width:6, height:4) {//with generic type secondary control text is not displayed in Android app multiAttributeTile(name:"FGK", type:"lighting", width:6, height:4) {//with generic type secondary control text is not displayed in Android app
tileAttribute("device.motion", key:"PRIMARY_CONTROL") { tileAttribute("device.contact", key:"PRIMARY_CONTROL") {
attributeState("open", icon:"st.contact.contact.open", backgroundColor:"#ffa81e") attributeState("open", icon:"st.contact.contact.open", backgroundColor:"#ffa81e")
attributeState("closed", icon:"st.contact.contact.closed", backgroundColor:"#79b821") attributeState("closed", icon:"st.contact.contact.closed", backgroundColor:"#79b821")
} }
@@ -43,12 +43,11 @@ metadata {
} }
} }
valueTile("battery", "device.battery", inactiveLabel: false, valueTile("battery", "device.battery", inactiveLabel: false, , width: 2, height: 2, decoration: "flat") {
decoration: "flat") { state "battery", label:'${currentValue}% battery', unit:""
state "battery", label:'${currentValue}% battery', unit:""
} }
valueTile("temperature", "device.temperature", inactiveLabel: false) { valueTile("temperature", "device.temperature", inactiveLabel: false, width: 2, height: 2) {
state "temperature", label:'${currentValue}°', state "temperature", label:'${currentValue}°',
backgroundColors:[ backgroundColors:[
[value: 31, color: "#153591"], [value: 31, color: "#153591"],

View File

@@ -27,10 +27,10 @@ metadata {
simulator { simulator {
} }
tiles(scale: 2) { tiles(scale: 2) {
multiAttributeTile(name:"FGK", type:"lighting", width:6, height:4) {//with generic type secondary control text is not displayed in Android app multiAttributeTile(name:"FGK", type:"lighting", width:6, height:4) {//with generic type secondary control text is not displayed in Android app
tileAttribute("device.motion", key:"PRIMARY_CONTROL") { tileAttribute("device.contact", key:"PRIMARY_CONTROL") {
attributeState("open", icon:"st.contact.contact.open", backgroundColor:"#ffa81e") attributeState("open", icon:"st.contact.contact.open", backgroundColor:"#ffa81e")
attributeState("closed", icon:"st.contact.contact.closed", backgroundColor:"#79b821") attributeState("closed", icon:"st.contact.contact.closed", backgroundColor:"#79b821")
} }
@@ -41,9 +41,8 @@ metadata {
} }
} }
valueTile("battery", "device.battery", inactiveLabel: false, valueTile("battery", "device.battery", inactiveLabel: false, , width: 2, height: 2, decoration: "flat") {
decoration: "flat") { state "battery", label:'${currentValue}% battery', unit:""
state "battery", label:'${currentValue}% battery', unit:""
} }
main "FGK" main "FGK"