Text config - light


#1

It says:
Config similar to:

{
  "type": "switch",
  "position": "0-0,1-1",
  "properties": {
    "label": "Light Switch",
    "state": {
      "binding": "Item_Color_Light"
    }
  }
}

Replace with:

{
  "type": "light",
  "position": "0-0,1-1",
  "properties": {
    "label": "Light Switch",
    "type": "switch",
    "state": {
      "binding": "Item_Color_Light"
    }
  }
}

My first (old) widget works, the second (new) widget does not work, what do I do wrong (openHAB2)?

              {
                "type": "switch",
                "position": "0-0,1-1",
                "properties": {
                    "label": "Light Switch",
                    "icon": "light",
                    "state": {
                        "binding": "box_light_switch1"
                    },
                    "reverse": false
                    }
              },
              {
                "type": "light",
                "position": "1-0,1-1",
                "properties": {
                  "label": "Light Switch",
                  "type": "switch",
                  "state": {
                    "binding": "box_light_switch1"
                  }
                }
              },            

Dimmer, this is cool!
If 0%, the dimmer sends off, if 100% dimmer sends - enabled. In openhab2, I use a slider that sends 0 at 0%, sends 100 at 100%. Can I get this result here? can I add a slider type?
Thank you!