[SOLVED] Mixed technologies Item MQTT / http OH 2.4

Hi Guys,
I’m running OH 2.4 with the new 2.0 MQTT-Binding. Till now, I have changed around 90% of my MQTT devices to the new way of Configuration.

Now I’m facing a Problem with my wallpanel. There I’m running a Tasker on a Cheap Android Tablet to Control the Screen. If I want to switch the display, all I need is an HTTP request. But from there, I did not get the state if the Display is on or off. For the state I publish the state in a MQTT - Topic from Tasker.

For the old MQTT-Binding my Solution for this special Item was this:

Switch display "Display" { http=">[ON:POST:http://XXX.XXX.XXX.XX:8765/lock?display=on] >[OFF:POST:http://XXX.XXX.XXX.XX:8765/lock?display=off]", 
                                mqtt="<[broker:state/Wallpanel/Display:state:default]"}

But now I stuck on the Configuration with the new Binding. The MQTT part seams easy and works

  Bridge mqtt:broker:broker "Mosquitto" [ host="localhost", port=1883, secure=false, clientID="openHAB2" ]
    {
        Thing topic display1 "Wallpanel" @ "Livingroom" {
        Channels:
            Type switch : power     "Power"                [ stateTopic="state/Wallpanel/Display"]  
        }

But how can I mixed the to technologies to get this item to work like this with the old MQTT-Binding?

Does anyone have any idea?

Thanks ^^

Almost the same as before:

Switch display "Display" { http=">[ON:POST:http://XXX.XXX.XXX.XX:8765/lock?display=on] >[OFF:POST:http://XXX.XXX.XXX.XX:8765/lock?display=off]", 
                               channel="mqtt:xxxx:xxxx:power" }
1 Like

Oh, oh really that easy, thx :slight_smile:

Please tick the solution, thanks