node-red-contrib-openbeken-subflow 1.0.0

OpenBeken support for Node-RED

npm install node-red-contrib-openbeken-subflow

node-red-contrib-openbeken-subflow

A high-performance Node-RED node designed specifically for OpenBeken flashed hardware. This node simplifies the integration of devices using Flag 10 (immediate MQTT state feedback) and includes a built-in watchdog timer to monitor device health.

Features

  • Closed-Loop Feedback: Automatically synchronizes with the device state using the .../1/get topic.

  • Watchdog Timer: Monitors device activity and updates the node status to "Offline" if no heartbeat is detected within 5 minutes.

  • Smart Sanitization: Accepts Booleans (true/false), Strings ("on"/off"), or Numbers (1/0) and converts them to the correct format for OpenBeken.

  • Zero-Config UI: Designed to work out of the box with Node-RED Dashboard 2.0.

Hardware Requirements

For the best experience, ensure your OpenBeken device has Flag 10 enabled. Open your device's web console and run:Backlog Flag 10 1; restart

Configuration

  1. Broker: Select your MQTT Broker configuration node.

  2. Topic Base: Enter the base MQTT topic of your device (e.g., BedroomFan). Do not include trailing slashes.

Input/Output

  • Input: Send a boolean true/false or string "on"/off" to toggle the device.

  • Output 1: Returns a clean boolean true/false based on the hardware's actual state.

  • Output 2: (Optional) Provides detailed status objects for logging or advanced logic.

Tips for Success

  • Dashboard 2.0: Simply wire a Dashboard "Switch" node to the input and back from the output for a perfectly synchronized UI.

  • LWT: This node relies on the device being "connected" to show online status. Ensure your MQTT Broker is configured to handle the device's Last Will and Testament (LWT).

Node Info

Version: 1.0.0
Updated 1 day ago
License: MIT
Rating: not yet rated

Categories

Actions

Rate:

Downloads

0 in the last week

Keywords

  • node-red
  • openbeken
  • tuya

Maintainers