Fibaro 2 Dimmer (212 not 211)

right you lot, Ive fixed this on android now! Any of you struggling to use this device handler on android can rejoice, no need to use an iPhone or the IDE which sucks balls

The code in the following link removes the default values from the code (the text stikll tells you what the default value should be, but the options are not pre-populated. this is what breaks the android version

if you’ve been trying to use this before you may need to go into the IDE and remove the device, then re add it. although it will work if you have existing dimmers working, just replace your device handler with this one and if your using android, you will be able to add more dimmers via the smart app and not need an ios device.

@rmbhatia and @zcapr17 I’ve put this on my personal gist with the modifications, but hopefully you could update your code, basically if you remove the default value from your input fields in settings it allows android to work, example below, quite a small change:

this:

    input name: "param10", type: "number", range: "0..32767", defaultValue: "0", required: true,
        title: "10. Timer functionality (auto - off). " +
               "This parameter allows to automatically switch off the device after specified time from switching on the light source. " +
               "It may be useful when the Dimmer 2 is installed in the stairway.\n" +
               "Available settings: 0 - Function disabled,\n1-32767 - time to turn off measured in seconds (1s-9.1h).\n" +
               "Default value: 0."

becomes this

    input name: "param10", type: "number", range: "0..32767", required: true,
        title: "10. Timer functionality (auto - off). " +
               "This parameter allows to automatically switch off the device after specified time from switching on the light source. " +
               "It may be useful when the Dimmer 2 is installed in the stairway.\n" +
               "Available settings: 0 - Function disabled,\n1-32767 - time to turn off measured in seconds (1s-9.1h).\n" +
               "Default value: 0."