1.0.10 • Public • Published

Power Switch

This node enables you to control anything, which can be controlled with an on and off command, quite comfortably.

Control your device with the use of a toggle button or force the output with on/off commands. You can use one or more motion detectors and configure a relevant timeout. Configure a timer, after which the device will be turned off, and never forget anymore to power off your light. Send the actuator feedback to the block for more smart features.

The node title shows either "Power Switch" or the configured name, together with the time settings. First value shows the configured timeout, followed by a star, if the option "Override with msg.timeout at 'Off Payload'" is enabled. Second value shows the absolute timeout, if enabled. Examples:

  • "Power Switch (2m*/1h)" - No individual name given, 2 minutes timeout, override enabled, 1 hour absolute timeout.
  • "Kitchen light (3m)" - Individual name "Kitchen light given", 3 minutes timeout, no override, no absolute timeout.

Once installed, find details in the node manual (or preview raw on GitHub.)

You may also be interested in the exmaples coming with the installation. Once installed, in Node-RED go to "Import", choose "Examples" and expand "node-red-contrib-smarthome-powerswitch".





Smart Home Collection

A collection of nodes relevant to control your smart home will be published soon under the name "node-red-contrib-smarthome". This node "powerswitch" is the first released output. The next will be a shading node to control your window blinds. Other scheduled nodes are a light dimmer, alarm system and more. These will be also published together under the name "node-red-contrib-smarthome" as well as independant nodes. So stay tunded @


npm i node-red-contrib-smarthome-powerswitch

DownloadsWeekly Downloads






Unpacked Size

114 kB

Total Files


Last publish


  • danube