Globals / "src/controller/model/endpoint" / Endpoint
-
Entity
↳ Endpoint
- addBinding
- addToGroup
- bind
- command
- commandResponse
- configureReporting
- defaultResponse
- getClusterAttributeValue
- getDevice
- getInputClusters
- getOutputClusters
- read
- readResponse
- removeFromAllGroups
- removeFromAllGroupsDatabase
- removeFromGroup
- save
- saveClusterAttributeKeyValue
- supportsInputCluster
- supportsOutputCluster
- toDatabaseRecord
- unbind
- waitForCommand
- write
- create
- fromDatabaseRecord
- injectAdapter
- injectDatabase
• Readonly
ID: number
Defined in src/controller/model/endpoint.ts:59
• Readonly
clusters: Clusters
Defined in src/controller/model/endpoint.ts:60
• Optional
deviceID: number
Defined in src/controller/model/endpoint.ts:55
• deviceNetworkAddress: number
Defined in src/controller/model/endpoint.ts:62
• inputClusters: number[]
Defined in src/controller/model/endpoint.ts:56
• outputClusters: number[]
Defined in src/controller/model/endpoint.ts:57
• Optional
profileID: number
Defined in src/controller/model/endpoint.ts:58
• get binds(): Bind[]
Defined in src/controller/model/endpoint.ts:67
Returns: Bind[]
▸ addBinding(clusterKey
: number | string, target
: Endpoint | Group | number): void
Defined in src/controller/model/endpoint.ts:347
Name | Type |
---|---|
clusterKey |
number | string |
target |
Endpoint | Group | number |
Returns: void
▸ addToGroup(group
: Group): Promise<void>
Defined in src/controller/model/endpoint.ts:616
Name | Type |
---|---|
group |
Group |
Returns: Promise<void>
▸ bind(clusterKey
: number | string, target
: Endpoint | Group | number): Promise<void>
Defined in src/controller/model/endpoint.ts:367
Name | Type |
---|---|
clusterKey |
number | string |
target |
Endpoint | Group | number |
Returns: Promise<void>
▸ command(clusterKey
: number | string, commandKey
: number | string, payload
: KeyValue, options?
: Options): Promise<void | KeyValue>
Defined in src/controller/model/endpoint.ts:513
Name | Type |
---|---|
clusterKey |
number | string |
commandKey |
number | string |
payload |
KeyValue |
options? |
Options |
Returns: Promise<void | KeyValue>
▸ commandResponse(clusterKey
: number | string, commandKey
: number | string, payload
: KeyValue, options?
: Options, transactionSequenceNumber?
: number): Promise<void | KeyValue>
Defined in src/controller/model/endpoint.ts:547
Name | Type |
---|---|
clusterKey |
number | string |
commandKey |
number | string |
payload |
KeyValue |
options? |
Options |
transactionSequenceNumber? |
number |
Returns: Promise<void | KeyValue>
▸ configureReporting(clusterKey
: number | string, items
: ConfigureReportingItem[], options?
: Options): Promise<void>
Defined in src/controller/model/endpoint.ts:458
Name | Type |
---|---|
clusterKey |
number | string |
items |
ConfigureReportingItem[] |
options? |
Options |
Returns: Promise<void>
▸ defaultResponse(commandID
: number, status
: number, clusterID
: number, transactionSequenceNumber
: number, options?
: Options): Promise<void>
Defined in src/controller/model/endpoint.ts:431
Name | Type |
---|---|
commandID |
number |
status |
number |
clusterID |
number |
transactionSequenceNumber |
number |
options? |
Options |
Returns: Promise<void>
▸ getClusterAttributeValue(clusterKey
: number | string, attributeKey
: number | string): number | string
Defined in src/controller/model/endpoint.ts:205
Name | Type |
---|---|
clusterKey |
number | string |
attributeKey |
number | string |
Returns: number | string
▸ getDevice(): Device
Defined in src/controller/model/endpoint.ts:108
Get device of this endpoint
Returns: Device
▸ getInputClusters(): Cluster[]
Defined in src/controller/model/endpoint.ts:133
Returns: Cluster[]
▸ getOutputClusters(): Cluster[]
Defined in src/controller/model/endpoint.ts:140
Returns: Cluster[]
▸ read(clusterKey
: number | string, attributes
: string[] | number[], options?
: Options): Promise<KeyValue>
Defined in src/controller/model/endpoint.ts:269
Name | Type |
---|---|
clusterKey |
number | string |
attributes |
string[] | number[] |
options? |
Options |
Returns: Promise<KeyValue>
▸ readResponse(clusterKey
: number | string, transactionSequenceNumber
: number, attributes
: KeyValue, options?
: Options): Promise<void>
Defined in src/controller/model/endpoint.ts:308
Name | Type |
---|---|
clusterKey |
number | string |
transactionSequenceNumber |
number |
attributes |
KeyValue |
options? |
Options |
Returns: Promise<void>
▸ removeFromAllGroups(): Promise<void>
Defined in src/controller/model/endpoint.ts:633
Returns: Promise<void>
▸ removeFromAllGroupsDatabase(): void
Defined in src/controller/model/endpoint.ts:638
Returns: void
▸ removeFromGroup(group
: Group | number): Promise<void>
Defined in src/controller/model/endpoint.ts:626
Remove endpoint from a group, accepts both a Group and number as parameter. The number parameter type should only be used when removing from a group which is not known to zigbee-herdsman.
Name | Type |
---|---|
group |
Group | number |
Returns: Promise<void>
▸ save(): void
Defined in src/controller/model/endpoint.ts:394
Returns: void
▸ saveClusterAttributeKeyValue(clusterKey
: number | string, list
: KeyValue): void
Defined in src/controller/model/endpoint.ts:196
Name | Type |
---|---|
clusterKey |
number | string |
list |
KeyValue |
Returns: void
▸ supportsInputCluster(clusterKey
: number | string): boolean
Defined in src/controller/model/endpoint.ts:116
Name | Type |
---|---|
clusterKey |
number | string |
Returns: boolean
▸ supportsOutputCluster(clusterKey
: number | string): boolean
Defined in src/controller/model/endpoint.ts:125
Name | Type |
---|---|
clusterKey |
number | string |
Returns: boolean
▸ toDatabaseRecord(): KeyValue
Defined in src/controller/model/endpoint.ts:178
Returns: KeyValue
▸ unbind(clusterKey
: number | string, target
: Endpoint | Group | number): Promise<void>
Defined in src/controller/model/endpoint.ts:398
Name | Type |
---|---|
clusterKey |
number | string |
target |
Endpoint | Group | number |
Returns: Promise<void>
▸ waitForCommand(clusterKey
: number | string, commandKey
: number | string, transactionSequenceNumber
: number, timeout
: number): object
Defined in src/controller/model/endpoint.ts:578
Name | Type |
---|---|
clusterKey |
number | string |
commandKey |
number | string |
transactionSequenceNumber |
number |
timeout |
number |
Returns: object
Name | Type |
---|---|
cancel |
() => void |
promise |
Promise<{ header: KeyValue ; payload: KeyValue }> |
▸ write(clusterKey
: number | string, attributes
: KeyValue, options?
: Options): Promise<void>
Defined in src/controller/model/endpoint.ts:227
Name | Type |
---|---|
clusterKey |
number | string |
attributes |
KeyValue |
options? |
Options |
Returns: Promise<void>
▸ Static
create(ID
: number, profileID
: number, deviceID
: number, inputClusters
: number[], outputClusters
: number[], deviceNetworkAddress
: number, deviceIeeeAddress
: string): Endpoint
Defined in src/controller/model/endpoint.ts:186
Name | Type |
---|---|
ID |
number |
profileID |
number |
deviceID |
number |
inputClusters |
number[] |
outputClusters |
number[] |
deviceNetworkAddress |
number |
deviceIeeeAddress |
string |
Returns: Endpoint
▸ Static
fromDatabaseRecord(record
: KeyValue, deviceNetworkAddress
: number, deviceIeeeAddress
: string): Endpoint
Defined in src/controller/model/endpoint.ts:158
Name | Type |
---|---|
record |
KeyValue |
deviceNetworkAddress |
number |
deviceIeeeAddress |
string |
Returns: Endpoint
▸ Static
injectAdapter(adapter
: Adapter): void
Inherited from Group.injectAdapter
Defined in src/controller/model/entity.ts:12
Name | Type |
---|---|
adapter |
Adapter |
Returns: void
▸ Static
injectDatabase(database
: Database): void
Inherited from Group.injectDatabase
Defined in src/controller/model/entity.ts:8
Name | Type |
---|---|
database |
Database |
Returns: void