@ralla66 said in MQTT Befehl an Tasmota senden:
@dieter_p
dein Payload richtig ?
"type":"float"
type sollte value sein nicht Text
JSON payload
{"deviceAddress":<value>, "functionCode":<value>, "startAddress":<value>, "type":"<value>","count":<value> "endian":<value>}
Link
Danke. Die JSON Payload scheint mir korrekt. Frag nicht was ich geändert hab (k.A.), aber nun funktioniert es:
11:01:59.642 SRC: MQTT
11:01:59.643 CMD: Grp 0, Cmd 'MODBUSSEND', Idx 1, Len 85, Pld -99, Data '{"deviceaddress": 1, "functioncode": 4, "startaddress": 0, "type":"float", "count":1}'
11:01:59.651 MQT: stat/tasmota_E24E5C/RESULT = {"ModbusSend":"Done"}
11:01:59.811 MQT: tele/tasmota_E24E5C/RESULT = {"ModbusReceived":{"DeviceAddress":1,"FunctionCode":4,"StartAddress":0,"Length":9,"Count":1,"Values":[232.3000030518]}}
a96285f4-4dc7-48d6-8715-368e5118569c-grafik.png