BiancoRoyal / node-red-contrib-modbus

maintained by PLUS for Node-RED - https://plus4nodered.com
https://www.npmjs.com/package/node-red-contrib-modbus
BSD 3-Clause "New" or "Revised" License
303 stars 110 forks source link

Using Modbus Flex Connector returns FSM Reset On State {"value":"failed","actions":[],"changed":true} #177

Closed GamerWindow closed 4 years ago

GamerWindow commented 4 years ago

Problem

msg.payload = {
    'value':msg.payload,
    'fc': 3,
    'unitid': 1,
    'address': 24 ,
    'quantity': 1
};
return msg;

What does the warning mean? Is it serious?

I do not get any Modbus output.

Expected behavior

No warning.

Minimal reproduction of the problem with instructions

  1. Connect Inject, function Node and Modbus Flex Connector
  2. Connect Inject, function Node and Modbus Flex Getter
  3. Inject to Modbus Flex Connector, then to Modbus Flex Getter

Demo Flow:

[{"id":"3ba35010.8a2fa","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"e6b7f53e.5d7b18","type":"modbus-flex-connector","z":"3ba35010.8a2fa","name":"","maxReconnectsPerMinute":4,"emptyQueue":false,"showStatusActivities":false,"showErrors":true,"server":"ebc49841.242f08","x":570,"y":120,"wires":[]},{"id":"e09e1c56.55e1c8","type":"function","z":"3ba35010.8a2fa","name":"","func":"msg.payload = {\n    'connectorType': 'TCP',\n    'tcpHost': '10.0.0.81',\n    'tcpPort': '502',\n    'unitId': 2\n};\nreturn msg;","outputs":1,"noerr":0,"x":380,"y":120,"wires":[["e6b7f53e.5d7b18"]]},{"id":"1faf2d77.4fb13b","type":"inject","z":"3ba35010.8a2fa","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":240,"y":120,"wires":[["e09e1c56.55e1c8"]]},{"id":"5945e4a3.b9208c","type":"inject","z":"3ba35010.8a2fa","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":260,"y":180,"wires":[["8fe16f06.445b88"]]},{"id":"8fe16f06.445b88","type":"function","z":"3ba35010.8a2fa","name":"","func":"msg.payload = {\n    'value':msg.payload,\n    'fc': 3,\n    'unitid': 1,\n    'address': 24 ,\n    'quantity': 1\n};\nreturn msg;","outputs":1,"noerr":0,"x":410,"y":180,"wires":[["c8c340d5.7666d8"]]},{"id":"c8c340d5.7666d8","type":"modbus-flex-getter","z":"3ba35010.8a2fa","name":"","showStatusActivities":false,"showErrors":false,"logIOActivities":false,"server":"ebc49841.242f08","useIOFile":false,"ioFile":"","useIOForPayload":false,"x":590,"y":180,"wires":[[],["b3c606f1.ac3178"]]},{"id":"b3c606f1.ac3178","type":"debug","z":"3ba35010.8a2fa","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":770,"y":200,"wires":[]},{"id":"ebc49841.242f08","type":"modbus-client","z":"","name":"Test","clienttype":"tcp","bufferCommands":false,"stateLogEnabled":false,"tcpHost":"10.0.0.254","tcpPort":"20502","tcpType":"DEFAULT","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","unit_id":"1","commandDelay":"1","clientTimeout":"1000","reconnectOnTimeout":false,"reconnectTimeout":"2000","parallelUnitIdsAllowed":false}]

Your Environment

Please tell us about your environment:

bakfunk commented 4 years ago

same probleme here. any solutions?

frankzappa82 commented 4 years ago

Me too.

frankzappa82 commented 4 years ago

Issue disappeared!!!! I don't know why.... Just gamed with queue , and ,after deleted the three Modbus flex getter buttons, put it a new one, and OK!!! bye.

GamerWindow commented 4 years ago

Tried with various queue settings, worked at the first few requests but then i got the FSM warnings again. Sorry, no solution yet.

frankzappa82 commented 4 years ago

Try to set queue to 10 ms (with commands queue checked), applied to all the flow. Then delete all the modbus nodes. Then deploy. If ok ==> add one modbus flex getter/flex write (it's preferred to use only these two nodes). Then deploy. If ok ==> add all the other ones. Good look.

biancode commented 4 years ago

Please, reopen if you want support as a sponsor.

biancode commented 4 years ago

maybe duplicate with #165

PierreScerri commented 4 years ago

I have the same error. Using only Modbus Read node (9 instances) from 2 devices. Errors are duplicated ie same error twice for each node (see log)

System: Rpi3+ with Hassio and Node-Red addon (versions in log below)

Node-Red flow for one of the registers: [{"id":"30b8c211.4649be","type":"modbus-read","z":"1e6fb6a5.f40a31","name":"Energy Imp","topic":"","showStatusActivities":true,"logIOActivities":false,"showErrors":true,"unitid":"1","dataType":"InputRegister","adr":"72","quantity":"2","rate":"10","rateUnit":"s","delayOnStart":false,"startDelayTime":"5","server":"a0f341cb.3769f8","useIOFile":false,"ioFile":"","useIOForPayload":false,"x":120,"y":260,"wires":[["90c6871b.c44238"],[]]},{"id":"90c6871b.c44238","type":"function","z":"1e6fb6a5.f40a31","name":"Import","func":"var rawData = new ArrayBuffer(4);\nvar intView = new Uint16Array(rawData);\nvar fltView = new Float32Array(rawData);\n\nintView[0] = msg.payload[1]; //low\nintView[1] = msg.payload[0]; //high\n\nmsg.payload = (parseFloat(fltView[0])) ;\nmsg.topic = \"import\";\n\nnode.status({fill:\"blue\",shape:\"ring\",text:msg.topic + \":\" + msg.payload}); \n\nreturn msg;","outputs":1,"noerr":0,"x":250,"y":260,"wires":[["47aa5c7d.ef1f5c"]]},{"id":"47aa5c7d.ef1f5c","type":"range","z":"1e6fb6a5.f40a31","minin":"0","maxin":"6324.86","minout":"36481.26","maxout":"42819.97","action":"scale","round":false,"property":"payload","name":"Map","x":370,"y":260,"wires":[["d18f41e3.b0843"]]},{"id":"d18f41e3.b0843","type":"function","z":"1e6fb6a5.f40a31","name":".00","func":"\nmsg.payload = (parseFloat(msg.payload)).toFixed(2) ;\nmsg.topic = \"import\";\n\nnode.status({fill:\"blue\",shape:\"ring\",text:msg.topic + \":\" + msg.payload}); \n\nreturn msg;","outputs":1,"noerr":0,"x":490,"y":260,"wires":[["9965468d.bbf198"]]},{"id":"9965468d.bbf198","type":"ha-entity","z":"1e6fb6a5.f40a31","name":"SDM230EnergyImport","server":"8d09c353.bd6828","version":1,"debugenabled":false,"outputs":1,"entityType":"sensor","config":[{"property":"name","value":"sdm230import"},{"property":"device_class","value":""},{"property":"icon","value":""},{"property":"unit_of_measurement","value":"kWh"}],"state":"payload","stateType":"msg","attributes":[],"resend":true,"outputLocation":"","outputLocationType":"none","inputOverride":"allow","x":660,"y":260,"wires":[["ca5d7b3e.2d4878"]]},{"id":"ca5d7b3e.2d4878","type":"ui_text","z":"1e6fb6a5.f40a31","group":"4781c607.4294d8","order":4,"width":0,"height":0,"name":"","label":"Imp","format":"{{msg.payload}} kWh","layout":"row-spread","x":830,"y":260,"wires":[]},{"id":"a0f341cb.3769f8","type":"modbus-client","z":"1e6fb6a5.f40a31","name":"Serial_9600_8_N_1","clienttype":"serial","bufferCommands":true,"stateLogEnabled":false,"tcpHost":"127.0.0.1","tcpPort":"502","tcpType":"DEFAULT","serialPort":"/dev/ttyUSB0","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","unit_id":"1","commandDelay":"200","clientTimeout":"2000","reconnectOnTimeout":true,"reconnectTimeout":"5000","parallelUnitIdsAllowed":false},{"id":"8d09c353.bd6828","type":"server","z":"","name":"Home Assistant","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true},{"id":"4781c607.4294d8","type":"ui_group","z":"","name":"SDM230","tab":"fe9d9ab7.0983e8","disp":true,"width":4,"collapse":false},{"id":"fe9d9ab7.0983e8","type":"ui_tab","z":"","name":"Energy","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

Settings: Screenshot 2020-02-29 at 13 50 40

Startup log:

Log
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Add-on: Node-RED
 Flow-based programming for the Internet of Things
-----------------------------------------------------------
 Add-on version: 6.1.3
 You are running the latest version of this add-on.
 System: HassOS 3.11  (armv7 / raspberrypi3)
 Home Assistant Core: 0.106.2
 Home Assistant Supervisor: 206
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] nginx.sh: executing... 
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] node-red.sh: executing... 
patching file nodes/ui_base.html
Hunk #1 succeeded at 1243 (offset 712 lines).
audited 96 packages in 5.31s
13 packages are looking for funding
  run `npm fund` for details
found 0 vulnerabilities
[cont-init.d] node-red.sh: exited 0.
[cont-init.d] user.sh: executing... 
[cont-init.d] user.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[13:41:22] INFO: Starting Node-RED...
> addon-node-red@ start /opt
> node $NODE_OPTIONS node_modules/node-red/red.js "--settings" "/etc/node-red/config.js"
2 Mar 13:41:26 - [info] 
Welcome to Node-RED
===================
2 Mar 13:41:26 - [info] Node-RED version: v1.0.4
2 Mar 13:41:26 - [info] Node.js  version: v12.15.0
2 Mar 13:41:26 - [info] Linux 4.19.93-v7 arm LE
2 Mar 13:41:27 - [info] Loading palette nodes
2 Mar 13:41:35 - [info] Dashboard version 2.19.4 started at /endpoint/ui
2 Mar 13:41:37 - [info] Settings file  : /etc/node-red/config.js
2 Mar 13:41:37 - [info] Context store  : 'default' [module=memory]
2 Mar 13:41:37 - [info] User directory : /config/node-red/
2 Mar 13:41:37 - [warn] Projects disabled : editorTheme.projects.enabled=false
2 Mar 13:41:37 - [info] Flows file     : /config/node-red/flows.json
2 Mar 13:41:37 - [info] Server now running at http://127.0.0.1:46836/
[13:41:37] INFO: Starting NGinx...
2 Mar 13:41:37 - [info] Starting flows
nginx: [alert] detected a LuaJIT version which is not OpenResty's; many optimizations will be disabled and performance will be compromised (see https://github.com/openresty/luajit2 for OpenResty's LuaJIT or, even better, consider using the OpenResty releases from https://openresty.org/en/download.html)
2 Mar 13:41:40 - [error] [debug:State] Invalid JSONata expression: {{payload}}
2 Mar 13:41:42 - [info] Started flows
2 Mar 13:41:42 - [error] [api-current-state:AUTO?] Entity could not be found in cache for entity_id: input_select.pool_pump
2 Mar 13:41:42 - [info] [server:Home Assistant] WebSocket Connecting http://supervisor/core
2 Mar 13:41:43 - [info] [server:Home Assistant] WebSocket Connected to http://supervisor/core

2 Mar 13:43:14 - [error] [modbus-read:Voltage] Timed out
2 Mar 13:43:14 - [warn] [modbus-read:Voltage] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 13:43:14 - [warn] [modbus-read:Voltage] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 13:43:14 - [warn] [modbus-read:Current] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 13:43:14 - [warn] [modbus-read:Current] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 13:43:14 - [warn] [modbus-read:Power] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 13:43:14 - [warn] [modbus-read:Power] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 13:43:14 - [warn] [modbus-read:Energy Sol] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 13:43:14 - [warn] [modbus-read:Energy Sol] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 13:43:14 - [warn] [modbus-read:Energy Exp] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 13:43:14 - [warn] [modbus-read:Energy Exp] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 13:43:14 - [warn] [modbus-read:Current] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 13:43:14 - [warn] [modbus-read:Current] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 13:43:14 - [warn] [modbus-read:Power] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 13:43:14 - [warn] [modbus-read:Power] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 13:43:14 - [warn] [modbus-read:Energy Imp] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 13:43:14 - [warn] [modbus-read:Energy Imp] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 13:43:14 - [warn] [modbus-read:Voltage] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 13:43:14 - [warn] [modbus-read:Voltage] FSM Reset On State {"value":"failed","actions":[],"changed":true})
biancode commented 4 years ago

@PierreScerri that is not the flow you attached here. Where are all the other read nodes? Looks like you have the config node working twice or a flow-engine problem.

PierreScerri commented 4 years ago

This is the whole flow:

[{"id":"e29a1087.4cfd8","type":"tab","label":"SDM","disabled":false,"info":""},{"id":"3d39863c.21583a","type":"comment","z":"e29a1087.4cfd8","name":"SDM230 Energy Meter","info":"","x":120,"y":40,"wires":[]},{"id":"1497c1d8.3154ee","type":"comment","z":"e29a1087.4cfd8","name":"SDM120 Energy Meter","info":"","x":120,"y":400,"wires":[]},{"id":"361e1a40.2a73e6","type":"modbus-read","z":"e29a1087.4cfd8","name":"Voltage","topic":"","showStatusActivities":true,"logIOActivities":false,"showErrors":true,"unitid":"2","dataType":"InputRegister","adr":"0","quantity":"2","rate":"10","rateUnit":"s","delayOnStart":false,"startDelayTime":"","server":"c20cce23.34cdf","useIOFile":false,"ioFile":"","useIOForPayload":false,"x":110,"y":440,"wires":[["540edeed.ba19b"],[]]},{"id":"540edeed.ba19b","type":"function","z":"e29a1087.4cfd8","name":"Voltage","func":"var rawData = new ArrayBuffer(4);\nvar intView = new Uint16Array(rawData);\nvar fltView = new Float32Array(rawData);\n\nintView[0] = msg.payload[1]; //low\nintView[1] = msg.payload[0]; //high\n\nmsg.payload = parseFloat(fltView[0].toFixed(0));\nmsg.topic = \"voltage\";\n\nnode.status({fill:\"blue\",shape:\"ring\",text:msg.topic + \":\" + msg.payload}); \n\nreturn msg;","outputs":1,"noerr":0,"x":260,"y":440,"wires":[["55d57fac.e70be"]]},{"id":"2f29809b.43c12","type":"modbus-read","z":"e29a1087.4cfd8","name":"Current","topic":"","showStatusActivities":true,"logIOActivities":false,"showErrors":true,"unitid":"2","dataType":"InputRegister","adr":"6","quantity":"2","rate":"10","rateUnit":"s","delayOnStart":false,"startDelayTime":"","server":"c20cce23.34cdf","useIOFile":false,"ioFile":"","useIOForPayload":false,"x":110,"y":500,"wires":[["e97f0924.c75688"],[]]},{"id":"e97f0924.c75688","type":"function","z":"e29a1087.4cfd8","name":"Current","func":"var rawData = new ArrayBuffer(4);\nvar intView = new Uint16Array(rawData);\nvar fltView = new Float32Array(rawData);\n\nintView[0] = msg.payload[1]; //low\nintView[1] = msg.payload[0]; //high\n\nmsg.payload = parseFloat(fltView[0].toFixed(1));\nmsg.topic = \"current\";\n\nnode.status({fill:\"blue\",shape:\"ring\",text:msg.topic + \":\" + msg.payload}); \n\nreturn msg;","outputs":1,"noerr":0,"x":260,"y":500,"wires":[["b9825249.64ec2"]]},{"id":"3195bff0.5514c","type":"modbus-read","z":"e29a1087.4cfd8","name":"Power","topic":"","showStatusActivities":true,"logIOActivities":false,"showErrors":true,"unitid":"2","dataType":"InputRegister","adr":"12","quantity":"2","rate":"10","rateUnit":"s","delayOnStart":false,"startDelayTime":"","server":"c20cce23.34cdf","useIOFile":false,"ioFile":"","useIOForPayload":false,"x":110,"y":560,"wires":[["fd287e4b.88217"],[]]},{"id":"fd287e4b.88217","type":"function","z":"e29a1087.4cfd8","name":"Power","func":"var rawData = new ArrayBuffer(4);\nvar intView = new Uint16Array(rawData);\nvar fltView = new Float32Array(rawData);\n\nintView[0] = msg.payload[1]; //low\nintView[1] = msg.payload[0]; //high\n\nmsg.payload = parseFloat(fltView[0].toFixed(1));\nmsg.topic = \"power\";\n\nnode.status({fill:\"blue\",shape:\"ring\",text:msg.topic + \":\" + msg.payload}); \n\nreturn msg;","outputs":1,"noerr":0,"x":250,"y":560,"wires":[["e112ee1a.aa59"]]},{"id":"a561a8d4.12bc78","type":"modbus-read","z":"e29a1087.4cfd8","name":"Energy Sol","topic":"","showStatusActivities":true,"logIOActivities":false,"showErrors":true,"unitid":"2","dataType":"InputRegister","adr":"72","quantity":"2","rate":"10","rateUnit":"s","delayOnStart":false,"startDelayTime":"","server":"c20cce23.34cdf","useIOFile":false,"ioFile":"","useIOForPayload":false,"x":120,"y":620,"wires":[["c683f710.3212b8"],[]]},{"id":"db7c0106.907b2","type":"modbus-read","z":"e29a1087.4cfd8","name":"Energy Exp","topic":"","showStatusActivities":true,"logIOActivities":false,"showErrors":true,"unitid":"1","dataType":"InputRegister","adr":"74","quantity":"2","rate":"10","rateUnit":"s","delayOnStart":false,"startDelayTime":"5","server":"c20cce23.34cdf","useIOFile":false,"ioFile":"","useIOForPayload":false,"x":120,"y":320,"wires":[["eb11067e.d96788"],[]]},{"id":"e283d939.5a1bc8","type":"function","z":"e29a1087.4cfd8","name":"Voltage","func":"var rawData = new ArrayBuffer(4);\nvar intView = new Uint16Array(rawData);\nvar fltView = new Float32Array(rawData);\n\nintView[0] = msg.payload[1]; //low\nintView[1] = msg.payload[0]; //high\n\nmsg.payload = parseFloat(fltView[0].toFixed(0));\nmsg.topic = \"voltage\";\n\nnode.status({fill:\"blue\",shape:\"ring\",text:msg.topic + \":\" + msg.payload}); \n\nreturn msg;","outputs":1,"noerr":0,"x":260,"y":80,"wires":[["93773856.4a4b28"]]},{"id":"f75ef59d.4b03c8","type":"function","z":"e29a1087.4cfd8","name":"Current","func":"var rawData = new ArrayBuffer(4);\nvar intView = new Uint16Array(rawData);\nvar fltView = new Float32Array(rawData);\n\nintView[0] = msg.payload[1]; //low\nintView[1] = msg.payload[0]; //high\n\nmsg.payload = parseFloat(fltView[0].toFixed(1));\nmsg.topic = \"current\";\n\nnode.status({fill:\"blue\",shape:\"ring\",text:msg.topic + \":\" + msg.payload}); \n\nreturn msg;","outputs":1,"noerr":0,"x":260,"y":140,"wires":[["acdc5a46.0265d8"]]},{"id":"c80d1bbb.d86e78","type":"function","z":"e29a1087.4cfd8","name":"Power","func":"var rawData = new ArrayBuffer(4);\nvar intView = new Uint16Array(rawData);\nvar fltView = new Float32Array(rawData);\n\nintView[0] = msg.payload[1]; //low\nintView[1] = msg.payload[0]; //high\n\nmsg.payload = parseFloat(fltView[0].toFixed(1));\nmsg.topic = \"power\";\n\nnode.status({fill:\"blue\",shape:\"ring\",text:msg.topic + \":\" + msg.payload}); \n\nreturn msg;","outputs":1,"noerr":0,"x":250,"y":200,"wires":[["a5258d35.78bc2"]]},{"id":"adb3f126.124d4","type":"modbus-read","z":"e29a1087.4cfd8","name":"Current","topic":"","showStatusActivities":true,"logIOActivities":false,"showErrors":true,"unitid":"1","dataType":"InputRegister","adr":"6","quantity":"2","rate":"10","rateUnit":"s","delayOnStart":false,"startDelayTime":"5","server":"c20cce23.34cdf","useIOFile":false,"ioFile":"","useIOForPayload":false,"x":110,"y":140,"wires":[["f75ef59d.4b03c8"],[]]},{"id":"a4e50183.12ced","type":"modbus-read","z":"e29a1087.4cfd8","name":"Power","topic":"","showStatusActivities":true,"logIOActivities":false,"showErrors":true,"unitid":"1","dataType":"InputRegister","adr":"12","quantity":"2","rate":"10","rateUnit":"s","delayOnStart":false,"startDelayTime":"5","server":"c20cce23.34cdf","useIOFile":false,"ioFile":"","useIOForPayload":false,"x":110,"y":200,"wires":[["c80d1bbb.d86e78"],[]]},{"id":"1d7c8429.37638c","type":"modbus-read","z":"e29a1087.4cfd8","name":"Energy Imp","topic":"","showStatusActivities":true,"logIOActivities":false,"showErrors":true,"unitid":"1","dataType":"InputRegister","adr":"72","quantity":"2","rate":"10","rateUnit":"s","delayOnStart":false,"startDelayTime":"5","server":"c20cce23.34cdf","useIOFile":false,"ioFile":"","useIOForPayload":false,"x":120,"y":260,"wires":[["12f0a705.316bf9"],[]]},{"id":"93773856.4a4b28","type":"ha-entity","z":"e29a1087.4cfd8","name":"SDM230Voltage","server":"8d09c353.bd6828","version":1,"debugenabled":false,"outputs":1,"entityType":"sensor","config":[{"property":"name","value":"sdm230voltage"},{"property":"device_class","value":""},{"property":"icon","value":""},{"property":"unit_of_measurement","value":"V"}],"state":"payload","stateType":"msg","attributes":[],"resend":true,"outputLocation":"","outputLocationType":"none","inputOverride":"allow","x":420,"y":80,"wires":[["c65310ca.b7cf9"]]},{"id":"acdc5a46.0265d8","type":"ha-entity","z":"e29a1087.4cfd8","name":"SDM230Current","server":"8d09c353.bd6828","version":1,"debugenabled":false,"outputs":1,"entityType":"sensor","config":[{"property":"name","value":"sdm230current"},{"property":"device_class","value":""},{"property":"icon","value":""},{"property":"unit_of_measurement","value":"A"}],"state":"payload","stateType":"msg","attributes":[],"resend":true,"outputLocation":"","outputLocationType":"none","inputOverride":"allow","x":420,"y":140,"wires":[["9c7a6760.9f6358"]]},{"id":"a5258d35.78bc2","type":"ha-entity","z":"e29a1087.4cfd8","name":"SDM230Power","server":"8d09c353.bd6828","version":1,"debugenabled":false,"outputs":1,"entityType":"sensor","config":[{"property":"name","value":"sdm230power"},{"property":"device_class","value":""},{"property":"icon","value":""},{"property":"unit_of_measurement","value":"W"}],"state":"payload","stateType":"msg","attributes":[],"resend":true,"outputLocation":"","outputLocationType":"none","inputOverride":"allow","x":420,"y":200,"wires":[["85970fbf.f7133","49087d14.3d0084"]]},{"id":"4b131a86.8a7f24","type":"ha-entity","z":"e29a1087.4cfd8","name":"SDM230EnergyImport","server":"8d09c353.bd6828","version":1,"debugenabled":false,"outputs":1,"entityType":"sensor","config":[{"property":"name","value":"sdm230import"},{"property":"device_class","value":""},{"property":"icon","value":""},{"property":"unit_of_measurement","value":"kWh"}],"state":"payload","stateType":"msg","attributes":[],"resend":true,"outputLocation":"","outputLocationType":"none","inputOverride":"allow","x":660,"y":260,"wires":[["17d4fc1d.5b5b24"]]},{"id":"c8d8544e.149188","type":"ha-entity","z":"e29a1087.4cfd8","name":"SDM230EnergyExport","server":"8d09c353.bd6828","version":1,"debugenabled":false,"outputs":1,"entityType":"sensor","config":[{"property":"name","value":"sdm230export"},{"property":"device_class","value":""},{"property":"icon","value":""},{"property":"unit_of_measurement","value":"kWh"}],"state":"payload","stateType":"msg","attributes":[],"resend":true,"outputLocation":"","outputLocationType":"none","inputOverride":"allow","x":660,"y":320,"wires":[["6ddf09ff.cb87e8"]]},{"id":"55d57fac.e70be","type":"ha-entity","z":"e29a1087.4cfd8","name":"SDM120Voltage","server":"8d09c353.bd6828","version":1,"debugenabled":false,"outputs":1,"entityType":"sensor","config":[{"property":"name","value":"sdm120voltage"},{"property":"device_class","value":""},{"property":"icon","value":""},{"property":"unit_of_measurement","value":"V"}],"state":"payload","stateType":"msg","attributes":[],"resend":true,"outputLocation":"","outputLocationType":"none","inputOverride":"allow","x":420,"y":440,"wires":[["96577dd9.2312c"]]},{"id":"b9825249.64ec2","type":"ha-entity","z":"e29a1087.4cfd8","name":"SDM120Current","server":"8d09c353.bd6828","version":1,"debugenabled":false,"outputs":1,"entityType":"sensor","config":[{"property":"name","value":"sdm120current"},{"property":"device_class","value":""},{"property":"icon","value":""},{"property":"unit_of_measurement","value":"A"}],"state":"payload","stateType":"msg","attributes":[],"resend":true,"outputLocation":"","outputLocationType":"none","inputOverride":"allow","x":420,"y":500,"wires":[["299211a5.0a9eae"]]},{"id":"e112ee1a.aa59","type":"ha-entity","z":"e29a1087.4cfd8","name":"SDM120Power","server":"8d09c353.bd6828","version":1,"debugenabled":false,"outputs":1,"entityType":"sensor","config":[{"property":"name","value":"sdm120power"},{"property":"device_class","value":""},{"property":"icon","value":""},{"property":"unit_of_measurement","value":"W"}],"state":"payload","stateType":"msg","attributes":[],"resend":true,"outputLocation":"","outputLocationType":"none","inputOverride":"allow","x":420,"y":560,"wires":[["421e39fc.73f698","714ba4b2.3b8d8c"]]},{"id":"bb6f47c8.444078","type":"ha-entity","z":"e29a1087.4cfd8","name":"SDM120EnergySolar","server":"8d09c353.bd6828","version":1,"debugenabled":false,"outputs":1,"entityType":"sensor","config":[{"property":"name","value":"sdm120solar"},{"property":"device_class","value":""},{"property":"icon","value":""},{"property":"unit_of_measurement","value":"kWh"}],"state":"payload","stateType":"msg","attributes":[],"resend":true,"outputLocation":"","outputLocationType":"none","inputOverride":"allow","x":660,"y":620,"wires":[["172eaafa.2e4035"]]},{"id":"e21bfd70.ead77","type":"api-call-service","z":"e29a1087.4cfd8","name":"Tell Me","server":"8d09c353.bd6828","version":1,"debugenabled":false,"service_domain":"notify","service":"notify","entityId":"","data":"{\"message\":\"Check Solar Panels Astro Switch\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":390,"y":700,"wires":[[]]},{"id":"7b3cabe.8705454","type":"api-current-state","z":"e29a1087.4cfd8","name":"No Solar?","server":"8d09c353.bd6828","version":1,"outputs":2,"halt_if":"0","halt_if_type":"num","halt_if_compare":"is","override_topic":false,"entity_id":"sensor.sdm120power","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":260,"y":700,"wires":[["e21bfd70.ead77"],[]]},{"id":"4958df5a.97dba","type":"sunrise","z":"e29a1087.4cfd8","name":"","lat":"35.8913434","lon":"14.4287955","start":"goldenHourEnd","end":"goldenHour","x":110,"y":700,"wires":[[],["7b3cabe.8705454"]]},{"id":"ea348f49.d547","type":"modbus-read","z":"e29a1087.4cfd8","name":"Voltage","topic":"","showStatusActivities":true,"logIOActivities":false,"showErrors":true,"unitid":"1","dataType":"InputRegister","adr":"0","quantity":"2","rate":"11","rateUnit":"s","delayOnStart":false,"startDelayTime":"5","server":"c20cce23.34cdf","useIOFile":false,"ioFile":"","useIOForPayload":false,"x":110,"y":80,"wires":[["e283d939.5a1bc8"],[]]},{"id":"c65310ca.b7cf9","type":"ui_text","z":"e29a1087.4cfd8","group":"4781c607.4294d8","order":1,"width":0,"height":0,"name":"","label":"V","format":"{{msg.payload}} V","layout":"row-spread","x":570,"y":80,"wires":[]},{"id":"9c7a6760.9f6358","type":"ui_text","z":"e29a1087.4cfd8","group":"4781c607.4294d8","order":2,"width":0,"height":0,"name":"","label":"A","format":"{{msg.payload}} A","layout":"row-spread","x":570,"y":140,"wires":[]},{"id":"85970fbf.f7133","type":"ui_text","z":"e29a1087.4cfd8","group":"4781c607.4294d8","order":3,"width":0,"height":0,"name":"","label":"W","format":"{{msg.payload}} W","layout":"row-spread","x":570,"y":200,"wires":[]},{"id":"17d4fc1d.5b5b24","type":"ui_text","z":"e29a1087.4cfd8","group":"4781c607.4294d8","order":4,"width":0,"height":0,"name":"","label":"Imp","format":"{{msg.payload}} kWh","layout":"row-spread","x":830,"y":260,"wires":[]},{"id":"6ddf09ff.cb87e8","type":"ui_text","z":"e29a1087.4cfd8","group":"4781c607.4294d8","order":5,"width":0,"height":0,"name":"","label":"Exp","format":"{{msg.payload}} kWh","layout":"row-spread","x":830,"y":320,"wires":[]},{"id":"96577dd9.2312c","type":"ui_text","z":"e29a1087.4cfd8","group":"10356220.ced226","order":1,"width":0,"height":0,"name":"","label":"V","format":"{{msg.payload}} V","layout":"row-spread","x":570,"y":440,"wires":[]},{"id":"299211a5.0a9eae","type":"ui_text","z":"e29a1087.4cfd8","group":"10356220.ced226","order":2,"width":0,"height":0,"name":"","label":"A","format":"{{msg.payload}} A","layout":"row-spread","x":570,"y":500,"wires":[]},{"id":"421e39fc.73f698","type":"ui_text","z":"e29a1087.4cfd8","group":"10356220.ced226","order":3,"width":0,"height":0,"name":"","label":"W","format":"{{msg.payload}} W","layout":"row-spread","x":570,"y":560,"wires":[]},{"id":"172eaafa.2e4035","type":"ui_text","z":"e29a1087.4cfd8","group":"10356220.ced226","order":4,"width":0,"height":0,"name":"","label":"Gen","format":"{{msg.payload}} kWh","layout":"row-spread","x":830,"y":620,"wires":[]},{"id":"56513607.6ccdf8","type":"range","z":"e29a1087.4cfd8","minin":"0","maxin":"7960.63","minout":"21326.51","maxout":"29291.39","action":"scale","round":false,"property":"payload","name":"Map","x":370,"y":620,"wires":[["e16e4d73.3517b"]]},{"id":"c683f710.3212b8","type":"function","z":"e29a1087.4cfd8","name":"Solar","func":"var rawData = new ArrayBuffer(4);\nvar intView = new Uint16Array(rawData);\nvar fltView = new Float32Array(rawData);\n\nintView[0] = msg.payload[1]; //low\nintView[1] = msg.payload[0]; //high\n\nmsg.payload = parseFloat(fltView[0]);\nmsg.topic = \"solar\";\n\nnode.status({fill:\"blue\",shape:\"ring\",text:msg.topic + \":\" + msg.payload}); \n\nreturn msg;","outputs":1,"noerr":0,"x":250,"y":620,"wires":[["56513607.6ccdf8"]]},{"id":"12f0a705.316bf9","type":"function","z":"e29a1087.4cfd8","name":"Import","func":"var rawData = new ArrayBuffer(4);\nvar intView = new Uint16Array(rawData);\nvar fltView = new Float32Array(rawData);\n\nintView[0] = msg.payload[1]; //low\nintView[1] = msg.payload[0]; //high\n\nmsg.payload = (parseFloat(fltView[0])) ;\nmsg.topic = \"import\";\n\nnode.status({fill:\"blue\",shape:\"ring\",text:msg.topic + \":\" + msg.payload}); \n\nreturn msg;","outputs":1,"noerr":0,"x":250,"y":260,"wires":[["30e0630d.0e1a3c"]]},{"id":"eb11067e.d96788","type":"function","z":"e29a1087.4cfd8","name":"Export","func":"var rawData = new ArrayBuffer(4);\nvar intView = new Uint16Array(rawData);\nvar fltView = new Float32Array(rawData);\n\nintView[0] = msg.payload[1]; //low\nintView[1] = msg.payload[0]; //high\n\nmsg.payload = (parseFloat(fltView[0]));\nmsg.topic = \"export\";\n\nnode.status({fill:\"blue\",shape:\"ring\",text:msg.topic + \":\" + msg.payload}); \n\nreturn msg;","outputs":1,"noerr":0,"x":250,"y":320,"wires":[["5dee4348.c14fac"]]},{"id":"5dee4348.c14fac","type":"range","z":"e29a1087.4cfd8","minin":"0","maxin":"4069.88","minout":"10274.41","maxout":"14352.56","action":"scale","round":false,"property":"payload","name":"Map","x":370,"y":320,"wires":[["55a4e8d0.b51aa8"]]},{"id":"30e0630d.0e1a3c","type":"range","z":"e29a1087.4cfd8","minin":"0","maxin":"6324.86","minout":"36481.26","maxout":"42819.97","action":"scale","round":false,"property":"payload","name":"Map","x":370,"y":260,"wires":[["d41cac1.927645"]]},{"id":"d41cac1.927645","type":"function","z":"e29a1087.4cfd8","name":".00","func":"\nmsg.payload = (parseFloat(msg.payload)).toFixed(2) ;\nmsg.topic = \"import\";\n\nnode.status({fill:\"blue\",shape:\"ring\",text:msg.topic + \":\" + msg.payload}); \n\nreturn msg;","outputs":1,"noerr":0,"x":490,"y":260,"wires":[["4b131a86.8a7f24"]]},{"id":"55a4e8d0.b51aa8","type":"function","z":"e29a1087.4cfd8","name":".00","func":"\nmsg.payload = (parseFloat(msg.payload)).toFixed(2) ;\nmsg.topic = \"export\";\n\nnode.status({fill:\"blue\",shape:\"ring\",text:msg.topic + \":\" + msg.payload}); \n\nreturn msg;","outputs":1,"noerr":0,"x":490,"y":320,"wires":[["c8d8544e.149188"]]},{"id":"e16e4d73.3517b","type":"function","z":"e29a1087.4cfd8","name":".00","func":"\nmsg.payload = (parseFloat(msg.payload)).toFixed(2) ;\nmsg.topic = \"solar\";\n\nnode.status({fill:\"blue\",shape:\"ring\",text:msg.topic + \":\" + msg.payload}); \n\nreturn msg;","outputs":1,"noerr":0,"x":490,"y":620,"wires":[["bb6f47c8.444078"]]},{"id":"49087d14.3d0084","type":"ui_chart","z":"e29a1087.4cfd8","name":"","group":"8390dbcd.dbdd5","order":1,"width":0,"height":0,"label":"Grid","chartType":"line","legend":"false","xformat":"HH:mm","interpolate":"linear","nodata":"Wait...","dot":false,"ymin":"","ymax":"6000","removeOlder":"12","removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":970,"y":400,"wires":[[]]},{"id":"714ba4b2.3b8d8c","type":"ui_chart","z":"e29a1087.4cfd8","name":"","group":"8390dbcd.dbdd5","order":2,"width":0,"height":0,"label":"Solar","chartType":"line","legend":"false","xformat":"HH:mm","interpolate":"linear","nodata":"Wait...","dot":false,"ymin":"","ymax":"3000","removeOlder":"12","removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":970,"y":460,"wires":[[]]},{"id":"c20cce23.34cdf","type":"modbus-client","z":"e29a1087.4cfd8","name":"Serial_9600_8_N_1","clienttype":"serial","bufferCommands":true,"stateLogEnabled":false,"tcpHost":"127.0.0.1","tcpPort":"502","tcpType":"DEFAULT","serialPort":"/dev/ttyUSB0","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","unit_id":1,"commandDelay":200,"clientTimeout":2000,"reconnectOnTimeout":true,"reconnectTimeout":5000,"parallelUnitIdsAllowed":false},{"id":"8d09c353.bd6828","type":"server","z":"","name":"Home Assistant","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true},{"id":"4781c607.4294d8","type":"ui_group","z":"","name":"SDM230","tab":"fe9d9ab7.0983e8","disp":true,"width":4,"collapse":false},{"id":"10356220.ced226","type":"ui_group","z":"","name":"SDM120","tab":"fe9d9ab7.0983e8","order":2,"disp":true,"width":4,"collapse":false},{"id":"8390dbcd.dbdd5","type":"ui_group","z":"","name":"Graph","tab":"fe9d9ab7.0983e8","order":3,"disp":true,"width":"6","collapse":false},{"id":"fe9d9ab7.0983e8","type":"ui_tab","z":"","name":"Energy","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

biancode commented 4 years ago

ah ... you have two working queues - unit ids - check Logs with more Debug, please

PierreScerri commented 4 years ago

Does this help:

Log
13 packages are looking for funding
  run `npm fund` for details
found 0 vulnerabilities
[cont-init.d] node-red.sh: exited 0.
[cont-init.d] user.sh: executing... 
[cont-init.d] user.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[16:17:21] INFO: Starting Node-RED...
> addon-node-red@ start /opt
> node $NODE_OPTIONS node_modules/node-red/red.js "--settings" "/etc/node-red/config.js"
2 Mar 16:17:25 - [info] 
Welcome to Node-RED
===================
2 Mar 16:17:25 - [info] Node-RED version: v1.0.4
2 Mar 16:17:25 - [info] Node.js  version: v12.15.0
2 Mar 16:17:25 - [info] Linux 4.19.93-v7 arm LE
2 Mar 16:17:26 - [info] Loading palette nodes
2 Mar 16:17:27 - [debug] Module: node-red-contrib-home-assistant-websocket 0.21.3
2 Mar 16:17:27 - [debug]         /config/node-red/node_modules/node-red-contrib-home-assistant-websocket
2 Mar 16:17:27 - [debug] Module: node-red-node-timeswitch 0.0.7
2 Mar 16:17:27 - [debug]         /config/node-red/node_modules/node-red-node-timeswitch
2 Mar 16:17:27 - [debug] Module: node-red-contrib-actionflows 2.0.3
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-contrib-actionflows
2 Mar 16:17:27 - [debug] Module: node-red-contrib-alexa-home-skill 0.1.17
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-contrib-alexa-home-skill
2 Mar 16:17:27 - [debug] Module: node-red-contrib-bigtimer 2.2.6
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-contrib-bigtimer
2 Mar 16:17:27 - [debug] Module: node-red-contrib-cast 0.2.14
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-contrib-cast
2 Mar 16:17:27 - [debug] Module: node-red-contrib-counter 0.1.5
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-contrib-counter
2 Mar 16:17:27 - [debug] Module: node-red-contrib-home-assistant-websocket 0.21.3 *ignored due to local copy*
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-contrib-home-assistant-websocket
2 Mar 16:17:27 - [debug] Module: node-red-contrib-http-request 0.1.14
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-contrib-http-request
2 Mar 16:17:27 - [debug] Module: node-red-contrib-influxdb 0.4.0
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-contrib-influxdb
2 Mar 16:17:27 - [debug] Module: node-red-contrib-interval-length 0.0.4
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-contrib-interval-length
2 Mar 16:17:27 - [debug] Module: node-red-contrib-looptimer 0.0.8
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-contrib-looptimer
2 Mar 16:17:27 - [debug] Module: node-red-contrib-modbus 5.2.0
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-contrib-modbus
2 Mar 16:17:27 - [debug] Module: node-red-contrib-moment 3.0.3
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-contrib-moment
2 Mar 16:17:27 - [debug] Module: node-red-contrib-state-machine 1.2.0
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-contrib-state-machine
2 Mar 16:17:27 - [debug] Module: node-red-contrib-statistics 2.2.2
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-contrib-statistics
2 Mar 16:17:27 - [debug] Module: node-red-contrib-stoptimer 0.0.7
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-contrib-stoptimer
2 Mar 16:17:27 - [debug] Module: node-red-contrib-sunevents 2.0.2
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-contrib-sunevents
2 Mar 16:17:27 - [debug] Module: node-red-contrib-time-range-switch 1.0.0
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-contrib-time-range-switch
2 Mar 16:17:27 - [debug] Module: node-red-contrib-timecheck 1.1.0
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-contrib-timecheck
2 Mar 16:17:27 - [debug] Module: node-red-contrib-traffic 0.2.1
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-contrib-traffic
2 Mar 16:17:27 - [debug] Module: node-red-dashboard 2.19.4
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-dashboard
2 Mar 16:17:27 - [debug] Module: node-red-node-base64 0.2.1
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-node-base64
2 Mar 16:17:27 - [debug] Module: node-red-node-email 1.7.7
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-node-email
2 Mar 16:17:27 - [debug] Module: node-red-node-feedparser 0.1.15
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-node-feedparser
2 Mar 16:17:27 - [debug] Module: node-red-node-geofence 0.1.2
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-node-geofence
2 Mar 16:17:27 - [debug] Module: node-red-node-msgpack 1.2.1
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-node-msgpack
2 Mar 16:17:27 - [debug] Module: node-red-node-pi-gpio 1.0.6
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-node-pi-gpio
2 Mar 16:17:27 - [debug] Module: node-red-node-ping 0.1.0
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-node-ping
2 Mar 16:17:27 - [debug] Module: node-red-node-random 0.1.4
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-node-random
2 Mar 16:17:27 - [debug] Module: node-red-node-rbe 0.2.8
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-node-rbe
2 Mar 16:17:27 - [debug] Module: node-red-node-sentiment 0.1.6
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-node-sentiment
2 Mar 16:17:27 - [debug] Module: node-red-node-serialport 0.10.0
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-node-serialport
2 Mar 16:17:27 - [debug] Module: node-red-node-smooth 0.1.2
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-node-smooth
2 Mar 16:17:27 - [debug] Module: node-red-node-suncalc 0.0.12
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-node-suncalc
2 Mar 16:17:27 - [debug] Module: node-red-node-tail 0.1.1
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-node-tail
2 Mar 16:17:27 - [debug] Module: node-red-node-twitter 1.1.6
2 Mar 16:17:27 - [debug]         /opt/node_modules/node-red-node-twitter

2 Mar 16:17:38 - [debug] [api-current-state:Button?] instantiated node, name: Button?
2 Mar 16:17:38 - [debug] [api-current-state:Switch Close?] instantiated node, name: Switch Close?
2 Mar 16:17:38 - [debug] [api-current-state:Window Open?] instantiated node, name: Window Open?
2 Mar 16:17:38 - [debug] [api-call-service:Tell me] instantiated node, name: Tell me
2 Mar 16:17:38 - [debug] [api-call-service:Stop Cover] instantiated node, name: Stop Cover
2 Mar 16:17:38 - [debug] [api-current-state:Button?] instantiated node, name: Button?
2 Mar 16:17:38 - [debug] [api-current-state:Switch Close?] instantiated node, name: Switch Close?
2 Mar 16:17:38 - [debug] [server-state-changed:Back Bedroom] instantiated node, name: Back Bedroom
2 Mar 16:17:38 - [debug] [server-state-changed:Front Bedroom] instantiated node, name: Front Bedroom
2 Mar 16:17:38 - [debug] [server-state-changed:Master Bedroom] instantiated node, name: Master Bedroom
2 Mar 16:17:38 - [debug] [server-state-changed:Sitting Room Front] instantiated node, name: Sitting Room Front
2 Mar 16:17:38 - [debug] [server-state-changed:Sitting Room Back] instantiated node, name: Sitting Room Back
2 Mar 16:17:38 - [debug] [server-state-changed:Sitting Room Door] instantiated node, name: Sitting Room Door
2 Mar 16:17:38 - [debug] [server-state-changed:Bathroom] instantiated node, name: Bathroom
2 Mar 16:17:39 - [debug] [server-state-changed:Kitchen] instantiated node, name: Kitchen
2 Mar 16:17:39 - [debug] [server-state-changed:Dining Room] instantiated node, name: Dining Room
2 Mar 16:17:39 - [debug] [api-current-state:Window Open?] instantiated node, name: Window Open?
2 Mar 16:17:39 - [debug] [api-call-service:Tell me] instantiated node, name: Tell me
2 Mar 16:17:39 - [debug] [api-call-service:Stop Cover] instantiated node, name: Stop Cover
2 Mar 16:17:39 - [debug] [api-current-state:Button?] instantiated node, name: Button?
2 Mar 16:17:39 - [debug] [api-current-state:Switch Close?] instantiated node, name: Switch Close?
2 Mar 16:17:39 - [debug] [api-current-state:Window Open?] instantiated node, name: Window Open?
2 Mar 16:17:39 - [debug] [api-call-service:Tell me] instantiated node, name: Tell me
2 Mar 16:17:39 - [debug] [api-call-service:Stop Cover] instantiated node, name: Stop Cover
2 Mar 16:17:39 - [debug] [api-current-state:Button?] instantiated node, name: Button?
2 Mar 16:17:39 - [debug] [api-current-state:Switch Close?] instantiated node, name: Switch Close?
2 Mar 16:17:39 - [debug] [api-current-state:Window Open?] instantiated node, name: Window Open?
2 Mar 16:17:39 - [debug] [api-call-service:Tell me] instantiated node, name: Tell me
2 Mar 16:17:39 - [debug] [api-call-service:Stop Cover] instantiated node, name: Stop Cover
2 Mar 16:17:39 - [debug] [api-current-state:Button?] instantiated node, name: Button?
2 Mar 16:17:39 - [debug] [api-current-state:Switch Close?] instantiated node, name: Switch Close?
2 Mar 16:17:39 - [debug] [api-current-state:Window Open?] instantiated node, name: Window Open?
2 Mar 16:17:39 - [debug] [api-call-service:Tell me] instantiated node, name: Tell me
2 Mar 16:17:39 - [debug] [api-call-service:Stop Cover] instantiated node, name: Stop Cover
2 Mar 16:17:39 - [debug] [api-current-state:Button?] instantiated node, name: Button?
2 Mar 16:17:39 - [debug] [api-current-state:Switch Close?] instantiated node, name: Switch Close?
2 Mar 16:17:39 - [debug] [api-current-state:Window Open?] instantiated node, name: Window Open?
2 Mar 16:17:39 - [debug] [api-call-service:Tell me] instantiated node, name: Tell me
2 Mar 16:17:39 - [debug] [api-call-service:Stop Cover] instantiated node, name: Stop Cover
2 Mar 16:17:39 - [debug] [api-current-state:Button?] instantiated node, name: Button?
2 Mar 16:17:39 - [debug] [api-current-state:Switch Close?] instantiated node, name: Switch Close?
2 Mar 16:17:39 - [debug] [api-current-state:Window Open?] instantiated node, name: Window Open?
2 Mar 16:17:39 - [debug] [api-call-service:Tell me] instantiated node, name: Tell me
2 Mar 16:17:39 - [debug] [api-call-service:Stop Cover] instantiated node, name: Stop Cover
2 Mar 16:17:39 - [debug] [api-current-state:Button?] instantiated node, name: Button?
2 Mar 16:17:39 - [debug] [api-current-state:Switch Close?] instantiated node, name: Switch Close?
2 Mar 16:17:39 - [debug] [api-current-state:Window Open?] instantiated node, name: Window Open?
2 Mar 16:17:39 - [debug] [api-call-service:Tell me] instantiated node, name: Tell me
2 Mar 16:17:39 - [debug] [api-call-service:Stop Cover] instantiated node, name: Stop Cover
2 Mar 16:17:39 - [debug] [api-current-state:Button?] instantiated node, name: Button?
2 Mar 16:17:39 - [debug] [api-current-state:Switch Close?] instantiated node, name: Switch Close?
2 Mar 16:17:39 - [debug] [api-current-state:Window Open?] instantiated node, name: Window Open?
2 Mar 16:17:39 - [debug] [api-call-service:Tell me] instantiated node, name: Tell me
2 Mar 16:17:39 - [debug] [api-call-service:Stop Cover] instantiated node, name: Stop Cover
2 Mar 16:17:39 - [debug] [api-current-state:Button?] instantiated node, name: Button?
2 Mar 16:17:39 - [debug] [api-current-state:Switch Close?] instantiated node, name: Switch Close?
2 Mar 16:17:39 - [debug] [api-current-state:Window Open?] instantiated node, name: Window Open?
2 Mar 16:17:39 - [debug] [api-call-service:Tell me] instantiated node, name: Tell me
2 Mar 16:17:39 - [debug] [api-call-service:Stop Cover] instantiated node, name: Stop Cover
2 Mar 16:17:39 - [debug] [api-current-state:Button?] instantiated node, name: Button?
2 Mar 16:17:39 - [debug] [api-current-state:Switch Close?] instantiated node, name: Switch Close?
2 Mar 16:17:39 - [debug] [api-call-service:Back Bed] instantiated node, name: Back Bed
2 Mar 16:17:39 - [debug] [api-call-service:Master Bed] instantiated node, name: Master Bed
2 Mar 16:17:39 - [debug] [api-call-service:Front Bed] instantiated node, name: Front Bed
2 Mar 16:17:39 - [debug] [api-call-service:Sitting Front] instantiated node, name: Sitting Front
2 Mar 16:17:39 - [debug] [api-call-service:Sitting Back] instantiated node, name: Sitting Back
2 Mar 16:17:39 - [debug] [api-call-service:Sitting Door] instantiated node, name: Sitting Door
2 Mar 16:17:39 - [debug] [api-call-service:Kitchen] instantiated node, name: Kitchen
2 Mar 16:17:39 - [debug] [api-call-service:Dining room] instantiated node, name: Dining room
2 Mar 16:17:39 - [debug] [api-call-service:Stairs] instantiated node, name: Stairs
2 Mar 16:17:39 - [debug] [api-call-service:Bathroom] instantiated node, name: Bathroom
2 Mar 16:17:39 - [debug] [api-call-service:Basement] instantiated node, name: Basement
2 Mar 16:17:39 - [debug] [server-state-changed:Open] instantiated node, name: Open
2 Mar 16:17:39 - [debug] [api-current-state:Garage Open?] instantiated node, name: Garage Open?
2 Mar 16:17:39 - [debug] [server-state-changed:Fully Open] instantiated node, name: Fully Open
2 Mar 16:17:39 - [debug] [api-call-service:Tell Me] instantiated node, name: Tell Me
2 Mar 16:17:39 - [debug] [server-state-changed:Closed] instantiated node, name: Closed
2 Mar 16:17:39 - [debug] [api-current-state:Garage Closed?] instantiated node, name: Garage Closed?
2 Mar 16:17:40 - [debug] [ha-entity:SDM230Voltage] instantiated node, name: SDM230Voltage
2 Mar 16:17:40 - [debug] [ha-entity:SDM230Current] instantiated node, name: SDM230Current
2 Mar 16:17:40 - [debug] [ha-entity:SDM230Power] instantiated node, name: SDM230Power
2 Mar 16:17:40 - [debug] [ha-entity:SDM230EnergyImport] instantiated node, name: SDM230EnergyImport
2 Mar 16:17:40 - [debug] [ha-entity:SDM230EnergyExport] instantiated node, name: SDM230EnergyExport
2 Mar 16:17:40 - [debug] [ha-entity:SDM120Voltage] instantiated node, name: SDM120Voltage
2 Mar 16:17:41 - [debug] [ha-entity:SDM120Current] instantiated node, name: SDM120Current
2 Mar 16:17:41 - [debug] [ha-entity:SDM120Power] instantiated node, name: SDM120Power
2 Mar 16:17:41 - [debug] [ha-entity:SDM120EnergySolar] instantiated node, name: SDM120EnergySolar
2 Mar 16:17:41 - [debug] [api-call-service:Tell Me] instantiated node, name: Tell Me
2 Mar 16:17:41 - [debug] [api-current-state:No Solar?] instantiated node, name: No Solar?
2 Mar 16:17:41 - [info] Started flows
2 Mar 16:17:41 - [error] [api-current-state:AUTO?] Entity could not be found in cache for entity_id: input_select.pool_pump
2 Mar 16:17:42 - [info] [server:Home Assistant] WebSocket Connecting http://supervisor/core
2 Mar 16:17:42 - [info] [server:Home Assistant] WebSocket Connected to http://supervisor/core
2 Mar 16:17:42 - [debug] [server:Home Assistant] config server event listener connected
[02/Mar/2020:16:17:43 +0100] 200 -(192.168.1.120) GET /endpoint/ui/socket.io/?EIO=3&transport=polling&t=N2RqmSh HTTP/2.0 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36)
[02/Mar/2020:16:17:43 +0100] 200 -(192.168.1.120) GET /endpoint/ui/socket.io/?EIO=3&transport=polling&t=N2RqmX-&sid=WvabNJgmFx4ujY3HAAAA HTTP/2.0 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36)
[02/Mar/2020:16:17:43 +0100] 200 -(192.168.1.120) POST /endpoint/ui/socket.io/?EIO=3&transport=polling&t=N2Rqma8&sid=WvabNJgmFx4ujY3HAAAA HTTP/2.0 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36)
[02/Mar/2020:16:17:43 +0100] 200 -(192.168.1.120) POST /endpoint/ui/socket.io/?EIO=3&transport=polling&t=N2Rqmbu&sid=WvabNJgmFx4ujY3HAAAA HTTP/2.0 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36)
[02/Mar/2020:16:17:43 +0100] 200 -(192.168.1.120) GET /endpoint/ui/socket.io/?EIO=3&transport=polling&t=N2RqmaD&sid=WvabNJgmFx4ujY3HAAAA HTTP/2.0 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36)
[02/Mar/2020:16:17:44 +0100] 200 -(192.168.1.120) GET /endpoint/ui/socket.io/?EIO=3&transport=polling&t=N2Rqmf4&sid=WvabNJgmFx4ujY3HAAAA HTTP/2.0 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36)

