Light Binding not working with OH


#1

Hi,

I added the following light binding within text-configuration:

{
    "type": "light",
    "position": {
            "x": 0,
            "y": 4,
            "width": 2,
            "height": 1
     },
      "properties": {
      "label": "LED Treppe",
      "type": "color",
      "state": {
      "binding": "Licht_KG_Kellertreppe_RGB_Color"
       },
      "colors": {
          "relax": "29,63,100",
          "fun": "9,72,100",
          "dark": "300,45,93"
       }
    }

}

This is not working with the latest version. But in my Legacy Version the widget:light-color-advanced is working fine with the same item/binding.

Also the colors configuration is very strange. Instead of “relax” it’s showing “LIGHT 2800K” as a description.

I’m using OpenHAB 2.3 with an Samsung Tablet.

Regards,
Michel


#2

Michel, can you elaborate on what is not working: does it not show correct state (label aside)? does it not control the light correctly?


#3

Hi Igor,

the strange thing is that I can see values from OpenHAB like Power Gauge changing every 2 seconds or Calendar Widget. But the light widget is not controlling the light. I also added a Dimmer widget with another light / item and it’s also not able to turn on/off the light at all.

Any idea?


#4

Hi Igor,

I played a bit around… when configuring the dimmer I used the light widget with type dimmer (copied from previous color type). Within the configuration I had the reverse option somehow copied wrong. After deleting the reverse option the dimmer widget is woking fine with type LIGHT or DIMMER

                          {
                            "type": "light",
                            "position": {
                                "x": 0,
                                "y": 5,
                                "width": 1,
                                "height": 1
                            },
                            "properties": {
                              "type": "dimmer",  
                              "label": "Licht Flur",
                              "icon": "light",
                              "state": {
                                "binding": "Licht_EG_Flur"
                              }
                            }
                          },
                          {
                            "type": "dimmer",
                            "position": {
                                "x": 1,
                                "y": 5,
                                "width": 1,
                                "height": 1
                            },
                            "properties": {
                              "label": "Licht Flur",
                              "state": {
                                "binding": "Licht_EG_Flur"
                              }
                            }
                          }