Autorefresh virtual temperature tile


#1

1) Give a description of the problem
Virtual temperature tile (my postal code) doesn’t auto refresh after x-hours.

2) What is the expected behavior?
Is it possible to have webcore autorefresh my virtual temperature tile?

**4) Post a Green Snapshot of the piston!


#2

Set up a piston with a timer…

Every X minutes
  With VirtualDevice
  Refresh()/Poll()  --- or something similar

#3

@eibyer is right. Here is a piston I use.

The switches in the only when section you can ignore. I use them to turn certain kinds of automatons on and off.


#4

Thanks guys, I’ll try this out tonight. Greetings :slight_smile:


#5

Is there any documentation, or can any one describe - what is the difference or use case of Poll vs Refresh.


#6

How the poll() and refresh() methods work depends on the device handler for the device. Refresh is meant to be a user initiated refresh and poll is meant as a way for ST to interrogate a device. (I think)

A lot of times you will see this in the DH code:

def refresh() {
    poll();
}

def poll() {
    //Do Stuff
}