Compare commits

..

2 Commits

Author SHA1 Message Date
Adrian f5e99a06d1 Improved Moods
* Timer middle color is blue instead of yellow
  for better visibility in daylight
* More duration variants
* More channels for a smoother transition with more lights
* Improved colors
2018-06-13 11:39:14 +02:00
Adrian 139c8002f2 DimmerBed: Add saturisation control
Other changes:

* Set mode 0 = ct, 1 = hue, 2 = sat
* on-long-* only change colors relatively for visual feedback
2018-05-31 00:37:51 +02:00
11 changed files with 118 additions and 16 deletions

View File

@ -6,10 +6,10 @@ This may be the case in the bedroom.
The on and off buttons work as expected. The on and off buttons work as expected.
Pressing the on button longer toggles color and temperature mode. Pressing the on button longer cycles temperature, color, and saturisation mode.
Pressing the brightness buttons change the brightness, Pressing the brightness buttons change the brightness,
holding the brightness buttons change the color or temperature accordingly. holding the brightness buttons change the temperature, color, and saturisation respectively.
## Devices ## Devices

View File

@ -3,8 +3,8 @@
"conditions": [ "conditions": [
{ {
"address": "/sensors/MEMORY/state/status", "address": "/sensors/MEMORY/state/status",
"operator": "gt", "operator": "lt",
"value": "0" "value": "1"
}, },
{ {
"address": "/sensors/DIMMER/state/buttonevent", "address": "/sensors/DIMMER/state/buttonevent",

View File

@ -3,7 +3,7 @@
"conditions": [ "conditions": [
{ {
"address": "/sensors/MEMORY/state/status", "address": "/sensors/MEMORY/state/status",
"operator": "lt", "operator": "eq",
"value": "1" "value": "1"
}, },
{ {

View File

@ -0,0 +1,29 @@
{
"name": "BASENAME.dn-hold-sat",
"conditions": [
{
"address": "/sensors/MEMORY/state/status",
"operator": "gt",
"value": "1"
},
{
"address": "/sensors/DIMMER/state/buttonevent",
"operator": "eq",
"value": "3001"
},
{
"address": "/sensors/DIMMER/state/lastupdated",
"operator": "dx"
}
],
"actions": [
{
"address": "/groups/GROUP/action",
"method": "PUT",
"body": {
"transitiontime": 1,
"sat_inc": -25
}
}
]
}

View File

@ -4,7 +4,7 @@
{ {
"address": "/sensors/MEMORY/state/status", "address": "/sensors/MEMORY/state/status",
"operator": "gt", "operator": "gt",
"value": "0" "value": "1"
}, },
{ {
"address": "/sensors/DIMMER/state/buttonevent", "address": "/sensors/DIMMER/state/buttonevent",
@ -21,9 +21,8 @@
"address": "/groups/GROUP/action", "address": "/groups/GROUP/action",
"method": "PUT", "method": "PUT",
"body": { "body": {
"bri": 203, "transitiontime": 1,
"hue": 60000, "ct_inc": 96
"sat": 240
} }
}, },
{ {

View File

@ -21,8 +21,9 @@
"address": "/groups/GROUP/action", "address": "/groups/GROUP/action",
"method": "PUT", "method": "PUT",
"body": { "body": {
"bri": 203, "transitiontime": 1,
"ct": 357 "hue_inc": 40000,
"sat_inc": 100
} }
}, },
{ {

View File

@ -0,0 +1,36 @@
{
"name": "BASENAME.on-long-sat",
"conditions": [
{
"address": "/sensors/MEMORY/state/status",
"operator": "eq",
"value": "1"
},
{
"address": "/sensors/DIMMER/state/buttonevent",
"operator": "eq",
"value": "1003"
},
{
"address": "/sensors/DIMMER/state/lastupdated",
"operator": "dx"
}
],
"actions": [
{
"address": "/groups/GROUP/action",
"method": "PUT",
"body": {
"transitiontime": 1,
"sat_inc": -100
}
},
{
"address": "/sensors/MEMORY/state",
"method": "PUT",
"body": {
"status": 2
}
}
]
}

View File

@ -3,8 +3,8 @@
"conditions": [ "conditions": [
{ {
"address": "/sensors/MEMORY/state/status", "address": "/sensors/MEMORY/state/status",
"operator": "gt", "operator": "lt",
"value": "0" "value": "1"
}, },
{ {
"address": "/sensors/DIMMER/state/buttonevent", "address": "/sensors/DIMMER/state/buttonevent",

View File

@ -3,7 +3,7 @@
"conditions": [ "conditions": [
{ {
"address": "/sensors/MEMORY/state/status", "address": "/sensors/MEMORY/state/status",
"operator": "lt", "operator": "eq",
"value": "1" "value": "1"
}, },
{ {

View File

@ -0,0 +1,29 @@
{
"name": "BASENAME.up-hold-sat",
"conditions": [
{
"address": "/sensors/MEMORY/state/status",
"operator": "gt",
"value": "1"
},
{
"address": "/sensors/DIMMER/state/buttonevent",
"operator": "eq",
"value": "2001"
},
{
"address": "/sensors/DIMMER/state/lastupdated",
"operator": "dx"
}
],
"actions": [
{
"address": "/groups/GROUP/action",
"method": "PUT",
"body": {
"transitiontime": 1,
"sat_inc": 25
}
}
]
}

View File

@ -2,6 +2,14 @@
* [Disco Red](http://lampshade.io/share?AfHHAAAAAKAAAA8AmACAAgBQAGTyL34AXkM-ivtAAICa_Icfl7aHr78fHACgJv_jpyDv4cvIwQAAqMn_-eS6rnkxpDIAAAowABMQZBAEKZGmULFU5QIiJQmWETFQ7AAGbRm2AIAH) * [Disco Red](http://lampshade.io/share?AfHHAAAAAKAAAA8AmACAAgBQAGTyL34AXkM-ivtAAICa_Icfl7aHr78fHACgJv_jpyDv4cvIwQAAqMn_-eS6rnkxpDIAAAowABMQZBAEKZGmULFU5QIiJQmWETFQ7AAGbRm2AIAH)
* [Timer 20 min](http://lampshade.io/share?AQKgAWkA6A4AAAAIFoCKAXAIANIA0B0ADgFIAwCkAUACAwDQyT_4QmtT-NGmawEAdPIPvl-4Or53Nk8AAJ38g5_LYoovrJkOAEABDaJEihYxaiRoEKBAXLpQqYIti5RpxIpBiAAAAA==) * [Off slow 2 min](http://lampshade.io/share?AQFAAQAAgC8AmABAZAA4BIACAwCTyVH54eip-SYsHgCYACAACQUNLRRIYAAAAA==)
* [Wake up 10 min](http://lampshade.io/share?AQRAAAAA4BAAFQOANABk8nm-He9bvg1bagCHmFyLH44DhG8DchGgOyb_4wuwMuBLepgDII3JsfixKQL4huBKAUgDQMBMBAkAAAA=) * [Timer 05 min](http://lampshade.io/share?AQJAABwCgDQAAACgOwB48g8-ikUK3jcyIAAADQwAQCf_4OeymOILa6YDAFCAQCkgMpAIqwUAAA==)
* [Timer 10 min](http://lampshade.io/share?AQLAAGkA0B0AAADgEACkASANAHjyDz6KRQreNzIgAAANDABAJ__g57KY4gtrpgMAUIBBKAgGmgWjA4mgUgAAAA==)
* [Timer 20 min](http://lampshade.io/share?AQKgAWkA6A4AAAAIFoCKAXAIANIA0B0ADgFIAwCkAUAm_-CjWKTgfSMDAgDQwAAAdPIPvtDaFH606VoAAJ38g5_LYoovrJkOAEABDZIkSpYwaSJkCJAgHDpQqIAtg4RpxIpBigQAAA==)
* [Wake up 05 min](http://lampshade.io/share?AQHAAXAIAAAASANAGgAgDQBpANIAQCb_4wuwMuBLepgDII3JtfjhOED4NiAXAUhjcix-bIoAviG4UgBIm7yQb4f0mG_O0QFAGgABFEJGLFUJNGQRNm3ZtjFw0OABAAAA)
* [Wake up 10 min](http://lampshade.io/share?AQHAAWkAAAAASANAGgCQBiANADgEQCbH4semCOAbgisFQJrJC_l2SI_55hwdANJgci1-OA4Qvg3IRQBpmPyPL8DKgC_pYQ5AGgABBCIGlCRo8mALJUuVLgETFmwYAAAA)