Drivers

Properties

  • string: id

    This property is a constant value defined by the driver itself and contains it's own driver id. This should be manually assigned in code by the developer or token-negotiator. This, in no case, should ever change.

  • string: name

    This property is a partially constant value that contains the friendly name for this driver. It should simply state what this driver is for.

  • string: developer

    This property contains the developer's name.

  • string: description

    The description for this driver

  • string: type

    The type of driver that this is.

    Possible types:

    • Single: This driver (device) only reports on one single controller or capability

    • Multi: This driver (device) has multiple controllers and actions

  • string: location

    This property is an add-on property assigned by HomeCore, the driver can, however should not in any case assign to this property.

  • Object: capabilities

    An object of capabilities for this driver (device)

  • Array[Controller]: controllers

    An array of all the controllers for this device

  • function: onPublish

    This property is a constant value defined by the driver itself and contains it's own driver id. This should be manually assigned in code by the developer or token-negotiator. This, in no case, should ever change.

  • function: init

    This property is a constant value defined by the driver itself and contains it's own driver id. This should be manually assigned in code by the developer or token-negotiator. This, in no case, should ever change.

  • function: getState

    This property is a constant value defined by the driver itself and contains it's own driver id. This should be manually assigned in code by the developer or token-negotiator. This, in no case, should ever change.

  • function: updateState

    This property is a constant value defined by the driver itself and contains it's own driver id. This should be manually assigned in code by the developer or token-negotiator. This, in no case, should ever change.

  • function: setInternalState

    This property is a constant value defined by the driver itself and contains it's own driver id. This should be manually assigned in code by the developer or token-negotiator. This, in no case, should ever change.

  • function: disconnect

    This property is a constant value defined by the driver itself and contains it's own driver id. This should be manually assigned in code by the developer or token-negotiator. This, in no case, should ever change.

Last updated