First, the simulator does not seem to honour the defaultValue argument, selecting 'Yes', the first option, in all cases.
But worse, the value reported in initialize differs from what happens in an actually installed app: Apps interfaced through the iOS app report the string value of the selected option. The IDE simulator seems to report the first option as text ('Yes'), the second one as '1' (index as string).
tgauchat
(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy)
2
The IDE Simulator has lots of bugs.
I live by a single mantra: Never trust the IDE simulator. It is much less frustrating to test by self-publishing to the mobile app.
I guess it does. I’ve had the SmartThings Hub for a while now, but only recently tackled writing some apps. Do these bugs get fixed eventually? Does anyone care?
tgauchat
(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy)
4
If by “these bugs” you mean many similar examples in the past: Yes. (NB: “eventually” is is not legally binding; neither is “a few weeks”, or even “by the end of the year”).
If by “anyone care” you mean that SmartThings engineers care that these bugs exist and would like to fix them: Yes.
I know this was initiated in 2016 but I just ran into this “bug” in ST. I have an method using enum to select months I want the app to run. I noticed after much debugging that the ST hub sees my multiple selections as January, March, April (for example) but the simulator sees that input as January, 02, 03. After I finally figured out what was happening, I added code to get the input correct regardless of Hub or simulator.