No description
Find a file
2018-05-05 14:04:52 +02:00
DimmerBed Rename MEM placeholder to avoid conflicts with modelid 2018-04-18 22:05:52 +02:00
DimmerLiving DimmerLiving: Remove the need for a sensor 2018-04-21 16:11:03 +02:00
MotionAllOff MotionAllOff: Fix operator bug 2018-04-28 00:33:24 +02:00
MotionIntelligent MotionIntelligent: Add transition times 2018-04-28 00:33:24 +02:00
TapSimple Add descriptions 2018-04-17 11:31:30 +02:00
LampShade.md Add LampShade moods 2018-05-05 14:04:52 +02:00
README.md Add README 2018-04-17 11:25:28 +02:00

Philips Hue Rules

Each folder contains a set of rules that can be used with Philips Hue.

Usage

See the readme inside the folder.

Installation

The IDs of the components should be replaced first. Then the JSON files are submitted by POST to the bridge.

This can be done using the following snippet:

BRIDGE="192.168.0.150"
APIKEY="1234"
IDS="s/BASENAME/xxx/g; s/GROUP/xxx/g; s/MOTION/xxx/g; ..."

for f in *.rule.json; do cat "$f" | sed "$IDS" | curl "http://$BRIDGE/api/$APIKEY/rules" -H 'Content-Type: application/json' -d @-; done