Skip to content

Instantly share code, notes, and snippets.

@bmorgenthaler
Created April 11, 2022 17:28
Show Gist options
  • Save bmorgenthaler/9dae6def4a7cbb78a38ceb5e08162eb7 to your computer and use it in GitHub Desktop.
Save bmorgenthaler/9dae6def4a7cbb78a38ceb5e08162eb7 to your computer and use it in GitHub Desktop.
MakerAPI Device Capabilities Json
[
{
"capabilities": [
"Configuration",
"Actuator",
"Refresh",
"FanControl",
{
"attributes": [
{
"name": "speed",
"currentValue": "low",
"dataType": "ENUM",
"values": [
"low",
"medium-low",
"medium",
"medium-high",
"high",
"on",
"off",
"auto"
]
},
{
"name": "supportedFanSpeeds",
"currentValue": null,
"dataType": "JSON_OBJECT",
"values": null
}
]
},
"SwitchLevel",
{
"attributes": [
{
"name": "level",
"currentValue": "25",
"dataType": "NUMBER",
"values": null
}
]
},
"Switch",
{
"attributes": [
{
"name": "switch",
"currentValue": "on",
"dataType": "ENUM",
"values": [
"on",
"off"
]
}
]
},
"PushableButton",
{
"attributes": [
{
"name": "numberOfButtons",
"currentValue": "2",
"dataType": "NUMBER",
"values": null
},
{
"name": "pushed",
"currentValue": "1",
"dataType": "NUMBER",
"values": null
}
]
},
"DoubleTapableButton",
{
"attributes": [
{
"name": "doubleTapped",
"currentValue": null,
"dataType": "NUMBER",
"values": null
}
]
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment