metadata{
definition( name: "webCoRE Graphs Tile Device", namespace: "ady624", author: "Thomas Howard") {
// Indicate what capabilities the device should be capable of
capability "Actuator"
attribute "Graph", "string"
attribute "Graph_No_Title", "string"
command "setGraph", ["String"]
}
preferences{ }
}
def setGraph(String str) {
// String name = device.getDisplayName()
String iframe_html
iframe_html = """
"""
def event
event = createEvent(name: "Graph", value: iframe_html)
sendEvent(event)
iframe_html = """
"""
event = createEvent(name: "Graph_No_Title", value: iframe_html)
sendEvent(event)
}