2 Mar 16:18:17 - [error] [modbus-read:Current] Timed out
2 Mar 16:18:17 - [warn] [modbus-read:Voltage] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 16:18:17 - [warn] [modbus-read:Voltage] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 16:18:17 - [warn] [modbus-read:Current] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 16:18:17 - [warn] [modbus-read:Current] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 16:18:17 - [warn] [modbus-read:Power] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 16:18:17 - [warn] [modbus-read:Power] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 16:18:17 - [warn] [modbus-read:Energy Sol] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 16:18:17 - [warn] [modbus-read:Energy Sol] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 16:18:17 - [warn] [modbus-read:Energy Exp] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 16:18:17 - [warn] [modbus-read:Energy Exp] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 16:18:17 - [warn] [modbus-read:Current] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 16:18:17 - [warn] [modbus-read:Current] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 16:18:17 - [warn] [modbus-read:Power] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 16:18:17 - [warn] [modbus-read:Power] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 16:18:17 - [warn] [modbus-read:Energy Imp] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 16:18:17 - [warn] [modbus-read:Energy Imp] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 16:18:17 - [warn] [modbus-read:Voltage] FSM Reset On State {"value":"failed","actions":[],"changed":true}
2 Mar 16:18:17 - [warn] [modbus-read:Voltage] FSM Reset On State {"value":"failed","actions":[],"changed":true}
biancode commented 4 years ago

