This project contains the script which uploads a set of rules to your Hue Bridge, allowing a single Hue Dimmer switch to control two groups of lights a.k.a. rooms, instead of default one group.
See the wiki for additional information about the switch layout.
- Create config based on the sample:
$ cp etc/hue-multidim.conf.sample etc/hue-multidim.conf
- Open hue-multidim.conf and set variable values. If you need help identifying the correct values, refer to the following pages of Hue API documentation:
HUB_IP
andAPI_KEY
— Getting Started.OUTER_GROUP_ID
andINNER_GROUP_ID
— Groups.DIMMER_SENSOR_ID
— Sensors.
Among your sensors, look for the one having"type": "ZLLSwitch"
.FIRST_RULE_ID
— Rules.
Among your rules, look for the one having"name": "Dimmer Switch X on0"
. This rule will exist, provided you already set up your Hue Dimmer switch using the app. The script will update 12 consecutive rules beginning with this rule.
- Run the script:
$ ./hue-multidim-setup.sh