Last active
December 15, 2020 23:03
-
-
Save nayelyzarazua-bluetrail/6e12a17d98fc5c6adc4a069a227a355f to your computer and use it in GitHub Desktop.
Rule_customCapabilities
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
{ | |
"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