@PierreScerri sorry, nope ... add modbus-serial* to DEBUG env variable and try again, please. You should see all modbus in and out with that. I want to see if there are two failures or if it is the two running queues for the two unit-ids

PierreScerri commented 4 years ago

For troubleshooting, I have disabled all flows except the modbus flow. Seems to have stabilised. The FSM reset on State errors only come when the flows are restarted. Duplication has gone.

I am now getting this:

Log
13 packages are looking for funding
  run `npm fund` for details
found 0 vulnerabilities
[cont-init.d] node-red.sh: exited 0.
[cont-init.d] user.sh: executing... 
[cont-init.d] user.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[16:54:41] INFO: Starting Node-RED...
> addon-node-red@ start /opt
> node $NODE_OPTIONS node_modules/node-red/red.js "--settings" "/etc/node-red/config.js"
2 Mar 16:54:45 - [info] 
Welcome to Node-RED
===================
2 Mar 16:54:45 - [info] Node-RED version: v1.0.4
2 Mar 16:54:45 - [info] Node.js  version: v12.15.0
2 Mar 16:54:45 - [info] Linux 4.19.93-v7 arm LE
2 Mar 16:54:46 - [info] Loading palette nodes
2 Mar 16:54:47 - [debug] Module: node-red-contrib-home-assistant-websocket 0.21.3
2 Mar 16:54:47 - [debug]         /config/node-red/node_modules/node-red-contrib-home-assistant-websocket
2 Mar 16:54:47 - [debug] Module: node-red-node-timeswitch 0.0.7
2 Mar 16:54:47 - [debug]         /config/node-red/node_modules/node-red-node-timeswitch
2 Mar 16:54:47 - [debug] Module: node-red-contrib-actionflows 2.0.3
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-contrib-actionflows
2 Mar 16:54:47 - [debug] Module: node-red-contrib-alexa-home-skill 0.1.17
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-contrib-alexa-home-skill
2 Mar 16:54:47 - [debug] Module: node-red-contrib-bigtimer 2.2.6
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-contrib-bigtimer
2 Mar 16:54:47 - [debug] Module: node-red-contrib-cast 0.2.14
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-contrib-cast
2 Mar 16:54:47 - [debug] Module: node-red-contrib-counter 0.1.5
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-contrib-counter
2 Mar 16:54:47 - [debug] Module: node-red-contrib-home-assistant-websocket 0.21.3 *ignored due to local copy*
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-contrib-home-assistant-websocket
2 Mar 16:54:47 - [debug] Module: node-red-contrib-http-request 0.1.14
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-contrib-http-request
2 Mar 16:54:47 - [debug] Module: node-red-contrib-influxdb 0.4.0
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-contrib-influxdb
2 Mar 16:54:47 - [debug] Module: node-red-contrib-interval-length 0.0.4
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-contrib-interval-length
2 Mar 16:54:47 - [debug] Module: node-red-contrib-looptimer 0.0.8
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-contrib-looptimer
2 Mar 16:54:47 - [debug] Module: node-red-contrib-modbus 5.2.0
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-contrib-modbus
2 Mar 16:54:47 - [debug] Module: node-red-contrib-moment 3.0.3
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-contrib-moment
2 Mar 16:54:47 - [debug] Module: node-red-contrib-state-machine 1.2.0
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-contrib-state-machine
2 Mar 16:54:47 - [debug] Module: node-red-contrib-statistics 2.2.2
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-contrib-statistics
2 Mar 16:54:47 - [debug] Module: node-red-contrib-stoptimer 0.0.7
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-contrib-stoptimer
2 Mar 16:54:47 - [debug] Module: node-red-contrib-sunevents 2.0.2
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-contrib-sunevents
2 Mar 16:54:47 - [debug] Module: node-red-contrib-time-range-switch 1.0.0
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-contrib-time-range-switch
2 Mar 16:54:47 - [debug] Module: node-red-contrib-timecheck 1.1.0
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-contrib-timecheck
2 Mar 16:54:47 - [debug] Module: node-red-contrib-traffic 0.2.1
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-contrib-traffic
2 Mar 16:54:47 - [debug] Module: node-red-dashboard 2.19.4
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-dashboard
2 Mar 16:54:47 - [debug] Module: node-red-node-base64 0.2.1
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-node-base64
2 Mar 16:54:47 - [debug] Module: node-red-node-email 1.7.7
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-node-email
2 Mar 16:54:47 - [debug] Module: node-red-node-feedparser 0.1.15
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-node-feedparser
2 Mar 16:54:47 - [debug] Module: node-red-node-geofence 0.1.2
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-node-geofence
2 Mar 16:54:47 - [debug] Module: node-red-node-msgpack 1.2.1
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-node-msgpack
2 Mar 16:54:47 - [debug] Module: node-red-node-pi-gpio 1.0.6
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-node-pi-gpio
2 Mar 16:54:47 - [debug] Module: node-red-node-ping 0.1.0
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-node-ping
2 Mar 16:54:47 - [debug] Module: node-red-node-random 0.1.4
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-node-random
2 Mar 16:54:47 - [debug] Module: node-red-node-rbe 0.2.8
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-node-rbe
2 Mar 16:54:47 - [debug] Module: node-red-node-sentiment 0.1.6
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-node-sentiment
2 Mar 16:54:47 - [debug] Module: node-red-node-serialport 0.10.0
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-node-serialport
2 Mar 16:54:47 - [debug] Module: node-red-node-smooth 0.1.2
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-node-smooth
2 Mar 16:54:47 - [debug] Module: node-red-node-suncalc 0.0.12
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-node-suncalc
2 Mar 16:54:47 - [debug] Module: node-red-node-tail 0.1.1
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-node-tail
2 Mar 16:54:47 - [debug] Module: node-red-node-twitter 1.1.6
2 Mar 16:54:47 - [debug]         /opt/node_modules/node-red-node-twitter
2 Mar 16:54:54 - [info] Dashboard version 2.19.4 started at /endpoint/ui
2 Mar 16:54:56 - [info] Settings file  : /etc/node-red/config.js
2 Mar 16:54:56 - [info] Context store  : 'default' [module=memory]
2 Mar 16:54:56 - [info] User directory : /config/node-red/
2 Mar 16:54:56 - [warn] Projects disabled : editorTheme.projects.enabled=false
2 Mar 16:54:56 - [info] Flows file     : /config/node-red/flows.json
2 Mar 16:54:56 - [info] Server now running at http://127.0.0.1:46836/
2 Mar 16:54:56 - [debug] loaded flow revision: 3bb6a3f02481ff110ae65efbd7ebc7e2
2 Mar 16:54:56 - [debug] red/runtime/nodes/credentials.load : user provided key
2 Mar 16:54:56 - [debug] red/runtime/nodes/credentials.load : keyType=user
[16:54:56] INFO: Starting NGinx...
2 Mar 16:54:56 - [info] Starting flows
2 Mar 16:54:56 - [debug] red/nodes/flows.start : starting flow : global
2 Mar 16:54:56 - [debug] red/nodes/flows.start : not starting disabled flow : e76a3c6d.46659
2 Mar 16:54:56 - [debug] red/nodes/flows.start : not starting disabled flow : b4f1a4b7.9b423
2 Mar 16:54:56 - [debug] red/nodes/flows.start : not starting disabled flow : 5a6eca16.65a33c
2 Mar 16:54:56 - [debug] red/nodes/flows.start : not starting disabled flow : a92f6119.605378
2 Mar 16:54:56 - [debug] red/nodes/flows.start : starting flow : eef546ef.b803a8
2 Mar 16:54:56 - [debug] [server:Home Assistant] instantiated node, name: Home Assistant
nginx: [alert] detected a LuaJIT version which is not OpenResty's; many optimizations will be disabled and performance will be compromised (see https://github.com/openresty/luajit2 for OpenResty's LuaJIT or, even better, consider using the OpenResty releases from https://openresty.org/en/download.html)
2 Mar 16:54:57 - [debug] [ha-entity:SDM230Voltage] instantiated node, name: SDM230Voltage
2 Mar 16:54:57 - [debug] [ha-entity:SDM230Current] instantiated node, name: SDM230Current
2 Mar 16:54:57 - [debug] [ha-entity:SDM230Power] instantiated node, name: SDM230Power
2 Mar 16:54:57 - [debug] [ha-entity:SDM230EnergyImport] instantiated node, name: SDM230EnergyImport
2 Mar 16:54:57 - [debug] [ha-entity:SDM230EnergyExport] instantiated node, name: SDM230EnergyExport
2 Mar 16:54:58 - [debug] [ha-entity:SDM120Voltage] instantiated node, name: SDM120Voltage
2 Mar 16:54:58 - [debug] [ha-entity:SDM120Current] instantiated node, name: SDM120Current
2 Mar 16:54:58 - [debug] [ha-entity:SDM120Power] instantiated node, name: SDM120Power
2 Mar 16:54:58 - [debug] [ha-entity:SDM120EnergySolar] instantiated node, name: SDM120EnergySolar
2 Mar 16:54:58 - [debug] [api-call-service:Tell Me] instantiated node, name: Tell Me
2 Mar 16:54:58 - [debug] [api-current-state:No Solar?] instantiated node, name: No Solar?
2 Mar 16:54:58 - [info] Started flows
2 Mar 16:55:01 - [info] [server:Home Assistant] WebSocket Connecting http://supervisor/core
2 Mar 16:55:02 - [info] [server:Home Assistant] WebSocket Connected to http://supervisor/core
2 Mar 16:55:02 - [debug] [server:Home Assistant] config server event listener connected
[02/Mar/2020:17:00:18 +0100] 200 192.168.1.120, 172.30.32.1(172.30.32.2) GET /icons/node-red/debug.svg HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36)
[02/Mar/2020:17:00:18 +0100] 200 192.168.1.120, 172.30.32.1(172.30.32.2) GET /icons/node-red/debug.svg HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36)
[02/Mar/2020:17:00:19 +0100] 200 192.168.1.120, 172.30.32.1(172.30.32.2) GET /red/images/typedInput/expr.svg HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36)
[02/Mar/2020:17:00:29 +0100] 200 192.168.1.120, 172.30.32.1(172.30.32.2) GET /icons/node-red/debug.svg HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36)
[02/Mar/2020:17:00:29 +0100] 200 192.168.1.120, 172.30.32.1(172.30.32.2) GET /icons/node-red/debug.svg HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36)
[02/Mar/2020:17:00:33 +0100] 200 192.168.1.120, 172.30.32.1(172.30.32.2) GET /icons/node-red/debug.svg HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36)
[02/Mar/2020:17:00:33 +0100] 200 192.168.1.120, 172.30.32.1(172.30.32.2) GET /icons/node-red/debug.svg HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36)
[02/Mar/2020:17:00:36 +0100] 200 192.168.1.120, 172.30.32.1(172.30.32.2) GET /icons/node-red/debug.svg HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36)
[02/Mar/2020:17:00:36 +0100] 200 192.168.1.120, 172.30.32.1(172.30.32.2) GET /icons/node-red/debug.svg HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36)
[02/Mar/2020:17:00:39 +0100] 200 192.168.1.120, 172.30.32.1(172.30.32.2) GET /icons/node-red/debug.svg HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36)
[02/Mar/2020:17:00:39 +0100] 200 192.168.1.120, 172.30.32.1(172.30.32.2) GET /icons/node-red/debug.svg HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36)
[02/Mar/2020:17:00:42 +0100] 200 192.168.1.120, 172.30.32.1(172.30.32.2) GET /icons/node-red/debug.svg HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36)
[02/Mar/2020:17:00:42 +0100] 200 192.168.1.120, 172.30.32.1(172.30.32.2) GET /icons/node-red/debug.svg HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36)
[02/Mar/2020:17:00:47 +0100] 200 192.168.1.120, 172.30.32.1(172.30.32.2) GET /icons/node-red/debug.svg HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36)
[02/Mar/2020:17:00:47 +0100] 200 192.168.1.120, 172.30.32.1(172.30.32.2) GET /icons/node-red/debug.svg HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36)
[02/Mar/2020:17:00:51 +0100] 200 192.168.1.120, 172.30.32.1(172.30.32.2) GET /icons/node-red/debug.svg HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36)
[02/Mar/2020:17:00:51 +0100] 200 192.168.1.120, 172.30.32.1(172.30.32.2) GET /icons/node-red/debug.svg HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36)
[02/Mar/2020:17:00:55 +0100] 200 192.168.1.120, 172.30.32.1(172.30.32.2) GET /icons/node-red/debug.svg HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36)
[02/Mar/2020:17:00:55 +0100] 200 192.168.1.120, 172.30.32.1(172.30.32.2) GET /icons/node-red/debug.svg HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36)
xale12 commented 4 years ago

I have the same issue as you guy what should I do now T-T.

PierreScerri commented 4 years ago

I have completely eliminated all Modbus errors by triggering the Getter Nodes sequentially:

Screenshot 2020-04-01 at 12 34 02

The inject node triggers every 10s the first Modbus getter, this triggers the next and that triggers the next, etc.

The Sunset/sunrise node stops triggering unwanted Getters when it is dark.

xale12 commented 4 years ago

[{"id":"22233acf.4270e6","type":"function","z":"9a9b9e8d.7e73e","name":"16 Bit INT 16001","func":"msg.payload={};\nvar buf=Buffer.alloc(2);\nbuf.writeInt16BE(16001);\nmsg.payload.buffer=buf;\nreturn msg;","outputs":1,"noerr":0,"x":340,"y":1000,"wires":[["3fa5a00f.14015"]]}]

xale12 commented 4 years ago

I use the Modbus protocol to communicate between OpenPLC Master and Raspberry like a slave device ( I make raspberry like a PLC). When I control the simulation Modbus TCP /IP b MODSIM app It run perfectly . But when I write to my open PLC analog PIN QW0, it does not accept my command.

PierreScerri commented 4 years ago

Sorry can't help with that. Don't know what it is.