zigbee-herdsman › "controller/model/group" › Group
-
Entity
↳ Group
- addMember
- command
- hasMember
- removeFromDatabase
- removeMember
- save
- all
- byGroupID
- create
- injectAdapter
- injectDatabase
• groupID: number
Defined in controller/model/group.ts:11
• meta: KeyValue
Defined in controller/model/group.ts:15
• get members(): Endpoint[]
Defined in controller/model/group.ts:13
Returns: Endpoint[]
▸ addMember(endpoint
: Endpoint): void
Defined in controller/model/group.ts:100
Parameters:
Name | Type |
---|---|
endpoint |
Endpoint |
Returns: void
▸ command(clusterKey
: number | string, commandKey
: number | string, payload
: KeyValue): Promise‹void›
Defined in controller/model/group.ts:118
Parameters:
Name | Type |
---|---|
clusterKey |
number | string |
commandKey |
number | string |
payload |
KeyValue |
Returns: Promise‹void›
▸ hasMember(endpoint
: Endpoint): boolean
Defined in controller/model/group.ts:110
Parameters:
Name | Type |
---|---|
endpoint |
Endpoint |
Returns: boolean
▸ removeFromDatabase(): void
Defined in controller/model/group.ts:90
Returns: void
▸ removeMember(endpoint
: Endpoint): void
Defined in controller/model/group.ts:105
Parameters:
Name | Type |
---|---|
endpoint |
Endpoint |
Returns: void
▸ save(): void
Defined in controller/model/group.ts:96
Returns: void
▸ all(): Group[]
Defined in controller/model/group.ts:70
Returns: Group[]
▸ byGroupID(groupID
: number): Group
Defined in controller/model/group.ts:65
Parameters:
Name | Type |
---|---|
groupID |
number |
Returns: Group
▸ create(groupID
: number): Group
Defined in controller/model/group.ts:75
Parameters:
Name | Type |
---|---|
groupID |
number |
Returns: Group
▸ injectAdapter(adapter
: Adapter): void
Inherited from void
Defined in controller/model/entity.ts:12
Parameters:
Name | Type |
---|---|
adapter |
Adapter |
Returns: void
▸ injectDatabase(database
: Database): void
Inherited from void
Defined in controller/model/entity.ts:8
Parameters:
Name | Type |
---|---|
database |
Database |
Returns: void