david-kasparov / node-red-contrib-pcf8574-cluster

3 stars 2 forks source link

For each PCF8574 in a cluster the first input does not function #5

Closed S-Przybylski closed 3 years ago

S-Przybylski commented 5 years ago

Dear all, I tried to use the node-red-contrib-pcf8574-cluster and ran into a problem:

For each expander the first input node does not function at all. All others are working as expected. If you delete the dead node (e.g. pin 1) and create a replacement, the next input (e.g. pin 2) will not function any more. I tried to replace all input nodes but the problem resists. For me it seems to be an initialisation issue of the first pcf8574 input component (listed in the flow). This issue repeats for all physical pcf8574 in that installation. Hopefully someone has an idea to solve my issue!

Hardware: Raspberry 3b+ with 7 x PCF8574 input modules from www.horter-shop.de; sharing one interrupt. Configruation: Node Red 0.19.5 with the mentioned extension you provided.

Simplifid example: here PIN 8 does not work at all! [{"id":"7f6f2cde.1dfa74","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"b3b6f390.38cd48","type":"debug","z":"7f6f2cde.1dfa74","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":630,"y":200,"wires":[]},{"id":"184dbcc4.863c1b","type":"function","z":"7f6f2cde.1dfa74","name":"nothing","func":"return msg;","outputs":1,"noerr":0,"x":420,"y":200,"wires":[["b3b6f390.38cd48"]]},{"id":"8d086119.f9c2f8","type":"cluster-in","z":"7f6f2cde.1dfa74","cluster":"329dc4c7.5fabb4","name":"8","pin":"8","inverted":true,"x":70,"y":360,"wires":[["184dbcc4.863c1b"]]},{"id":"53f65e44.934d6","type":"cluster-in","z":"7f6f2cde.1dfa74","cluster":"329dc4c7.5fabb4","name":"1","pin":"1","inverted":true,"x":70,"y":80,"wires":[["184dbcc4.863c1b"]]},{"id":"45664723.9f555","type":"cluster-in","z":"7f6f2cde.1dfa74","cluster":"329dc4c7.5fabb4","name":"2","pin":"2","inverted":true,"x":70,"y":120,"wires":[["184dbcc4.863c1b"]]},{"id":"56245246.6df00c","type":"cluster-in","z":"7f6f2cde.1dfa74","cluster":"329dc4c7.5fabb4","name":"3","pin":"3","inverted":true,"x":70,"y":160,"wires":[["184dbcc4.863c1b"]]},{"id":"e6239a4b.7a8f6","type":"cluster-in","z":"7f6f2cde.1dfa74","cluster":"329dc4c7.5fabb4","name":"4","pin":"4","inverted":true,"x":70,"y":200,"wires":[["184dbcc4.863c1b"]]},{"id":"b315a9ca.9ca188","type":"cluster-in","z":"7f6f2cde.1dfa74","cluster":"329dc4c7.5fabb4","name":"5","pin":"5","inverted":true,"x":70,"y":240,"wires":[["184dbcc4.863c1b"]]},{"id":"46bbf6d2.a63808","type":"cluster-in","z":"7f6f2cde.1dfa74","cluster":"329dc4c7.5fabb4","name":"6","pin":"6","inverted":true,"x":70,"y":280,"wires":[["184dbcc4.863c1b"]]},{"id":"9c1a1d03.0f342","type":"cluster-in","z":"7f6f2cde.1dfa74","cluster":"329dc4c7.5fabb4","name":"7","pin":"7","inverted":true,"x":70,"y":320,"wires":[["184dbcc4.863c1b"]]},{"id":"ac709d4a.510648","type":"comment","z":"7f6f2cde.1dfa74","name":"Input Register using 1 x PCF8574. Pin8 is dead. Driver issue?","info":"","x":230,"y":40,"wires":[]},{"id":"329dc4c7.5fabb4","type":"cluster-configurator","z":"","addresses":"{ \"addresses\": [32]}","initialStates":"{ \"initial_states\": [false] }","interrupts":"{ \"interrupts\": [{ \"index\": 1, \"pin\": 17 }] }"}]

S-Przybylski commented 5 years ago

Dear @david-kasparov do you have any news about my existing problem (i just updated to the version 0.0.5; without success) ? Could I set up debuging ?

S-Przybylski commented 3 years ago

closed - now I use an ESP32 with ESPHOME without any problem!