metadata{
definition( name: "Hubigraph Tile Device", namespace: "tchoward", 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(str) {
name = device.getDisplayName();
iframe_html = """
"""
def event = createEvent(name: "Graph", value: iframe_html);
sendEvent(event);
iframe_html = """
"""
event = createEvent(name: "Graph_No_Title", value: iframe_html);
sendEvent(event);
}