49 lines
791 B
JSON
49 lines
791 B
JSON
{
|
|
"name": "BASENAME.on-dim",
|
|
"conditions": [
|
|
{
|
|
"address": "/sensors/AMBIENT/state/dark",
|
|
"operator": "eq",
|
|
"value": "true"
|
|
},
|
|
{
|
|
"address": "/groups/GROUP/state/any_on",
|
|
"operator": "eq",
|
|
"value": "false"
|
|
},
|
|
{
|
|
"address": "/config/localtime",
|
|
"operator": "in",
|
|
"value": "T01:00:00/T06:00:00"
|
|
},
|
|
{
|
|
"address": "/sensors/MOTION/state/presence",
|
|
"operator": "eq",
|
|
"value": "true"
|
|
},
|
|
{
|
|
"address": "/sensors/MOTION/state/lastupdated",
|
|
"operator": "dx"
|
|
}
|
|
],
|
|
"actions": [
|
|
{
|
|
"address": "/groups/GROUP/action",
|
|
"method": "PUT",
|
|
"body": {
|
|
"on": true,
|
|
"bri": 51,
|
|
"ct": 1000,
|
|
"transitiontime": 10
|
|
}
|
|
},
|
|
{
|
|
"address": "/sensors/MEMORY/state",
|
|
"method": "PUT",
|
|
"body": {
|
|
"status": 2
|
|
}
|
|
}
|
|
]
|
|
}
|