{"library":"node-red-contrib-toggle","title":"node-red-contrib-toggle","description":"Toggle switch node for Node-RED that stores state and provides ON/OFF/toggle operations without function nodes or flow variables. Version 0.1.1 is current. Configuration supports string, number, or boolean payloads, optional topic filtering, and three pass-through modes: never, on change, or always. Output msg forwards on valid command with state indicated by node status (green/red dot). Compatible with Node-RED 1.x+. Differentiators: no coding required, state persistence across flows, simple visual interface.","language":"javascript","status":"active","last_verified":"Sat May 09","install":{"commands":["npm install node-red-contrib-toggle"],"cli":null},"imports":["import toggle from 'node-red-contrib-toggle';","const RED = require('node-red');","RED.nodes.registerType('toggle', toggleNode);"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// Example: Create a flow using node-red-contrib-toggle\n// 1. Install: npm install node-red-contrib-toggle\n// 2. In Node-RED UI, drag a 'toggle' node onto canvas\n// 3. Configure: set ON value to true, OFF value to false, Toggle value to 'toggle'\n// 4. Connect an inject node (msg.payload = true) to turn on\n// 5. Connect another inject node (msg.payload = 'toggle') to toggle\n// 6. Deploy and see green dot when on, red when off.","lang":"javascript","description":"Basic installation and usage of toggle node with inject nodes.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}