Thats for your reply tgauchat. I should have been more clear… I am using the web based IDE and have created a fairly simple device type so do have some understanding of Groovy.
Opening a webpage from a settings page is simple enough. However I can find no examples that open a webpage etc from a tile action:
Below is an example of standardTile definition:
standardTile(“switchTile”, “device.switch”, width: 2, height: 2,
canChangeIcon: true) {
state “off”, label: ‘${name}’, action: “switch.on”,
icon: “st.switches.switch.off”, backgroundColor: “#ffffff”
state “on”, label: ‘${name}’, action: “switch.off”,
icon: “st.switches.switch.on”, backgroundColor: “#E60000”
}
If one wants an action to be carried out when it is tapped obviously you use the ‘action’ property. However as this runs in the cloud/on the hub there is no method to call that will open a page on the local device.
Ideally there would a href attribute that would allow a local action eg:
standardTile(“switchTile”, “device.switch”, width: 2, height: 2,
canChangeIcon: true) {
state “off”, label: ‘${name}’, action: “switch.on”, href:“http://www.google.co.uk/”,
icon: “st.switches.switch.off”, backgroundColor: “#ffffff”
state “on”, label: ‘${name}’, action: “switch.off”, href:“http://www.google.co.uk/”,
icon: “st.switches.switch.on”, backgroundColor: “#E60000”
}
I tried looking at the source code for the multisensor and drop cam in the IDE however they make no mention of the ‘shop’ tile etc.
Perhaps links from tiles used to be supported but no longer are?