Wemo switch and insight smart plug

@jason0x43

Suggestion for code change on all DHs for correct polling.

def poll() {
    log.debug 'poll()'
    if (device.currentValue('switch') != 'offline') {
        runIn(3, setOffline)
    }
    parent.childGetBinaryState(device)
}

Original was 30 which turns out to poll every 30 minutes. At least with the Insight you need more polling for energy state so I placed this as 3 so I wouldn’t have to make a RM to refresh every 3 min.

Just a suggestion.

2 Likes