Can I change the widget icon dynamically from my app/program program code (not in the webpage/javascript)? Something like this, which doesn't seem to work:
if(GarageDoorClosed){
Program.Parameter("Widget.DisplayIcon").Value = "http://cdn.device-icons.smartthings.com/doors/garage/garage-closed.png";
}esle{
Program.Parameter("Widget.DisplayIcon").Value = "http://cdn.device-icons.smartthings.com/doors/garage/garage-open.png";
}