I wrote a deviceType that supports the level capability via a slider. It seems to work fine in the IDE, even when connected there to the actual target hardware. However, when I publish the device type and attach it to the hardware via the Devices pane, when I try to set the level using the iOS app, I get an error popup on the top of the screen saying ‘unable to send command’. This device type also supports switch, which does work fine in the iOS app.
I redacted the ip address of my currently wide open to the world lifx light controls. Suffice to say it works fine for on/off. Also, I’m unclear about the second argument for the level capability. In the IDE, depending on the number of arguments specified, one or the other gets called. Neither get called when using the iOS app.
Thanks for the response. Some of this stuff is very poorly documented. Why should I use “switch level.setLevel” instead of just referencing the “setLevel” function defined below? Where are these rules documented, or even shown in example code?