diff --git a/DimmerLiving/README.md b/DimmerLiving/README.md new file mode 100644 index 0000000..8e82173 --- /dev/null +++ b/DimmerLiving/README.md @@ -0,0 +1,31 @@ +# Dimmer Switch Ruleset for Two Light Groups + +This ruleset assumes two light groups inside the same room. + +The on button first turns on one group and then the other. +So does the off button in reverse order. + +The lights are only switched on without changing +the previously configured state. + +The lights can be reset to a bright but confortable mood for the evening +when pressing the on button longer. + +Pressing the brightness buttons change the brightness, +holding the brightness buttons change the color temperature. + + +## Devices + +```sh +# IDS="s/BASENAME/xxx/g; s/GROUP1/xxx/g; s/GROUP2/xxx/g; s/DIMMER/xxx/g; s/MEM/xxx/g" +``` + +Install the memory sensor and note its ID before proceding. +Use the `mem.sensor.json` file, replace the `BASENAME`, and POST it to the /api/KEY/sensors URL. + +* `BASENAME` Basename of the ruleset +* `GROUP1` ID of the first group to handle +* `GROUP2` ID of the second group to handle +* `DIMMER` ID of the dimmer switch +* `MEM` ID of the memory sensor diff --git a/LivingDimmer/dn-hold.rule.json b/DimmerLiving/dn-hold.rule.json similarity index 92% rename from LivingDimmer/dn-hold.rule.json rename to DimmerLiving/dn-hold.rule.json index 181017f..3f4a400 100644 --- a/LivingDimmer/dn-hold.rule.json +++ b/DimmerLiving/dn-hold.rule.json @@ -16,14 +16,14 @@ "address": "/groups/GROUP1/action", "method": "PUT", "body": { - "ct_inc": 100 + "ct_inc": 24 } }, { "address": "/groups/GROUP2/action", "method": "PUT", "body": { - "ct_inc": 100 + "ct_inc": 24 } } ] diff --git a/LivingDimmer/dn-short.rule.json b/DimmerLiving/dn-short.rule.json similarity index 91% rename from LivingDimmer/dn-short.rule.json rename to DimmerLiving/dn-short.rule.json index 19e364c..1ae9f8e 100644 --- a/LivingDimmer/dn-short.rule.json +++ b/DimmerLiving/dn-short.rule.json @@ -16,14 +16,14 @@ "address": "/groups/GROUP1/action", "method": "PUT", "body": { - "bri_inc": -16 + "bri_inc": -25 } }, { "address": "/groups/GROUP2/action", "method": "PUT", "body": { - "bri_inc": -14 + "bri_inc": -25 } } ] diff --git a/DimmerLiving/mem.sensor.json b/DimmerLiving/mem.sensor.json new file mode 100644 index 0000000..71f3596 --- /dev/null +++ b/DimmerLiving/mem.sensor.json @@ -0,0 +1,8 @@ +{ + "name": "BASENAME.mem", + "type": "CLIPGenericStatus", + "modelid": "Adrium Memory", + "manufacturername": "Adrium", + "swversion": "1.0", + "uniqueid": "d0:ac:4e:d3:93:3b:7a:00-01" +} diff --git a/LivingDimmer/off-short.1.rule.json b/DimmerLiving/off-short.1.rule.json similarity index 100% rename from LivingDimmer/off-short.1.rule.json rename to DimmerLiving/off-short.1.rule.json diff --git a/LivingDimmer/off-short.2.rule.json b/DimmerLiving/off-short.2.rule.json similarity index 100% rename from LivingDimmer/off-short.2.rule.json rename to DimmerLiving/off-short.2.rule.json diff --git a/LivingDimmer/on-long.rule.json b/DimmerLiving/on-long.rule.json similarity index 98% rename from LivingDimmer/on-long.rule.json rename to DimmerLiving/on-long.rule.json index 92826f9..302695f 100644 --- a/LivingDimmer/on-long.rule.json +++ b/DimmerLiving/on-long.rule.json @@ -27,6 +27,6 @@ "bri": 203, "ct": 357 } - }, + } ] } diff --git a/LivingDimmer/on-short.1.rule.json b/DimmerLiving/on-short.1.rule.json similarity index 100% rename from LivingDimmer/on-short.1.rule.json rename to DimmerLiving/on-short.1.rule.json diff --git a/LivingDimmer/on-short.2.rule.json b/DimmerLiving/on-short.2.rule.json similarity index 100% rename from LivingDimmer/on-short.2.rule.json rename to DimmerLiving/on-short.2.rule.json diff --git a/LivingDimmer/up-hold.rule.json b/DimmerLiving/up-hold.rule.json similarity index 91% rename from LivingDimmer/up-hold.rule.json rename to DimmerLiving/up-hold.rule.json index b0dc947..c4822ca 100644 --- a/LivingDimmer/up-hold.rule.json +++ b/DimmerLiving/up-hold.rule.json @@ -16,14 +16,14 @@ "address": "/groups/GROUP1/action", "method": "PUT", "body": { - "ct_inc": -100 + "ct_inc": -24 } }, { "address": "/groups/GROUP2/action", "method": "PUT", "body": { - "ct_inc": -100 + "ct_inc": -24 } } ] diff --git a/LivingDimmer/up-short.rule.json b/DimmerLiving/up-short.rule.json similarity index 92% rename from LivingDimmer/up-short.rule.json rename to DimmerLiving/up-short.rule.json index 62a787d..b50cf30 100644 --- a/LivingDimmer/up-short.rule.json +++ b/DimmerLiving/up-short.rule.json @@ -16,14 +16,14 @@ "address": "/groups/GROUP1/action", "method": "PUT", "body": { - "bri_inc": 16 + "bri_inc": 25 } }, { "address": "/groups/GROUP2/action", "method": "PUT", "body": { - "bri_inc": 15 + "bri_inc": 25 } } ] diff --git a/MotionSimple/README.md b/MotionSimple/README.md new file mode 100644 index 0000000..aa9edd0 --- /dev/null +++ b/MotionSimple/README.md @@ -0,0 +1,19 @@ +# Simple Motion Sensor Ruleset + +This ruleset is a simple configuration that turns on a +group of lights when the motion sensor registers movement. + +It does not trigger an action, if a light in the group is already switched on. + +In the night, it only turns on the lights dim. + +## Devices + +```sh +IDS="s/BASENAME/xxx/g; s/GROUP/xxx/g; s/MOTION/xxx/g; s/AMBIENT/xxx/g" +``` + +* `BASENAME` Basename of the ruleset +* `GROUP` ID of the group to handle +* `MOTION` ID of the motion sensor +* `AMBIENT` ID of the ambient light sensor inside the motion sensor diff --git a/FloorMotion/off.rule.json b/MotionSimple/off.rule.json similarity index 100% rename from FloorMotion/off.rule.json rename to MotionSimple/off.rule.json diff --git a/FloorMotion/on-bright.rule.json b/MotionSimple/on-bright.rule.json similarity index 100% rename from FloorMotion/on-bright.rule.json rename to MotionSimple/on-bright.rule.json diff --git a/FloorMotion/on-dim.rule.json b/MotionSimple/on-dim.rule.json similarity index 100% rename from FloorMotion/on-dim.rule.json rename to MotionSimple/on-dim.rule.json diff --git a/SimpleTap/1.rule.json b/TapSimple/1.rule.json similarity index 100% rename from SimpleTap/1.rule.json rename to TapSimple/1.rule.json diff --git a/SimpleTap/2.rule.json b/TapSimple/2.rule.json similarity index 100% rename from SimpleTap/2.rule.json rename to TapSimple/2.rule.json diff --git a/SimpleTap/3.rule.json b/TapSimple/3.rule.json similarity index 100% rename from SimpleTap/3.rule.json rename to TapSimple/3.rule.json diff --git a/SimpleTap/4.rule.json b/TapSimple/4.rule.json similarity index 100% rename from SimpleTap/4.rule.json rename to TapSimple/4.rule.json diff --git a/TapSimple/README.md b/TapSimple/README.md new file mode 100644 index 0000000..4608607 --- /dev/null +++ b/TapSimple/README.md @@ -0,0 +1,15 @@ +# Simple Tap Button Ruleset + +This ruleset is a simple configuration that turns on a +group of lights with an increasing brightness on the buttons. + + +## Devices + +```sh +IDS="s/BASENAME/xxx/g; s/GROUP/xxx/g; s/TAP/xxx/g" +``` + +* `BASENAME` Basename of the ruleset +* `GROUP` ID of the group to handle +* `TAP` ID of the tap button