@johnconstantelo
Is a device handler able to do something equivalent that I did on my smartapp 3-Speed Ceiling Fan Thermostat where when you toggle lowSpeed on it actually starts momentarily in highSpeed first to protect the motor? It would be nice to have it built in to your device type so that regardless of it being manually triggered the motor safety is in the device handler and not required in the smartapp
if (fanDimmer.currentSwitch == “off”) { // if fan is OFF protect motor by
fanDimmer.setLevel(90) // starting fan in High speed temporarily then
fanDimmer.setLevel(30, [delay: 3000]) // change to Low speed after 3 seconds
}
else {
fanDimmer.setLevel(30) //fan is already running, not necessary to protect motor
} //set Low speed immediately