Hi,
ich verwende den node-red-contrib-modbustcp… am Pi brauchst du nichts.
Man benötigt aus der Doku des Geräts die entsprechenden Registereinträge. Diese übergebe ich per inject node…
[{"id":"cbec805e.bf178","type":"inject","z":"fd6d95c1.d70ae8","name":"Abfrage SI","topic":"","payload":"[{\"name\":\"Batterieladung\",\"topic\":\"Batterieladung\",\"dataType\":\"FC3\",\"address\":30845,\"quantity\":2,\"interval\":15000,\"ieeeType\":\"off\",\"ieeeBE\":true},{\"name\":\"Batteriebewegung\",\"topic\":\"Batteriebewegung\",\"dataType\":\"FC3\",\"address\":30775,\"quantity\":2,\"interval\":15000,\"ieeeType\":\"off\",\"ieeeBE\":true},{\"name\":\"Netzbezug\",\"topic\":\"Netzbezug\",\"dataType\":\"FC3\",\"address\":30865,\"quantity\":2,\"interval\":15000,\"ieeeType\":\"off\",\"ieeeBE\":true},{\"name\":\"Einspeisung\",\"topic\":\"Einspeisung\",\"dataType\":\"FC3\",\"address\":30867,\"quantity\":2,\"interval\":15000,\"ieeeType\":\"off\",\"ieeeBE\":true},{\"name\":\"Tagesbezug\",\"topic\":\"Tagesbezug\",\"dataType\":\"FC3\",\"address\":30577,\"quantity\":2,\"interval\":15000,\"ieeeType\":\"off\",\"ieeeBE\":true}]","payloadType":"json","repeat":"1800","crontab":"","once":true,"onceDelay":0.1,"x":130,"y":4480,"wires":[["94c29a05.895178"]]},{"id":"94c29a05.895178","type":"modbustcp-read","z":"fd6d95c1.d70ae8","name":"SI","topic":"","dataType":"HoldingRegister","adr":"30845","quantity":"2","rate":"0","rateUnit":"s","server":"8eb3ef23.af869","ieeeType":"off","ieeeBE":"true","x":290,"y":4480,"wires":[["b1c3d4e9.a54768"]]},{"id":"b1c3d4e9.a54768","type":"switch","z":"fd6d95c1.d70ae8","name":"","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"Tagesbezug","vt":"str"},{"t":"eq","v":"Batterieladung","vt":"str"},{"t":"eq","v":"Batteriebewegung","vt":"str"},{"t":"eq","v":"Netzbezug","vt":"str"},{"t":"eq","v":"Einspeisung","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":430,"y":4500,"wires":[["dc18770a.2e4b5"],["74129c2c.a3f334"],["95a33646.6f5588"],["84ece0d0.ea8e8"],["bb218aeb.7204f8"]]},{"id":"8eb3ef23.af869","type":"modbustcp-server","z":"","name":"Batterie Ladung","host":"192.168.1.186","port":"502","unit_id":"3","reconnecttimeout":"1"}]