You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @property {String} alias Machine friendly name, e.g.: `POWER_ON`
20
20
* @property {String} [identifier=null] Simple/custom identifiert for custom command handler
21
21
* @property {String} payload The payload to send over the device interface
22
-
* @property {String} [description=""] Command description, displayed on the frontend
22
+
* @property {String} [description=null] Command description, displayed on the frontend
23
23
* @property {Array} params Possible parameter for the command
24
24
* @property {String} params[].key Custom key
25
-
* @property {Any} params[].value Value to set
26
-
* @property {String} params[].default Default thing if nothing is send from client
27
-
* @property {String} params[].min Min value if param type is a number
28
-
* @property {String} params[].max Max value if param type is a number
25
+
* @property {String} params[].type Type of value: "string", "number" or "boolean"
26
+
* @property {String|Number|Boolean} params[].value Value to set
27
+
* @property {Number} [params[].min=0] Min value if param type is a number (`type=number`)
28
+
* @property {Number} [params[].max=100] Max value if param type is a number (`type=number`)
29
29
*
30
30
* @example
31
31
* ```json
@@ -223,13 +223,29 @@ module.exports = class Command {
223
223
identifier: Joi.string().allow(null).default(null),// NOTE: move to endpoint schema? // Thing api provides you, like light id or some custom thing for you
0 commit comments