{"_id":"@abuuwais/node-red-contrib-mqtt-to-boolean","_rev":"3-aca6e41dcd3b5fdecf902738265a7f48","name":"@abuuwais/node-red-contrib-mqtt-to-boolean","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@abuuwais/node-red-contrib-mqtt-to-boolean","version":"1.0.0","keywords":["node-red","mqtt","boolean","status","iot"],"author":{"name":"Abu Uwais Triyadi","email":"uwaiscode@gmail.com"},"license":"MIT","_id":"@abuuwais/node-red-contrib-mqtt-to-boolean@1.0.0","maintainers":[{"name":"abuuwais","email":"uwaiscode@gmail.com"}],"dist":{"shasum":"dd5977b83494cb0b8332eed87ef98195559a7b28","tarball":"https://registry.npmjs.org/@abuuwais/node-red-contrib-mqtt-to-boolean/-/node-red-contrib-mqtt-to-boolean-1.0.0.tgz","fileCount":4,"integrity":"sha512-0NETXMWQPib6q+YgxYCfxoqfMTKjPoW7h9YUkk1WLiXSY+RnhC27VYS+sg+6Bo2kpX02L44v2Lln3eUd3TtWKg==","signatures":[{"sig":"MEUCIQD7VDiBzXxldVsNC+iLECK3diK+a/ATtnE0TKT/oVAZmQIgWL6rTAxMW5375ehwaN/qb9Pv7TfAWrhGrS+USYbxxL8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8187},"_npmUser":{"name":"abuuwais","email":"uwaiscode@gmail.com"},"node-red":{"nodes":{"mqtt-to-boolean":"mqtt-to-boolean.js"}},"_npmVersion":"11.6.2","description":"A Node-RED node that sends a message to an MQTT broker and outputs a boolean status.","directories":{},"_nodeVersion":"24.13.0","dependencies":{},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/node-red-contrib-mqtt-to-boolean_1.0.0_1770949496116_0.32329761613388563","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@abuuwais/node-red-contrib-mqtt-to-boolean","version":"1.0.1","keywords":["node-red","mqtt","boolean","status","iot"],"author":{"name":"Abu Uwais Triyadi","email":"uwaiscode@gmail.com"},"license":"MIT","_id":"@abuuwais/node-red-contrib-mqtt-to-boolean@1.0.1","maintainers":[{"name":"abuuwais","email":"uwaiscode@gmail.com"}],"dist":{"shasum":"1fd72d1063c20aa4da4e717b75510877d52c93a5","tarball":"https://registry.npmjs.org/@abuuwais/node-red-contrib-mqtt-to-boolean/-/node-red-contrib-mqtt-to-boolean-1.0.1.tgz","fileCount":4,"integrity":"sha512-jc/VfB0RJeEzSJnpTR1zc66Z5jEnwd8aCz4iIh9OcRD7UMiYTwx9Vv6pZbZ8pjjqk+d5QvQcjh0JUAUvmm1P0Q==","signatures":[{"sig":"MEQCIFBRKUBdg+msog8ht8ihWbKYXeON7DBYvnTGQQiQwrDYAiBAIXt6qRT+uNs/p38ktnylAdZTw/E3iuUeDIE7WlBmWg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8165},"_npmUser":{"name":"abuuwais","email":"uwaiscode@gmail.com"},"node-red":{"nodes":{"mqtt-to-boolean":"mqtt-to-boolean.js"}},"_npmVersion":"11.6.2","description":"A Node-RED node that sends a message to an MQTT broker and outputs a boolean status.","directories":{},"_nodeVersion":"24.13.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/node-red-contrib-mqtt-to-boolean_1.0.1_1770949645502_0.9183425306262294","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@abuuwais/node-red-contrib-mqtt-to-boolean","version":"1.0.2","description":"A Node-RED node that sends a message to an MQTT broker and outputs a boolean status.","author":{"name":"Abu Uwais Triyadi","email":"uwaiscode@gmail.com"},"license":"MIT","keywords":["node-red","mqtt","boolean","status","iot"],"node-red":{"nodes":{"mqtt-to-boolean":"mqtt-to-boolean.js"}},"gitHead":"6fc227c2441d047b41dd3fc18155fbbeaef719e8","_id":"@abuuwais/node-red-contrib-mqtt-to-boolean@1.0.2","_nodeVersion":"24.13.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-KKcwquBo17I5dfuXNzCjafTML/hVc2rAmavGkyoZpNLXUetIiyT5EG5yIGLrPL7I07ssXjEKCzEeoYr2Q91Jxw==","shasum":"467e3bf18ad2b8d20939920dfb49b921949ee249","tarball":"https://registry.npmjs.org/@abuuwais/node-red-contrib-mqtt-to-boolean/-/node-red-contrib-mqtt-to-boolean-1.0.2.tgz","fileCount":4,"unpackedSize":8165,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIC3hz+KOYlpYYcIwKSV6ZX6IpL68Od4YAuyZzE00Oo0TAiBxWPLRbqhMdKI562c3Ces9dyTqUzIe/JwGrjD/9WIMkg=="}]},"_npmUser":{"name":"abuuwais","email":"uwaiscode@gmail.com"},"directories":{},"maintainers":[{"name":"abuuwais","email":"uwaiscode@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/node-red-contrib-mqtt-to-boolean_1.0.2_1770950716848_0.8197123930466932"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-13T02:24:56.005Z","modified":"2026-02-13T02:45:17.129Z","1.0.0":"2026-02-13T02:24:56.255Z","1.0.1":"2026-02-13T02:27:25.650Z","1.0.2":"2026-02-13T02:45:17.003Z"},"author":{"name":"Abu Uwais Triyadi","email":"uwaiscode@gmail.com"},"license":"MIT","keywords":["node-red","mqtt","boolean","status","iot"],"description":"A Node-RED node that sends a message to an MQTT broker and outputs a boolean status.","maintainers":[{"name":"abuuwais","email":"uwaiscode@gmail.com"}],"readme":"# node-red-contrib-mqtt-to-boolean\n\nA custom Node-RED node that sends a message to an MQTT broker and outputs a boolean status.\n\n## Installation\n\nTo install this node, you can either:\n\n1.  Install it from the Node-RED Palette Manager.\n2.  Install it manually by cloning this repository and running `npm install` in your Node-RED user directory (`~/.node-red`):\n\n    ```bash\n    cd ~/.node-red\n    git clone https://github.com/your-username/node-red-contrib-mqtt-to-boolean.git\n    cd node-red-contrib-mqtt-to-boolean\n    npm install\n    ```\n\n    Then, restart Node-RED.\n\n## How to Use\n\nThis node takes a message as input and sends it to the configured MQTT broker.\n\n-   If the message is successfully sent, the node outputs a `msg` with `payload` set to `true`.\n-   If the MQTT broker is disconnected, the node outputs a `msg` with `payload` set to `false`.\n\n### Configuration\n\n-   **Broker**: The MQTT broker to connect to.\n-   **Topic**: The MQTT topic to publish the message to.\n-   **QoS**: The Quality of Service level for the MQTT message.\n-   **Name**: The name of the node.\n\n## Example Flow\n\nHere is an example flow that demonstrates how to use the `mqtt-to-boolean` node:\n\n```json\n[\n    {\n        \"id\": \"some-flow-id\",\n        \"type\": \"tab\",\n        \"label\": \"MQTT to Boolean Example\",\n        \"disabled\": false,\n        \"info\": \"\"\n    },\n    {\n        \"id\": \"some-inject-id\",\n        \"type\": \"inject\",\n        \"z\": \"some-flow-id\",\n        \"name\": \"Send MQTT Message\",\n        \"props\": [\n            {\n                \"p\": \"payload\"\n            },\n            {\n                \"p\": \"topic\",\n                \"vt\": \"str\"\n            }\n        ],\n        \"repeat\": \"\",\n        \"crontab\": \"\",\n        \"once\": false,\n        \"onceDelay\": 0.1,\n        \"topic\": \"test/topic\",\n        \"payload\": \"Hello, world!\",\n        \"payloadType\": \"str\",\n        \"x\": 150,\n        \"y\": 100,\n        \"wires\": [\n            [\n                \"some-mqtt-id\"\n            ]\n        ]\n    },\n    {\n        \"id\": \"some-mqtt-id\",\n        \"type\": \"mqtt-to-boolean\",\n        \"z\": \"some-flow-id\",\n        \"name\": \"MQTT to Boolean\",\n        \"topic\": \"test/topic\",\n        \"qos\": \"1\",\n        \"broker\": \"your-broker-id\",\n        \"x\": 350,\n        \"y\": 100,\n        \"wires\": [\n            [\n                \"some-debug-id\"\n            ]\n        ]\n    },\n    {\n        \"id\": \"some-debug-id\",\n        \"type\": \"debug\",\n        \"z\": \"some-flow-id\",\n        \"name\": \"Debug Status\",\n        \"active\": true,\n        \"tosidebar\": true,\n        \"console\": false,\n        \"tostatus\": false,\n        \"complete\": \"payload\",\n        \"targetType\": \"msg\",\n        \"statusVal\": \"\",\n        \"statusType\": \"auto\",\n        \"x\": 550,\n        \"y\": 100,\n        \"wires\": []\n    },\n    {\n        \"id\": \"your-broker-id\",\n        \"type\": \"mqtt-broker\",\n        \"name\": \"Your MQTT Broker\",\n        \"broker\": \"localhost\",\n        \"port\": \"1883\",\n        \"clientid\": \"\",\n        \"autoConnect\": true,\n        \"usetls\": false,\n        \"protocolVersion\": \"4\",\n        \"keepalive\": \"60\",\n        \"cleansession\": true,\n        \"autoUnsubscribe\": true,\n        \"sessionExpiry\": \"\"\n    }\n]\n```\n","readmeFilename":"Readme.md"}