openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.88k stars 3.59k forks source link

OH3 MQTT Bug - Sonoff/Tasmota #9483

Closed fvojtech closed 3 years ago

fvojtech commented 3 years ago

Hello All,

I am using openhab for a long time and was always using the old MQTT 1.14 But while testing OH3 I found a possible Bug migrating the mqtt Things / Items. It sends a wrong mqtt command to the server.

(in OH2 with mqtt 2.55 it is working with the same config files)

First: It works if I configure the thing in UI but it does not work with config files:

Example:

mqtt.things File:

Bridge mqtt:broker:mosquitto “Mosquitto MQTT Broker” [ host=“192.168.250.20”, port=1883, secure=false, username=“test”, password="", clientID=“OpenHAB3” ] { Thing topic Buero_Decke “Buero” { Channels: Type switch : power “Power” [ stateTopic=“stat/buero/POWER”, commandTopic=“cmnd/DVES_9AEF00/POWER”, on=“ON”,off=“OFF”] } Thing topic schuppen “schuppen” @ “Another Room” { Channels:

Type number : temperature "Temperature"          [ stateTopic="Schuppen/schuppen/Temperature"]

} }

image

it attaches: “:command” to the mqtt send

image

fvojtech commented 3 years ago

I have no idea what it was, i created the things again with same settings, different name and it worked.... sorry