node-red-contrib-dahua-camera-light 1.0.3

Node-RED node to control Dahua camera light via RPC2 protocol

npm install node-red-contrib-dahua-camera-light

node-red-contrib-dahua-camera-light

Node-RED node to control Dahua DH-F4C-LED camera light via RPC2 protocol.

Installation

npm install node-red-contrib-dahua-camera-light

Or via Node-RED:

  1. Open Node-RED
  2. Go to menu → Manage palette
  3. Install tab
  4. Search for node-red-contrib-dahua-camera-light
  5. Click Install

Usage

Configuration

  • Camera IP: Dahua camera IP address
  • Username: Username for camera access
  • Password: Password for camera access

Input Commands (msg.payload)

Numeric values:

  • Any number 1-100 - Manual mode with specified brightness
  • Example: 50 sets manual mode at 50% brightness

String commands:

  • "on" - Manual mode at 100% brightness
  • "off" - Turn light off
  • "auto" - Auto mode at 100% brightness
  • "auto 75" - Auto mode with specified brightness

Examples

// Manual mode at 25% brightness
msg.payload = 25;

// Manual mode at 100% brightness
msg.payload = "on";

// Turn light off
msg.payload = "off";

// Auto mode at 100% brightness
msg.payload = "auto";

// Auto mode at 60% brightness
msg.payload = "auto 60";

Compatibility

  • Node-RED version 1.0+
  • Node.js version 12+
  • Dahua cameras with RPC2 support (tested on DH-F4C-LED)

Support

If this node helped you, consider buying me a coffee! ☕

Buy Me A Coffee

License

MIT

Publish

npm publish

npm install node-red-contrib-dahua-camera-light

Node Info

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

Categories

Actions

Rate:

Downloads

294 in the last week

Nodes

  • dahua-camera-light

Keywords

  • node-red
  • camera
  • light
  • dahua
  • rpc2
  • automation
  • iot
  • smart-home

Maintainers