Optional
onOffAttributeInitialValues: AttributeInitialValues<Pick<Merge<{ Protected
commandProtected
deviceOne or multiple DeviceTypeDefinitions of the endpoint
Protected
isDefine if Lighting feature is set
Protected
_executeProtected
Execute a command handler. Should only be used internally, but cannot be declared as protected officially because needed public for derived classes.
Command name to execute the handler for
Rest
...args: any[]Arguments to be passed to the handler
Method to add command handlers to the device. The base class do not expose any commands!
Command name to add a handler for
Handler function to be executed when the command is received
Protected
addProtected
Adds mandatory clusters to the device
Optional
attributeInitialValues: { Optional object with initial attribute values for automatically added clusters
List of clusters to exclude from being added
Adds a listener for the OnOff attribute This is an example of a convenient device class API to control the device without need to access clusters
Listener function to be called when the attribute changes
Protected
createProtected
createProtected
removeMethod to remove command handlers from the device. The base class do not expose any commands!
Command name to remove the handler from
Handler function to be removed
Device class for an OnOffPluginUnit Device