Skip to content

andrew01144/Node-Red-Dimmer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Node-Red-Dimmer

Dimmer function for Node-Red Zigbee Home Automation

flow1

Description

This Node-Red function connects an IKEA control to a dimmable light bulb to provide the behavior of a dimmer. Hold down a button on the remote to increase or decrease the brightness of a bulb.

What it does

To increase the brightness, press and hold the button on the remote. The remote issues a brightness_up_hold message. This causes the Dimmer function to issue set-brightness messages every 250 ms with increasing brightness values. When you release the button, the remote issues a brightness_up_release message, and the Dimmer function stops.

Prerequisites

For excellent instructions on how to setup all these prerequisites, start here.

Using the code

The file Dimmer_Flow.json contains the Dimmer function within a small demo flow. In Node-Red, Import the Dimmer_Flow.json file. Paste it to a new or existing flow. Modify the mqtt-in and mqtt-out nodes to match the names of your mqtt server, IKEA remote, and Light bulb. Copy and paste this flow for as many remotes and bulbs as you need.

About

Dimmer function for Node-Red Zigbee Home Automation

Resources

License

Stars

Watchers

Forks

Packages

No packages published