First time developer to ST, but not to the world of developing. What am I doing wrong here (link below)?
Working on a custom device handler. the switch on() and off() fire and control the pump, but I can’t get any state change that I want on any tile.
The intended design is using turningOn and TurningOff as indicators that I pressed the button, and allowing the polling mechanism of the http request to verify device RPM before setting the switch state to truly on or off.
I had this working at one point, but now messed up. something changed or happened after I had uninstalled/reinstalled the handler.
It’s a work in progress with a lot of commented out items and log.debug/log.info for troubleshooting.
Most currently troubleshooting Line 223 because it won’t fire to set the details to the ValueTile. I want to update the valuetile with the text output from the json. I took out the RPM logic around those lines to change the on/off for the primary switch as it wasn’t working either. Diagnosis confirms json does exist and variables set correctly.
Further diagnosis and copy/paste of a simple sendEvent to force the switch on/off doesn’t work either. I’ve even placed in the on() and off() routines and still won’t change state from the turning(on/off).
I’m baffled. So in summary, no switch change states, and no value tile data at all.