MQTT Subscribe wird nicht in REadings zerlegt.

Begonnen von AlexO, 10 Oktober 2018, 20:54:05

Vorheriges Thema - Nächstes Thema

AlexO

Ich versuche gerade beim Mosquitto Broaker folgendes Format in FHEM zu lesen
publish/out {
   "Battery" : 255,
   "RSSI" : 12,
   "description" : "",
   "dtype" : "Temp + Humidity",
   "id" : "214",
   "idx" : 5980,
   "name" : "Biowin",
   "nvalue" : 0,
   "stype" : "WTGR800",
   "svalue1" : "20.0",
   "svalue2" : "48",
   "svalue3" : "1",
   "unit" : 0
}

Diese Nachricht habe ich aus MQTT.fx

Ich sehe bei den Readings im transmission-state --> incoming publish received. Das wird dann immer aktualisiert.
Attribute: autoSubscribeReadings --> publish/out/#

Leider werden keine Readings angelegt. Was machen ich falsch?
Wenn ich aus MQTT.fx publish "publish/out/temp 10" ausführe, dann wird entsprechend ein Reading angelegt und der Wert 10 reingeschrieben.

Christoph Morrison

Zitatattr <name> autoSubscribeReadings <topic>
specify a mqtt-topic pattern with wildcard (e.c. 'myhouse/kitchen/+') and MQTT_DEVICE automagically creates readings based on the wildcard-match
e.g a message received with topic 'myhouse/kitchen/temperature' would create and update a reading 'temperature'.
Please note that topics with spaces will not work here

- Enthält Leerzeichen → keine Readings
- Ist JSON und würde deshalb nicht das liefern, was du erwartest
- + ist korrekt, # nicht

AlexO

Ich habe mir jetzt in Node-red eine mqtt-gateway gebaut. Damit funktioniert der Datenaustausch gut.