Compare commits

...

2 Commits

Author SHA1 Message Date
Adrian 8e62602edc DimmerBed: Do not change colors on switch
* Mode 0: Short press changes Brightness,
  Hold changes Color Temperature
* Mode 1: Short press changes saturisation,
  Hold changes Hue
2018-06-16 13:56:46 +02:00
Adrian e60d017ad1 DimmerBed: Do not change colors on switch (move) 2018-06-16 13:55:39 +02:00
13 changed files with 75 additions and 118 deletions

View File

@ -1,5 +1,5 @@
{
"name": "BASENAME.dn-hold-ct",
"name": "BASENAME.dn-0-hold-ct",
"conditions": [
{
"address": "/sensors/MEMORY/state/status",

View File

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

View File

@ -1,10 +1,10 @@
{
"name": "BASENAME.dn-hold-hue",
"name": "BASENAME.dn-1-hold-hue",
"conditions": [
{
"address": "/sensors/MEMORY/state/status",
"operator": "eq",
"value": "1"
"operator": "gt",
"value": "0"
},
{
"address": "/sensors/DIMMER/state/buttonevent",

View File

@ -1,15 +1,15 @@
{
"name": "BASENAME.dn-hold-sat",
"name": "BASENAME.dn-1-short-sat",
"conditions": [
{
"address": "/sensors/MEMORY/state/status",
"operator": "gt",
"value": "1"
"value": "0"
},
{
"address": "/sensors/DIMMER/state/buttonevent",
"operator": "eq",
"value": "3001"
"value": "3002"
},
{
"address": "/sensors/DIMMER/state/lastupdated",

View File

@ -1,24 +0,0 @@
{
"name": "BASENAME.dn-short",
"conditions": [
{
"address": "/sensors/DIMMER/state/buttonevent",
"operator": "eq",
"value": "3002"
},
{
"address": "/sensors/DIMMER/state/lastupdated",
"operator": "dx"
}
],
"actions": [
{
"address": "/groups/GROUP/action",
"method": "PUT",
"body": {
"transitiontime": 1,
"bri_inc": -25
}
}
]
}

View File

@ -1,5 +1,5 @@
{
"name": "BASENAME.on-long-hue",
"name": "BASENAME.on-0-long",
"conditions": [
{
"address": "/sensors/MEMORY/state/status",
@ -17,15 +17,6 @@
}
],
"actions": [
{
"address": "/groups/GROUP/action",
"method": "PUT",
"body": {
"transitiontime": 1,
"hue_inc": 40000,
"sat_inc": 100
}
},
{
"address": "/sensors/MEMORY/state",
"method": "PUT",

View File

@ -1,10 +1,10 @@
{
"name": "BASENAME.on-long-ct",
"name": "BASENAME.on-1-long",
"conditions": [
{
"address": "/sensors/MEMORY/state/status",
"operator": "gt",
"value": "1"
"value": "0"
},
{
"address": "/sensors/DIMMER/state/buttonevent",
@ -17,14 +17,6 @@
}
],
"actions": [
{
"address": "/groups/GROUP/action",
"method": "PUT",
"body": {
"transitiontime": 1,
"ct_inc": 96
}
},
{
"address": "/sensors/MEMORY/state",
"method": "PUT",

View File

@ -1,36 +0,0 @@
{
"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

@ -1,5 +1,5 @@
{
"name": "BASENAME.up-hold-ct",
"name": "BASENAME.up-0-hold-ct",
"conditions": [
{
"address": "/sensors/MEMORY/state/status",

View File

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

View File

@ -1,10 +1,10 @@
{
"name": "BASENAME.up-hold-hue",
"name": "BASENAME.up-1-hold-hue",
"conditions": [
{
"address": "/sensors/MEMORY/state/status",
"operator": "eq",
"value": "1"
"operator": "gt",
"value": "0"
},
{
"address": "/sensors/DIMMER/state/buttonevent",

View File

@ -1,15 +1,15 @@
{
"name": "BASENAME.up-hold-sat",
"name": "BASENAME.up-1-short-sat",
"conditions": [
{
"address": "/sensors/MEMORY/state/status",
"operator": "gt",
"value": "1"
"value": "0"
},
{
"address": "/sensors/DIMMER/state/buttonevent",
"operator": "eq",
"value": "2001"
"value": "2002"
},
{
"address": "/sensors/DIMMER/state/lastupdated",

View File

@ -1,24 +0,0 @@
{
"name": "BASENAME.up-short",
"conditions": [
{
"address": "/sensors/DIMMER/state/buttonevent",
"operator": "eq",
"value": "2002"
},
{
"address": "/sensors/DIMMER/state/lastupdated",
"operator": "dx"
}
],
"actions": [
{
"address": "/groups/GROUP/action",
"method": "PUT",
"body": {
"transitiontime": 1,
"bri_inc": 25
}
}
]
}