Hello FireWizard, now I got the values by using node red smartmeter but can't get the value to domoticz deviceFireWizard wrote: ↑Tuesday 08 February 2022 15:24 Hello @ sailmich,
You might want to look at Node-RED. You can load the module: https://flows.nodered.org/node/node-red ... smartmeter
This smart-meter module is based on library: https://github.com/Apollon77/smartmeter-obis
If you read its README file you will see:
Try, if you can collect the data from your device in Node-RED. If so, it's quite easy to send the data to a virtual device in Domoticz by means of MQTT.Supported Protocols:
SmlProtocol: SML (SmartMeterLanguage) as binary format
D0Protocol: D0 (based on IEC 62056-21:2002/IEC 61107/EN 61107) as ASCII format (binary protocol mode E not supported currently)
JsonEfrProtocol: OBIS data from EFR Smart Grid Hub (JSON format)
Regards

Code: Select all
[
{
"id": "72105072cc08744b",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "64a326b844326555",
"type": "smartmeter",
"z": "72105072cc08744b",
"name": "",
"datasource": "34d070e3e0bdda8b",
"protocol": "SmlProtocol",
"transport": "SerialRequestResponseTransport",
"requestInterval": "0",
"d0WakeupCharacters": "",
"d0SignOnMessage": "",
"d0BaudrateChangeoverOverwrite": "",
"protocolSmlIgnoreInvalidCRC": false,
"debugging": false,
"x": 210,
"y": 180,
"wires": [
[
"d1759b9d40dccb60",
"1e2fe4a524777dbe"
]
]
},
{
"id": "1e2fe4a524777dbe",
"type": "debug",
"z": "72105072cc08744b",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 650,
"y": 280,
"wires": []
},
{
"id": "1749491eac06311b",
"type": "function",
"z": "72105072cc08744b",
"name": "",
"func": "var newMsg1 = {payload: msg.payload[\"1-0:1.8.0*255\"].values[0].value };\nvar newMsg2 = {payload: msg.payload[\"1-0:16.7.0*255\"].values[0].value };\nreturn [[newMsg1,newMsg2]];\n",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 380,
"y": 400,
"wires": [
[]
]
},
{
"id": "d1759b9d40dccb60",
"type": "function",
"z": "72105072cc08744b",
"name": "",
"func": "msg.payload = { \"command\": \"udevice\", \"idx\": 494, \"nvalue\": 0, \"svalue\": msg.payload[\"1-0:16.7.0*255\"].values[0].value};\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 400,
"y": 180,
"wires": [
[
"1e2fe4a524777dbe",
"9cb5ca45c95b831d"
]
]
},
{
"id": "9cb5ca45c95b831d",
"type": "mqtt out",
"z": "72105072cc08744b",
"name": "",
"topic": "domoticz/in",
"qos": "",
"retain": "",
"respTopic": "",
"contentType": "",
"userProps": "",
"correl": "",
"expiry": "",
"broker": "f9f13036.e28b58",
"x": 650,
"y": 100,
"wires": []
},
{
"id": "34d070e3e0bdda8b",
"type": "smartmeter-connection",
"sourcetype": "serial",
"serialport": "/dev/ttyUSB0",
"serialbaud": "9600",
"databits": "8",
"parity": "none",
"stopbits": "1",
"httphost": "localhost",
"httpport": "80",
"tcphost": "localhost",
"tcpport": "502",
"filepath": "/dev/null"
},
{
"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": ""
}
]

Cheers