Hi there,
I’ve written a custom Device Type Handler for an OEM customer and things were working really well until a new Android version was released. Now, the tiles/buttons on the interface don’t fire and the app is useless. Has anyone seen this?
By the way, I fully expect there’s a problem with my code and the Android App doesn’t like it. Feel free to check it out: https://github.com/fortrezz/smartthings/blob/master/flow%20meter%20(fmi)/devicehandler.groovy
Thanks,
Dan Kurin
1 Like
dantheman2865:
Has anyone seen this?
Hi Dan, yes I’ve seen this - and with my version of your code.
There’s a bug introduced with the new mobile app that killed a valueTile’s ability to be tapped and execute an action, like in your code:
valueTile("take1", "device.image", width: 2, height: 2, canChangeIcon: false, inactiveLabel: true, canChangeBackground: false, decoration: "flat") {
state "take", label: "", action: "Image Capture.take", nextState:"taking", icon: "st.secondary.refresh"
}
Change that to “standardTile” and it will work.
Text/image rendering is also hosed up with the new app, so if you see that in your DTH it’s not your problem, it’s ST’s…
More info:
that’s correct, it seems to work with standardTile but not valueTile with the 2.3.1 release. Basically the UI mobile product team is a mess.
As for the action, yes it used to work but oddly I can’t find any documentation on whether it’s support to support an action or not.
http://docs.smartthings.com/en/latest/ref-docs/device-handler-ref.html#valuetile
Infact even for standardTile the documentation doesn’t show if action is supported or not. @Jim ?
EDIT: standardTile seemed to work on Android but it’s COMPLETELY messed up on iOS now. Totally lost for words…
1 Like
Thanks John, works like a charm! I did find that in the iOS version of the DTH, I need to pull down from the top to refresh the image where the refresh button works just fine on the Android version.
Actually, I hadn’t updated to the newest iOS version (2.3.0). Once I did, this started working without pulling down from the top.
Thanks again John.
1 Like