Hello @Smitex,
Your first published flow is not a valid flow, but your second is. So I used the second flow as a starting point.
You did not answer the question
Which type of sensor in Domoticz?
So I choose myself and I selected an electric sensor, that will show the current usage of electricity in Watt and the cumulative usage in kWh. You should configure a virtual sensor of type Electric + Counter. Set the Energy read configuration of the sensor to "Computed".
Each Domoticz sensor requires it own format,
In this case: {"command":"udevice", "idx":1234, "svalue":"us;cu"}, where us is usage in Watt and cu is cumulative usage in Wh (even though it is displayed in kWh)
An overview of the required formats, you may find: domoticz – PI and more or Domoticz API/JSON URL's - Domoticz
Regarding your flow.
A JSON node is not longer needed after a MQTT Input node, as a setting in this MQTT input node will give you the required parsed JSON format.
For the rest the flow is self explanatory.
The lower part with the Inject node and MQTT Output was just needed for testing and may be omitted.
The first Debug node will show you the output from your MQTT Input node, while the second shows you the data, as needed for this sensor in Domoticz.
Replace my "idx" (16) for yours (2019). Change also the configuration of the MQTT broker, currently localhost to your IP Address (192.168.1.200).
If everything is alright, you will see in Domoticz under the Utility Tab:
Complete flow below:
[{"id":"ac433500.1f2108","type":"mqtt out","z":"48cf0425.199c6c","name":"","topic":"domoticz/in","qos":"","retain":"true","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"f9f13036.e28b58","x":1290,"y":180,"wires":[]},{"id":"f83dc978a8ef0edc","type":"mqtt in","z":"48cf0425.199c6c","name":"Heatmeter FlowA Warmtepomp","topic":"FlowA","qos":"2","datatype":"json","broker":"f9f13036.e28b58","nl":false,"rap":false,"inputs":0,"x":810,"y":180,"wires":[["04a89bf37c602541","f1aa21704f913c55"]]},{"id":"04a89bf37c602541","type":"debug","z":"48cf0425.199c6c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1070,"y":120,"wires":[]},{"id":"3ce20b3734c40345","type":"mqtt out","z":"48cf0425.199c6c","name":"Heatmeter Out","topic":"","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"f9f13036.e28b58","x":940,"y":280,"wires":[]},{"id":"6368e6d79d95ae63","type":"inject","z":"48cf0425.199c6c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"FlowA","payload":"{\"devices\":\"A\",\"payload\": {\"Input\":23.00,\"Output\":22.50,\"Flow\":0.19,\"Watt\":30.00}}","payloadType":"json","x":750,"y":280,"wires":[["3ce20b3734c40345"]]},{"id":"f1aa21704f913c55","type":"function","z":"48cf0425.199c6c","name":"Function","func":"msg.payload = { \"command\": \"udevice\", \"idx\": 16, \"svalue\": msg.payload.payload.Watt.toString() + \";0\" }\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1060,"y":180,"wires":[["fe78ed3a1a4242ee","ac433500.1f2108"]]},{"id":"fe78ed3a1a4242ee","type":"debug","z":"48cf0425.199c6c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1290,"y":120,"wires":[]},{"id":"f9f13036.e28b58","type":"mqtt-broker","name":"localhost","broker":"127.0.0.1","port":"1883","clientid":"","autoConnect":true,"usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"sessionExpiry":""}]
Regards