Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Rule_customCapabilities
{
"name": "Automation w custom capabilities",
"actions": [
{
"if": {
"greaterThan": {
"left": {
"device": {
"devices": [
"device-id"
],
"component": "main",
"capability": "switchLevel",
"attribute": "level"
}
},
"right": {
"integer": 50
}
},
"then": [
{
"command": {
"devices": [
"device-id-2"
],
"commands": [
{
"component": "main",
"capability": "namespace.customlock",
"command": "setLockstate",
"arguments": [
{
"string":"disarmed"
}
]
}
]
}
}
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment