willhey / mcp23017chip

Node-red mcp23017chip
MIT License
6 stars 7 forks source link

Inverting outputs #2

Open Lusitan-o opened 6 years ago

Lusitan-o commented 6 years ago

Could someone please tell me were to modify the code to have the outputs inverted? I'm a beginner and any baby steps would be appreciated. I need to initialize the outputs HIGH when chip first powers on and a low to turn ON. I have some relays connected to the mcp23017 that use inverted outputs and require LOW on the pin to be ON and a HIGH on the pin to be OFF. I've tried to use a flow to inject once at start 1 to turn all outputs OFF, but when the node-red starts it momentarily turns the relays ON.

Thanks.

willhey commented 6 years ago

Hi, I can't recreate you scenario. The MCP23017 will retain it's state until told otherwise by the node So restarting Node-red has should not momentarily turn the output on.
How are you using the MCP23017 - is then any other circuitry involved Please can you attach your flow

Lusitan-o commented 6 years ago

Hi willhey, Thanks for your reply. As far as I know, there are two nodes for Microchip MCP23017 one is the node-red-contrib-mcp23017 that is 2 years, 3 months and I can't seem to be able to install it and the other is node-red-contrib-mcp23017chip, that it installs fine and works. For a end user point of view there should be no difference on the flow except that node-red-contrib-mcp23017 has the outputs inverted. Because I'm dealing with a rack of OPTO22 G4PB16H solid state relays connected to the MCP23017 I need to have the outputs inverted. In other words, instead having a Low I need a High when the node loads or inverted outputs.

Here is the test flow were I try to bring the outputs to high state :

[{"id":"3b50972a.ea44d8","type":"mcp23017output","z":"e4703339.23974","name":"Bit 0","chip":"6082953.a63a06c","bitNum":"0","invert":true,"x":338,"y":119,"wires":[[]]},{"id":"8c0347e6.509b88","type":"inject","z":"e4703339.23974","name":"All Off","topic":"","payload":"1","payloadType":"num","repeat":"","crontab":"","once":true,"x":151,"y":48,"wires":[["3b50972a.ea44d8","1ac25a0f.1592f6","ee6067f0.573dd8","27187596.f16f4a","7b93cc7f.cdd284"]]},{"id":"e46c9f0.e70666","type":"inject","z":"e4703339.23974","name":"Relay 1 - ON","topic":"0","payload":"","payloadType":"num","repeat":"","crontab":"","once":false,"x":122,"y":117,"wires":[["3b50972a.ea44d8"]]},{"id":"1ac25a0f.1592f6","type":"mcp23017output","z":"e4703339.23974","name":"Bit 1","chip":"6082953.a63a06c","bitNum":"1","invert":true,"x":336,"y":193,"wires":[[]]},{"id":"ee6067f0.573dd8","type":"mcp23017output","z":"e4703339.23974","name":"Bit 2","chip":"6082953.a63a06c","bitNum":"2","invert":false,"x":331,"y":252,"wires":[[]]},{"id":"27187596.f16f4a","type":"mcp23017output","z":"e4703339.23974","name":"Bit 3","chip":"6082953.a63a06c","bitNum":"3","invert":false,"x":327,"y":341,"wires":[[]]},{"id":"7b93cc7f.cdd284","type":"mcp23017output","z":"e4703339.23974","name":"Bit 4","chip":"6082953.a63a06c","bitNum":"4","invert":false,"x":327,"y":411,"wires":[[]]},{"id":"260d295b.3f2196","type":"inject","z":"e4703339.23974","name":"Relay 2 - ON","topic":"0","payload":"","payloadType":"num","repeat":"","crontab":"","once":false,"x":111,"y":182,"wires":[["1ac25a0f.1592f6"]]},{"id":"3943300e.c8b43","type":"inject","z":"e4703339.23974","name":"Relay 4 - ON","topic":"0","payload":"","payloadType":"num","repeat":"","crontab":"","once":false,"x":114,"y":288,"wires":[["27187596.f16f4a"]]},{"id":"17ffe964.f05c37","type":"inject","z":"e4703339.23974","name":"Relay 3 - ON","topic":"0","payload":"","payloadType":"num","repeat":"","crontab":"","once":false,"x":109,"y":234,"wires":[["ee6067f0.573dd8"]]},{"id":"95144d6e.b8afe","type":"inject","z":"e4703339.23974","name":"Relay 5 - ON","topic":"0","payload":"","payloadType":"num","repeat":"","crontab":"","once":false,"x":117,"y":338,"wires":[["7b93cc7f.cdd284"]]},{"id":"6082953.a63a06c","type":"mcp23017chip","z":"","addr":"0x21","interval":"100"}]

Thanks for any help.

On Sun, Jan 7, 2018 at 11:27 AM, willhey notifications@github.com wrote:

Hi, I can't recreate you scenario. The MCP23017 will retain it's state until told otherwise by the node So restarting Node-red has should not momentarily turn the output on. How are you using the MCP23017 - is then any other circuitry involved Please can you attach your flow

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/willhey/mcp23017chip/issues/2#issuecomment-355845933, or mute the thread https://github.com/notifications/unsubscribe-auth/AhjiShQNkdKbIWXiddN5mWJx2x1VHutoks5tIRqigaJpZM4RVjI- .

Fraenkiman commented 4 years ago

Hello Willhey,

apparently I have the same problem as Lisitan-o. It would be great if they look at my flow.

Actual state: after pressing the first "ui_switch", all 16 relays are activated.

DESIRED state: after pressing the first "ui_switch", only the relay connected to the "ui_switch" goes.

Reproducibility: Call the board, press one of the 16 "ui_switch".

[ { "id": "1bef20e4.475dff", "type": "tab", "label": "Relaiskarte v1.52", "disabled": false, "info": "" }, { "id": "3d6c6294.a4288e", "type": "mcp23017chip", "z": "", "addr": "0x27", "interval": "100" }, { "id": "1f902ae5.dad535", "type": "ui_tab", "z": "", "name": "Home", "icon": "dashboard", "disabled": false, "hidden": false }, { "id": "8508b881.3d2d58", "type": "ui_base", "theme": { "name": "theme-light", "lightTheme": { "default": "#0094CE", "baseColor": "#0094CE", "baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif", "edited": true, "reset": false }, "darkTheme": { "default": "#097479", "baseColor": "#097479", "baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif", "edited": false }, "customTheme": { "name": "Untitled Theme 1", "default": "#4B7930", "baseColor": "#4B7930", "baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif" }, "themeState": { "base-color": { "default": "#0094CE", "value": "#0094CE", "edited": false }, "page-titlebar-backgroundColor": { "value": "#0094CE", "edited": false }, "page-backgroundColor": { "value": "#fafafa", "edited": false }, "page-sidebar-backgroundColor": { "value": "#ffffff", "edited": false }, "group-textColor": { "value": "#1bbfff", "edited": false }, "group-borderColor": { "value": "#ffffff", "edited": false }, "group-backgroundColor": { "value": "#ffffff", "edited": false }, "widget-textColor": { "value": "#111111", "edited": false }, "widget-backgroundColor": { "value": "#0094ce", "edited": false }, "widget-borderColor": { "value": "#ffffff", "edited": false }, "base-font": { "value": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif" } }, "angularTheme": { "primary": "indigo", "accents": "blue", "warn": "red", "background": "grey" } }, "site": { "name": "Node-RED Dashboard", "hideToolbar": "false", "allowSwipe": "false", "lockMenu": "false", "allowTempTheme": "true", "dateFormat": "DD/MM/YYYY", "sizes": { "sx": 48, "sy": 48, "gx": 6, "gy": 6, "cx": 6, "cy": 6, "px": 0, "py": 0 } } }, { "id": "c1288be4.97eef8", "type": "ui_group", "z": "", "name": "Standort", "tab": "1f902ae5.dad535", "disp": true, "width": "6", "collapse": false }, { "id": "2f17f89e.480b78", "type": "ui_tab", "z": "", "name": "LS-Simulation", "icon": "dashboard", "disabled": false, "hidden": false }, { "id": "4a93bf75.69f62", "type": "ui_group", "z": "", "name": "Fehlerbild-Switch-Gruppe", "tab": "2f17f89e.480b78", "disp": true, "width": "6", "collapse": false }, { "id": "f8415620.df4e58", "type": "ui_group", "z": "", "name": "Anschluss", "tab": "1f902ae5.dad535", "disp": true, "width": "6", "collapse": false }, { "id": "948c8298.0a58a", "type": "ui_group", "z": "", "name": "Ansprechpartner", "tab": "1f902ae5.dad535", "disp": true, "width": "6", "collapse": false }, { "id": "4cf716c7.937ea8", "type": "ui_group", "z": "", "name": "FRITZ!Box", "tab": "1f902ae5.dad535", "disp": true, "width": "6", "collapse": false }, { "id": "c89de1f.ba6b22", "type": "ui_group", "z": "", "name": "RESET-Button-Gruppe", "tab": "2f17f89e.480b78", "disp": true, "width": "6", "collapse": true }, { "id": "82e3e405.721c58", "type": "ui_text", "z": "1bef20e4.475dff", "group": "c1288be4.97eef8", "order": 1, "width": 0, "height": 0, "name": "", "label": "Standort-text 1", "format": "{{msg.payload}}", "layout": "col-center", "x": 140, "y": 40, "wires": [] }, { "id": "8cb9ef2a.cb4ce", "type": "ui_text", "z": "1bef20e4.475dff", "group": "f8415620.df4e58", "order": 2, "width": 0, "height": 0, "name": "", "label": "Anschluss-text 2", "format": "{{msg.payload}}", "layout": "col-center", "x": 140, "y": 80, "wires": [] }, { "id": "589dbaae.36cf54", "type": "ui_text", "z": "1bef20e4.475dff", "group": "948c8298.0a58a", "order": 3, "width": 0, "height": 0, "name": "", "label": "Anschrechpartner-text 3", "format": "{{msg.payload}}", "layout": "col-center", "x": 170, "y": 140, "wires": [] }, { "id": "310c1dcb.1f3872", "type": "mcp23017output", "z": "1bef20e4.475dff", "name": "R1 Fremspannung", "chip": "3d6c6294.a4288e", "bitNum": "0", "invert": true, "x": 1090, "y": 40, "wires": [ [] ] }, { "id": "6c7b6c0c.6983e4", "type": "mcp23017output", "z": "1bef20e4.475dff", "name": "R2 Fremdspannung", "chip": "3d6c6294.a4288e", "bitNum": "1", "invert": true, "x": 1100, "y": 100, "wires": [ [] ] }, { "id": "fb55b74c.4a7a98", "type": "mcp23017output", "z": "1bef20e4.475dff", "name": "R3 Lang Offfen", "chip": "3d6c6294.a4288e", "bitNum": "2", "invert": true, "x": 1080, "y": 200, "wires": [ [] ] }, { "id": "97b24a01.a20388", "type": "mcp23017output", "z": "1bef20e4.475dff", "name": "R4 Lang Offen", "chip": "3d6c6294.a4288e", "bitNum": "3", "invert": true, "x": 1080, "y": 260, "wires": [ [] ] }, { "id": "4ec37644.fab738", "type": "ui_switch", "z": "1bef20e4.475dff", "name": "", "label": "Fremdspannung", "tooltip": "", "group": "4a93bf75.69f62", "order": 1, "width": 0, "height": 0, "passthru": true, "decouple": "false", "topic": "", "style": "", "onvalue": "false", "onvalueType": "bool", "onicon": "", "oncolor": "", "offvalue": "true", "offvalueType": "bool", "officon": "", "offcolor": "", "x": 660, "y": 40, "wires": [ [ "310c1dcb.1f3872", "6c7b6c0c.6983e4" ] ] }, { "id": "df09220d.11dca", "type": "ui_switch", "z": "1bef20e4.475dff", "name": "", "label": "Lang Offen", "tooltip": "", "group": "4a93bf75.69f62", "order": 4, "width": 0, "height": 0, "passthru": true, "decouple": "false", "topic": "", "style": "", "onvalue": "false", "onvalueType": "bool", "onicon": "", "oncolor": "", "offvalue": "true", "offvalueType": "bool", "officon": "", "offcolor": "", "x": 650, "y": 260, "wires": [ [ "fb55b74c.4a7a98", "97b24a01.a20388" ] ] }, { "id": "6c5ed1fb.bd3bf", "type": "mcp23017output", "z": "1bef20e4.475dff", "name": "R5 CuDa inhomogen", "chip": "3d6c6294.a4288e", "bitNum": "4", "invert": true, "x": 1100, "y": 360, "wires": [ [] ] }, { "id": "adf79e3d.92715", "type": "mcp23017output", "z": "1bef20e4.475dff", "name": "R6 verminderter Ableitwiderstand", "chip": "3d6c6294.a4288e", "bitNum": "5", "invert": true, "x": 1140, "y": 420, "wires": [ [] ] }, { "id": "34e2b86.cabb448", "type": "mcp23017output", "z": "1bef20e4.475dff", "name": "R7 Erdschluss einseitig", "chip": "3d6c6294.a4288e", "bitNum": "6", "invert": true, "x": 1110, "y": 480, "wires": [ [] ] }, { "id": "922b6e79.92edc", "type": "mcp23017output", "z": "1bef20e4.475dff", "name": "R8 kapazitiver Durchgang", "chip": "3d6c6294.a4288e", "bitNum": "7", "invert": true, "x": 1110, "y": 540, "wires": [ [] ] }, { "id": "8f89323e.48f57", "type": "mcp23017output", "z": "1bef20e4.475dff", "name": "R9 Durchgangswiderstand", "chip": "3d6c6294.a4288e", "bitNum": "8", "invert": true, "x": 1120, "y": 700, "wires": [ [] ] }, { "id": "46f1aab7.60fe54", "type": "mcp23017output", "z": "1bef20e4.475dff", "name": "R10 kein PPA", "chip": "3d6c6294.a4288e", "bitNum": "9", "invert": true, "x": 1080, "y": 760, "wires": [ [] ] }, { "id": "d25c789.ad51888", "type": "mcp23017output", "z": "1bef20e4.475dff", "name": "R11 zweiter PPA", "chip": "3d6c6294.a4288e", "bitNum": "10", "invert": true, "x": 1090, "y": 820, "wires": [ [] ] }, { "id": "61bf0655.74ddf8", "type": "mcp23017output", "z": "1bef20e4.475dff", "name": "R12 Kurzschluss", "chip": "3d6c6294.a4288e", "bitNum": "11", "invert": true, "x": 1090, "y": 880, "wires": [ [] ] }, { "id": "74a6c031.03c8b", "type": "mcp23017output", "z": "1bef20e4.475dff", "name": "R13 TAL-Kabel abgezogen", "chip": "3d6c6294.a4288e", "bitNum": "12", "invert": true, "x": 1120, "y": 940, "wires": [ [] ] }, { "id": "5dda9092.28de3", "type": "mcp23017output", "z": "1bef20e4.475dff", "name": "R14 12V AUS", "chip": "3d6c6294.a4288e", "bitNum": "13", "invert": true, "x": 1080, "y": 1000, "wires": [ [] ] }, { "id": "df8c7fee.00eb4", "type": "mcp23017output", "z": "1bef20e4.475dff", "name": "R15 5V AUS", "chip": "3d6c6294.a4288e", "bitNum": "14", "invert": true, "x": 1070, "y": 1060, "wires": [ [] ] }, { "id": "966b1e28.e4f57", "type": "mcp23017output", "z": "1bef20e4.475dff", "name": "R16-RPi-LCD AUS", "chip": "3d6c6294.a4288e", "bitNum": "15", "invert": true, "x": 1090, "y": 1120, "wires": [ [] ] }, { "id": "802ba994.19ad58", "type": "ui_switch", "z": "1bef20e4.475dff", "name": "", "label": "Cuda inhomogen", "tooltip": "", "group": "4a93bf75.69f62", "order": 5, "width": 0, "height": 0, "passthru": true, "decouple": "false", "topic": "", "style": "", "onvalue": "false", "onvalueType": "bool", "onicon": "", "oncolor": "", "offvalue": "true", "offvalueType": "bool", "officon": "", "offcolor": "", "x": 670, "y": 360, "wires": [ [ "6c5ed1fb.bd3bf" ] ] }, { "id": "c02a7bad.1563a8", "type": "ui_switch", "z": "1bef20e4.475dff", "name": "", "label": "Schlechte Isolierung", "tooltip": "verminderter Ableitwiderstand", "group": "4a93bf75.69f62", "order": 6, "width": 0, "height": 0, "passthru": true, "decouple": "false", "topic": "", "style": "", "onvalue": "false", "onvalueType": "bool", "onicon": "", "oncolor": "", "offvalue": "true", "offvalueType": "bool", "officon": "", "offcolor": "", "x": 680, "y": 420, "wires": [ [ "adf79e3d.92715" ] ] }, { "id": "c1461502.ce87f8", "type": "ui_switch", "z": "1bef20e4.475dff", "name": "", "label": "Erdschluss einseitig", "tooltip": "", "group": "4a93bf75.69f62", "order": 7, "width": 0, "height": 0, "passthru": true, "decouple": "false", "topic": "", "style": "", "onvalue": "false", "onvalueType": "bool", "onicon": "", "oncolor": "", "offvalue": "true", "offvalueType": "bool", "officon": "", "offcolor": "", "x": 680, "y": 480, "wires": [ [ "34e2b86.cabb448" ] ] }, { "id": "4fe9069d.bae858", "type": "ui_switch", "z": "1bef20e4.475dff", "name": "", "label": "nur kapazitiver Durchgang", "tooltip": "", "group": "4a93bf75.69f62", "order": 8, "width": 0, "height": 0, "passthru": true, "decouple": "false", "topic": "", "style": "", "onvalue": "false", "onvalueType": "bool", "onicon": "", "oncolor": "", "offvalue": "true", "offvalueType": "bool", "officon": "", "offcolor": "", "x": 690, "y": 540, "wires": [ [ "922b6e79.92edc" ] ] }, { "id": "2c300d46.128322", "type": "ui_switch", "z": "1bef20e4.475dff", "name": "", "label": "schlechtes Kabel", "tooltip": "Durchgangswiderstand", "group": "4a93bf75.69f62", "order": 9, "width": 0, "height": 0, "passthru": true, "decouple": "false", "topic": "", "style": "", "onvalue": "false", "onvalueType": "bool", "onicon": "", "oncolor": "", "offvalue": "true", "offvalueType": "bool", "officon": "", "offcolor": "", "x": 670, "y": 700, "wires": [ [ "8f89323e.48f57" ] ] }, { "id": "c9194555.b7e588", "type": "ui_switch", "z": "1bef20e4.475dff", "name": "", "label": "kein passiver Prüfabschluss", "tooltip": "kein PPA in der TAE", "group": "4a93bf75.69f62", "order": 10, "width": 0, "height": 0, "passthru": true, "decouple": "false", "topic": "", "style": "", "onvalue": "false", "onvalueType": "bool", "onicon": "", "oncolor": "", "offvalue": "true", "offvalueType": "bool", "officon": "", "offcolor": "", "x": 700, "y": 760, "wires": [ [ "46f1aab7.60fe54" ] ] }, { "id": "5d8c5971.ed3b28", "type": "ui_switch", "z": "1bef20e4.475dff", "name": "", "label": "zweite TAE-Dose mit PPA", "tooltip": "ein zweiter passiver Prüfabschluss", "group": "4a93bf75.69f62", "order": 11, "width": 0, "height": 0, "passthru": true, "decouple": "false", "topic": "", "style": "", "onvalue": "false", "onvalueType": "bool", "onicon": "", "oncolor": "", "offvalue": "true", "offvalueType": "bool", "officon": "", "offcolor": "", "x": 690, "y": 820, "wires": [ [ "d25c789.ad51888" ] ] }, { "id": "49c79fbb.5bcbe", "type": "ui_switch", "z": "1bef20e4.475dff", "name": "", "label": "Kurzschluss im TAL-Kabel", "tooltip": "Russenmuffe", "group": "4a93bf75.69f62", "order": 12, "width": 0, "height": 0, "passthru": true, "decouple": "false", "topic": "", "style": "", "onvalue": "false", "onvalueType": "bool", "onicon": "", "oncolor": "", "offvalue": "true", "offvalueType": "bool", "officon": "", "offcolor": "", "x": 690, "y": 880, "wires": [ [ "61bf0655.74ddf8" ] ] }, { "id": "1c806a12.7acd66", "type": "ui_switch", "z": "1bef20e4.475dff", "name": "", "label": "DSL-Stecker nicht in TAE-Dose", "tooltip": "Leermessung mit oder ohne PPA, TAL-Kabel abgezogen", "group": "4a93bf75.69f62", "order": 13, "width": 0, "height": 0, "passthru": true, "decouple": "false", "topic": "", "style": "", "onvalue": "false", "onvalueType": "bool", "onicon": "", "oncolor": "", "offvalue": "true", "offvalueType": "bool", "officon": "", "offcolor": "", "x": 710, "y": 940, "wires": [ [ "74a6c031.03c8b" ] ] }, { "id": "1b2c7e9d.bc16a1", "type": "ui_switch", "z": "1bef20e4.475dff", "name": "", "label": "FRITZ!Box stromlos", "tooltip": "12V AUS (Strom-RESET)", "group": "4a93bf75.69f62", "order": 14, "width": 0, "height": 0, "passthru": true, "decouple": "false", "topic": "", "style": "", "onvalue": "false", "onvalueType": "bool", "onicon": "", "oncolor": "", "offvalue": "true", "offvalueType": "bool", "officon": "", "offcolor": "", "x": 680, "y": 1000, "wires": [ [ "5dda9092.28de3" ] ] }, { "id": "4fd40891.a06b88", "type": "ui_switch", "z": "1bef20e4.475dff", "name": "", "label": "Kamera AUS", "tooltip": "5V AUS", "group": "4a93bf75.69f62", "order": 15, "width": 0, "height": 0, "passthru": true, "decouple": "false", "topic": "", "style": "", "onvalue": "false", "onvalueType": "bool", "onicon": "", "oncolor": "", "offvalue": "true", "offvalueType": "bool", "officon": "", "offcolor": "", "x": 650, "y": 1060, "wires": [ [ "df8c7fee.00eb4" ] ] }, { "id": "bcadfbd0.eea168", "type": "ui_switch", "z": "1bef20e4.475dff", "name": "", "label": "RPi-LCD-Bildschirm AUS", "tooltip": "Relais 16", "group": "4a93bf75.69f62", "order": 16, "width": 0, "height": 0, "passthru": true, "decouple": "false", "topic": "", "style": "", "onvalue": "false", "onvalueType": "bool", "onicon": "", "oncolor": "", "offvalue": "true", "offvalueType": "bool", "officon": "", "offcolor": "", "x": 690, "y": 1120, "wires": [ [ "966b1e28.e4f57" ] ] }, { "id": "6e16b93b.705118", "type": "ui_template", "z": "1bef20e4.475dff", "group": "4cf716c7.937ea8", "name": "zum FRITZ!Box-UI", "order": 4, "width": 0, "height": 0, "format": "<!DOCTYPE html>\n<html>\n <head>\n\t<style>\n\t.button {\n\tbackground-color: #086A87;\n\tborder: none;\n\tcolor: white;\n\tpadding: 16px 32px;\n\ttext-align: center;\n\ttext-decoration: none;\n\tfont-size: 16px;\n\tmargin: 3px 1px;\n\tcursor: pointer;\n\tborder-radius: 4px;\n\t}\n\t.button_over:hover {\n\tbackground-color: #187A97;\n\tcolor: white;\n\t}\n\t</style>\n </head>\n <body>\n\t<a href=\"http://192.168.178.1\" class=\"button button_over\">Benutzeroberfläche</a>\n </body>\n\t</html>", "storeOutMessages": false, "fwdInMessages": false, "templateScope": "local", "x": 150, "y": 380, "wires": [ [] ] }, { "id": "369043c9.20407c", "type": "ui_button", "z": "1bef20e4.475dff", "name": "", "group": "c89de1f.ba6b22", "order": 17, "width": 0, "height": 0, "passthru": false, "label": "RESET", "tooltip": "", "color": "", "bgcolor": "", "icon": "", "payload": "true", "payloadType": "bool", "topic": "", "x": 420, "y": 620, "wires": [ [ "4ec37644.fab738", "df09220d.11dca", "802ba994.19ad58", "c02a7bad.1563a8", "c1461502.ce87f8", "4fe9069d.bae858", "2c300d46.128322", "c9194555.b7e588", "5d8c5971.ed3b28", "49c79fbb.5bcbe", "1c806a12.7acd66", "1b2c7e9d.bc16a1", "4fd40891.a06b88", "bcadfbd0.eea168", "310c1dcb.1f3872", "6c7b6c0c.6983e4", "fb55b74c.4a7a98", "97b24a01.a20388", "6c5ed1fb.bd3bf", "adf79e3d.92715", "34e2b86.cabb448", "922b6e79.92edc", "8f89323e.48f57", "46f1aab7.60fe54", "d25c789.ad51888", "61bf0655.74ddf8", "74a6c031.03c8b", "5dda9092.28de3", "df8c7fee.00eb4", "966b1e28.e4f57" ] ] } ]

Fraenkiman commented 4 years ago

Hello @Lusitan-o

did you get to your issue (MCP23017)? Are you still using this node? If so, I would be happy about your solution.

Hello @willhey

Do you have a solution or did you discover a mistake in my flow (my comment from November 24th, 2019)?

Best regards from Germany

PizzaProgram commented 3 years ago

I've created a complete rewrite of the code. If @willhey accepts my Pull Req., there will be a new CheckBox : Invert.

Until than, you can manually install / update the source code from here: https://github.com/PizzaProgram/mcp23017chip