What is the difference between hitting the refresh button on your devices tiles or “pulling down” to refresh?
I am asking because on iOS pulling down implies a refresh but my device doesn’t refresh unless I hit the refresh button.
slagle
(Tim Slagle)
July 5, 2016, 6:15am
2
Depends on the device type. If it’s written with a implicit refreh method it should refresh the device. If not the client won’t know what to do.
I have a refresh method it is declared as…
def refresh() {
…
}
It doesn’t get called by the pull down to refresh but it does get called by my refresh standardTile
standardTile(“refresh”, “device.switch”, inactiveLabel: false, decoration: “flat”, height: 2, width: 2) {
state “default”, label:“Refresh”, action:“refresh.refresh”, icon: “st.secondary.refresh”
}
What I am trying to do is make it so the status of the device updates when you go into the device detailed view. That isn’t working, so I’d at least like to be able to pull down to refresh.
Is there a way to make it refresh when you open the detailed view?
/**
* LIFX Group of Groups
*
* Copyright 2016 ericvitale@gmail.com
*
* Version 1.3.4 - Fixed looping issue with retrying when lights are offline. (07/30/2017)
* Version 1.3.3 - Cleaned up a bit. (06/30/2017)
* Version 1.3.2 - Added the ability to use separate durations for on/off and setLevel commands. (06/26/2017)
* Version 1.3.1 - Added setLevelAndTemperature method to allow webCoRE set both with a single command. (06/25/2017)
* Version 1.3.0 - Updated to use the ST Beta Asynchronous API. (06/22/17)
* Version 1.2.5 - Added the apiFlash() methiod. apiFlash(cycles=5, period=0.5, brightness1=1.0, brightness2=0.0) (06/16/2017)
* Version 1.2.4 - Added saturation:0 to setColorTemperature per LIFX's recommendation. (05/22/2017)
* Version 1.2.3 - Fixed an issue with setColor() introduced by an api change. (05/19/2017)
* Version 1.2.2 - Fixed a bug introduced in version 1.2.1. (05/18/2017)
* Version 1.2.1 - Fixed an issue with poll not sending the correct group list to LIFX, they must have changed the api. (05/18/2017)
* Version 1.2.0 - Added the ability to execute the pulse and breathe command via CoRE or webCoRE using runEffect(effect="pulse", color="blue", from_color="red", cycles=5, period=0.5). (05/13/2017)
* Version 1.1.9 - Added custom command for runEffect and the ability to use "all" as a group. (05/07/2017)
* Version 1.1.8 - Added the power meter ability. (12/15/2016)
* Version 1.1.7 - Added the ability to sync with other groups using the LIFX Sync companion app. (11/8/2016)
* Version 1.1.6 - Added support for setLevel(level, duration), setHue, setSaturation. (10/05/2016)
This file has been truncated. show original