-
-
Save BenediktNiehues/395cfbb7073fd0c29e6b to your computer and use it in GitHub Desktop.
Rule Description
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id" : "motion1", | |
"label" : "Motion-based lamp switch", | |
"tags" : ["motion", "light"], | |
"description" : "Switches a lamp on motion detection.", | |
"active": true, | |
"on": [ | |
{ | |
"type": "ItemUpdateEvent", | |
"config": { | |
"itemName": "Livingroom_Motion" | |
} | |
}, | |
{ | |
"type": "ItemUpdateEvent", | |
"config": { | |
"itemName": "Livingroom_Brightness" | |
} | |
} | |
], | |
"if": [ | |
{ | |
"type": "Compare", | |
"config": { | |
"operator": "<", | |
"left:": "items.Livingroom_Brightness", | |
"right": "30" | |
} | |
} | |
], | |
"then": [ | |
{ | |
"type": "SendCommand", | |
"config": { | |
"itemName": "DinnerTable_Light", | |
"command": "ON" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment