Skip to content

Instantly share code, notes, and snippets.

@nayelyzarazua-bluetrail
Last active December 15, 2020 23:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nayelyzarazua-bluetrail/6e12a17d98fc5c6adc4a069a227a355f to your computer and use it in GitHub Desktop.
Save nayelyzarazua-bluetrail/6e12a17d98fc5c6adc4a069a227a355f to your computer and use it in GitHub Desktop.
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