"description":"Sends a command or a list of commands to a device.",
"fields":{
"device":{
"name":"Device",
"description":"Device ID to send command to."
},
"command":{
"name":"Command",
"description":"A single command or a list of commands to send."
},
"num_repeats":{
"name":"Repeats",
"description":"The number of times you want to repeat the commands."
},
"delay_secs":{
"name":"Delay seconds",
"description":"The time you want to wait in between repeated commands."
},
"hold_secs":{
"name":"Hold seconds",
"description":"The time you want to have it held before the release is send."
}
}
},
"learn_command":{
"name":"Learn command",
"description":"Learns a command or a list of commands from a device.",
"fields":{
"device":{
"name":"Device",
"description":"Device ID to learn command from."
},
"command":{
"name":"Command",
"description":"A single command or a list of commands to learn."
},
"command_type":{
"name":"Command type",
"description":"The type of command to be learned."
},
"alternative":{
"name":"Alternative",
"description":"If code must be stored as an alternative. This is useful for discrete codes. Discrete codes are used for toggles that only perform one function. For example, a code to only turn a device on. If it is on already, sending the code won't change the state."
},
"timeout":{
"name":"Timeout",
"description":"Timeout for the command to be learned."
}
}
},
"delete_command":{
"name":"Delete command",
"description":"Deletes a command or a list of commands from the database.",
"fields":{
"device":{
"name":"Device",
"description":"Device from which commands will be deleted."
},
"command":{
"name":"Command",
"description":"The single command or the list of commands to be deleted."