Is there any sort of scheduled state refresh that can occur? I’ve successfully installed MrDalek fork along with the ‘remote’ device which does appear to be able to show the current state of the device in SmartThings. I have a few Roku TV (TCL and Sharp branded) with built-in Roku and I’m trying to add an automation that will automatically turn off the Roku TV after it has been powered on for a set period of time, say 4 hours or so.
I have the automation working using the native smart lights and switches power allowance smart app but I’ve noticed that the Roku Manager does not appear to automatically/periodically update the state of the Roku devices in Smart Things.
Can this be enabled?
EDIT: Actually I was able to solve this myself and add a quick times refresh to the Roku device handler.
I simply added “runEvery5Minutes(refresh)” to the def refresh section to refresh the current state every 5 minutes. Not exact timing in the grand scheme but also not overly chatty either.
def refresh() {
log.debug "refresh"
runEvery5Minutes(refresh)
rokuDeviceInfoAction()
getCurrentActivity();
getAllActivities()
}